no terminal in pkexec
parent
8ed36fa4b2
commit
99369a95aa
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Categories=Utility;
|
||||
Comment=Linux front-end for ZeroTier
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Categories=Utility;
|
||||
Comment=Linux front-end for ZeroTier
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue