Hi guys,
I need some help on that script I just saw and found useful. It works perfectly when I launch this script from my
terminal, however, it doesn't work when I double click on the launcher . It asks me for a password, and after nothing.
For example, when I launch it from the terminal, I get my password prompt, I then enter my password, hit enter, wait for 1 second then I get my nautilus window in the /root.
I know it works in the terminal but not when I double click on hit
Here goes my script
#! /bin/bash
sudo -K
zenity --entry --title="Browse files as root"\
--text="Enter your password:" --hide-text \
| sudo -S nautilus --no-desktop --browser 1>\
/dev/null 2> /dev/null
#end
Thanks for the help