diff --git a/GPService/dbus/com.yuezk.qt.GPService.conf.in b/GPService/dbus/com.yuezk.qt.GPService.conf.in index 7e4d36c..41069f1 100644 --- a/GPService/dbus/com.yuezk.qt.GPService.conf.in +++ b/GPService/dbus/com.yuezk.qt.GPService.conf.in @@ -3,18 +3,16 @@ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> - - - - - - - - + + + - - - - - + + + + diff --git a/debian/postinst b/debian/postinst deleted file mode 100644 index bba5b9e..0000000 --- a/debian/postinst +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -set -e - -# Update the the dbus user to logname -dbus_conf=/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf -if [ -f $dbus_conf ]; then - sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" $dbus_conf -fi - -#DEBHELPER# diff --git a/packaging/aur/gp.install b/packaging/aur/gp.install index f3eb248..063a2a3 100755 --- a/packaging/aur/gp.install +++ b/packaging/aur/gp.install @@ -1,7 +1,4 @@ post_install() { - # Update the the dbus user to logname - sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf - systemctl enable gpservice.service systemctl restart gpservice.service } diff --git a/packaging/obs/globalprotect-openconnect.spec b/packaging/obs/globalprotect-openconnect.spec index 6eeba9b..51936f4 100644 --- a/packaging/obs/globalprotect-openconnect.spec +++ b/packaging/obs/globalprotect-openconnect.spec @@ -33,8 +33,6 @@ A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Q %post -sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf - %if 0%{?suse_version} %service_add_post gpservice.service %else