mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 20:52:55 +01:00
fix xdg-open
This commit is contained in:
parent
84b06a1920
commit
e1509687b7
2 changed files with 19 additions and 4 deletions
4
PKGBUILD
4
PKGBUILD
|
|
@ -2,7 +2,7 @@
|
|||
_pkgname=linuxqq
|
||||
pkgname=linuxqq-nt-bwrap
|
||||
pkgver=2.0.1_429
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Tencent QQ NT for Linux with bubblewrap wrapper"
|
||||
arch=('x86_64')
|
||||
url="https://im.qq.com"
|
||||
|
|
@ -16,7 +16,7 @@ install=${_pkgname}.install
|
|||
source=("https://dldir1.qq.com/qqfile/qq/QQNT/4691a571/QQ-v${pkgver//_/-}_x64.deb"
|
||||
'start.sh')
|
||||
sha256sums=('e3aa15ff6ae089b655df3913c6020ca56726bd676995aaf29b313fbd0643ea42'
|
||||
'5a6b2378ff764e347e17e1587ba588ae06cf4fc3081c2a2f4ee129872d8f4211')
|
||||
'f757df155db9147a9921af13cb18db3fa4e2f32a7c4d3422c6016d113cabc6d8')
|
||||
|
||||
package(){
|
||||
tar -xJ -f "data.tar.xz" -C "${pkgdir}"
|
||||
|
|
|
|||
19
start.sh
19
start.sh
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
USER_RUN_DIR="/run/user/$(id -u)"
|
||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
FONTCONFIG_DIR="$CONFIG_DIR/fontconfig"
|
||||
QQ_APP_DIR="${CONFIG_DIR}/QQ"
|
||||
DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)"
|
||||
if [ "$DOWNLOAD_DIR" == "$HOME" ]; then DOWNLOAD_DIR="$HOME/Downloads"; fi
|
||||
|
|
@ -8,13 +10,26 @@ if [ "$DOWNLOAD_DIR" == "$HOME" ]; then DOWNLOAD_DIR="$HOME/Downloads"; fi
|
|||
cd /opt/QQ
|
||||
|
||||
bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cgroup-try \
|
||||
--dev-bind / / \
|
||||
--symlink usr/lib /lib \
|
||||
--symlink usr/lib64 /lib64 \
|
||||
--symlink usr/bin /bin \
|
||||
--ro-bind /usr /usr \
|
||||
--ro-bind /opt/QQ /opt/QQ \
|
||||
--dev-bind /dev /dev \
|
||||
--ro-bind /sys /sys \
|
||||
--ro-bind /etc/resolv.conf /etc/resolv.conf \
|
||||
--ro-bind /etc/localtime /etc/localtime \
|
||||
--proc /proc \
|
||||
--tmpfs "$HOME" \
|
||||
--dev-bind /run/dbus /run/dbus \
|
||||
--bind "$USER_RUN_DIR" "$USER_RUN_DIR" \
|
||||
--ro-bind-try /etc/fonts /etc/fonts \
|
||||
--ro-bind-try "$FONTCONFIG_DIR" "$FONTCONFIG_DIR" \
|
||||
--bind /tmp /tmp \
|
||||
--bind "$HOME/.pki" "$HOME/.pki" \
|
||||
--ro-bind "$HOME/.Xauthority" "$HOME/.Xauthority" \
|
||||
--bind "${DOWNLOAD_DIR}" "${DOWNLOAD_DIR}" \
|
||||
--bind "$QQ_APP_DIR" "$QQ_APP_DIR" \
|
||||
--setenv IBUS_USE_PORTAL 1 \
|
||||
/opt/QQ/qq "$@"
|
||||
|
||||
# 移除无用崩溃报告和日志
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue