summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD13
-rw-r--r--sunlogin-client-xhost.desktop9
3 files changed, 22 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ee8d7d5c014..dd9717b8634d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = sunloginclient
pkgdesc = Sunlogin Remote Control is a software that supports remote control of mobile devices, Windows, Mac, Linux and other systems. It is the best choice for IT technology, game players, designers and other people with remote management needs.
pkgver = 10.0.2.24779
- pkgrel = 3
+ pkgrel = 4
url = https://sunlogin.oray.com
install = sunloginclient.INSTALL
arch = x86_64
@@ -12,13 +12,16 @@ pkgbase = sunloginclient
depends = hspell
depends = nuspell
depends = libvoikko
+ depends = xorg-xhost
options = !emptydirs
options = !strip
backup = etc/orayconfig.conf
source = http://download.oray.com/sunlogin/linux/SunloginClient-10.0.2.24779_amd64.deb
source = LICENSE::https://service.oray.com/question/1820.html
+ source = sunlogin-client-xhost.desktop
sha256sums = da2a61d106c2cecce271c89cd182b162bce34018539e1ba431580c5bbe120252
sha256sums = SKIP
+ sha256sums = 15abf7f89fe7d54112e083914740108a73b6b2cd9d942d49de4c7ccb66c3e30f
pkgname = sunloginclient
diff --git a/PKGBUILD b/PKGBUILD
index 394e9aa93a87..ccc972686d10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,19 +2,21 @@
pkgname=sunloginclient
pkgver=10.0.2.24779
-pkgrel=3
+pkgrel=4
pkgdesc="Sunlogin Remote Control is a software that supports remote control of mobile devices, Windows, Mac, Linux and other systems. It is the best choice for IT technology, game players, designers and other people with remote management needs."
arch=("x86_64")
url="https://sunlogin.oray.com"
-depends=("libappindicator-gtk3" "webkitgtk" 'aspell' 'hspell' 'nuspell' 'libvoikko')
+depends=("libappindicator-gtk3" "webkitgtk" 'aspell' 'hspell' 'nuspell' 'libvoikko' 'xorg-xhost')
license=('custom:sunloginclient')
options=("!emptydirs" "!strip")
source=("http://download.oray.com/sunlogin/linux/SunloginClient-${pkgver}_amd64.deb"
- 'LICENSE::https://service.oray.com/question/1820.html')
+ 'LICENSE::https://service.oray.com/question/1820.html'
+ 'sunlogin-client-xhost.desktop')
install='sunloginclient.INSTALL'
backup=("etc/orayconfig.conf")
sha256sums=('da2a61d106c2cecce271c89cd182b162bce34018539e1ba431580c5bbe120252'
- 'SKIP')
+ 'SKIP'
+ '15abf7f89fe7d54112e083914740108a73b6b2cd9d942d49de4c7ccb66c3e30f')
package() {
bsdtar -xf data.tar.xz -C "${pkgdir}"
@@ -42,6 +44,9 @@ package() {
# 创建软链
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/sunlogin/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ # xhost +
+ install -Dm644 "${srcdir}/sunlogin-client-xhost.desktop" "${pkgdir}/etc/xdg/autostart/sunlogin-client-xhost.desktop"
# ugly hack
sed -i "s#/usr/local/sunlogin\x0#/opt/sunlogin\x0\x0\x0\x0\x0\x0\x0#g" "${pkgdir}/opt/sunlogin/bin/${pkgname}"
diff --git a/sunlogin-client-xhost.desktop b/sunlogin-client-xhost.desktop
new file mode 100644
index 000000000000..e96e396e26f2
--- /dev/null
+++ b/sunlogin-client-xhost.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=xhost +
+Name=disable user access control for sunlogin client
+Comment=sunlogin client helper
+Terminal=false
+Type=Application
+StartupNotify=false
+X-KDE-autostart-after=panel