no terminal in pkexec

master
Can202 2021-09-12 00:59:13 -03:00
parent 8ed36fa4b2
commit 99369a95aa
4 changed files with 2 additions and 7 deletions

1
media/zerotier-gui-su.desktop Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=Linux front-end for ZeroTier

1
media/zerotier-gui-sudo.desktop Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=Linux front-end for ZeroTier

View File

@ -4,5 +4,4 @@ Comment=Linux front-end for ZeroTier
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /opt/ZeroTierInstaller/zerotier-exec
Icon=/opt/ZeroTierInstaller/zerotier-gui.png
Name=ZeroTier GUI
Terminal=true
Type=Application

View File

@ -1,7 +1,4 @@
#!/bin/bash
if [ ! $(whoami) = "root" ]
then
if [ -f "/usr/bin/dialog" ] || [ -f "/usr/sbin/dialog" ] || [ -f "/usr/games/dialog" ]
@ -14,9 +11,6 @@ then
exit
fi
echo "you can install just GUI (if you have zerotier-one from snap)"
echo "Do you want to install zerotier-one? y/n"
read install
if [ -f "/usr/bin/apt" ] || [ -f "/usr/sbin/apt" ] || [ -f "/usr/games/apt" ]