sudo lshw -html>1.html works perfectly.I get system information in 1.html. But, gksudo lshw -html>1.html doesn't work.I get gksudo usage options in 1.html Information: I am developing ...
In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo. I always get an error like cannot open display I don't remember any particular changes ...
I wrote a custom .desktop file that contains an Exec line #!/usr/bin/env xdg-open [Desktop Entry] (...) Exec=gksudo /my/path/to/bash_script.sh (...) This script launches some zenity calls. Then I ...