no terminal in pkexec
parent
8ed36fa4b2
commit
99369a95aa
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env xdg-open
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
Comment=Linux front-end for ZeroTier
|
Comment=Linux front-end for ZeroTier
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env xdg-open
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
Comment=Linux front-end for ZeroTier
|
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
|
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /opt/ZeroTierInstaller/zerotier-exec
|
||||||
Icon=/opt/ZeroTierInstaller/zerotier-gui.png
|
Icon=/opt/ZeroTierInstaller/zerotier-gui.png
|
||||||
Name=ZeroTier GUI
|
Name=ZeroTier GUI
|
||||||
Terminal=true
|
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! $(whoami) = "root" ]
|
if [ ! $(whoami) = "root" ]
|
||||||
then
|
then
|
||||||
if [ -f "/usr/bin/dialog" ] || [ -f "/usr/sbin/dialog" ] || [ -f "/usr/games/dialog" ]
|
if [ -f "/usr/bin/dialog" ] || [ -f "/usr/sbin/dialog" ] || [ -f "/usr/games/dialog" ]
|
||||||
|
@ -14,9 +11,6 @@ then
|
||||||
exit
|
exit
|
||||||
fi
|
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" ]
|
if [ -f "/usr/bin/apt" ] || [ -f "/usr/sbin/apt" ] || [ -f "/usr/games/apt" ]
|
||||||
|
|
Loading…
Reference in New Issue