You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does sudo work here? Do we even needsudo? Does Linux pop open a thing asking for the password? (I doubt it.) Do we need to pop open a terminal and run things in there (aka make the process not silent so that they can be prompted for their password)? I'm not as familiar with how Linux works, plus there are so many distributions...
If gksu is installed (which gksu) the command can be simply run with gksu:
gksu echo hello world
If gksu is not available i think the safest way is to open a separate terminal window with the sudo command (i've seen this method in the wild).
The terminal will then ask the user for the password. The problem with this is you have to find out which terminal emulator is used.
For that it is advised to go through a list of known terminal emulators (https://superuser.com/questions/1153988/find-the-default-terminal-emulator).
With the known terminal emulator (here urxvt) and the $SHELL variable (already used in SparkleUpdater.cs) you can open a new terminal window:
NetSparkle/src/NetSparkle/SparkleUpdater.cs
Line 1257 in 957d131
How does
sudo
work here? Do we even needsudo
? Does Linux pop open a thing asking for the password? (I doubt it.) Do we need to pop open a terminal and run things in there (aka make the process not silent so that they can be prompted for their password)? I'm not as familiar with how Linux works, plus there are so many distributions...Links:
The text was updated successfully, but these errors were encountered: