diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control index 277cbc0..443f83a 100644 --- a/deb/DEBIAN/control +++ b/deb/DEBIAN/control @@ -4,6 +4,6 @@ Section: admin Maintainer: Can202 Architecture: amd64 Version: 0.2 -Depends: python3, lxterminal +Depends: python3, lxterminal, sudo, policykit-1 Description: Installer Simple Visual Installer (apt) diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 877fe1a..73c7212 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -2,3 +2,4 @@ ln /usr/lib64/boxpackage/boxpackage /usr/bin/boxpackage ln /usr/lib64/boxpackage/boxpackage-su /usr/bin/boxpackage-su ln /usr/lib64/boxpackage/boxpackage-sudo /usr/bin/boxpackage-sudo +ln /usr/lib64/boxpackage/boxpackage-sudo /usr/bin/boxpackage-pkexec diff --git a/deb/DEBIAN/postrm b/deb/DEBIAN/postrm index 5716a6c..4709777 100755 --- a/deb/DEBIAN/postrm +++ b/deb/DEBIAN/postrm @@ -2,3 +2,4 @@ rm -f /usr/bin/boxpackage rm -f /usr/bin/boxpackage-sudo rm -f /usr/bin/boxpackage-su +rm -f /usr/bin/boxpackage-pkexec diff --git a/deb/usr/lib64/boxpackage/boxpackage-pkexec b/deb/usr/lib64/boxpackage/boxpackage-pkexec new file mode 100755 index 0000000..16089a8 --- /dev/null +++ b/deb/usr/lib64/boxpackage/boxpackage-pkexec @@ -0,0 +1,5 @@ +#!/bin/bash + +xdg-mime default boxpackage.desktop application/vnd.debian.binary-package + +pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/lib64/boxpackage/init diff --git a/deb/usr/share/applications/boxpackage-pkexec.desktop b/deb/usr/share/applications/boxpackage-pkexec.desktop new file mode 100755 index 0000000..921dfed --- /dev/null +++ b/deb/usr/share/applications/boxpackage-pkexec.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=BoxPackage +Exec=boxpackage-pkexec +Icon=boxpackage +Terminal=True +Type=Application +Categories=Utility