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 made this desktop file to appear in unity-2d launcher side bar.
My problem is every time I use this launcher shortcut it keeps asking for my password... While the expected behavior is to ask once, then remember for some time. It was acting like that in gnome/Lucid so something has changed but what ?
(I also tried '-k' option but doesn't change my problem)
If try that command line from a terminal (as my regular user)
It works like expected (=same behavior as in Lucid): asks the password only on the first launch.
What am I missing here?