I think we are talking about two different launchers. I actually did this before I made that post so just to make sure we are on the same page:
The original Marziano solution was to:
[Step1] Create the /usr/share/polkit-1/actions/luckybackup.policy file
[Step2] Then to verify that it worked run:
[Step3] Then create a launcher with that same expression:
pkexec /usr/bin/luckybackup
What I did was follow Step1 and Step2 then to make it so the original Menu item worked I edited it's launcher by editing:
/usr/share/applications/luckybackup-gnome-su.desktop
When you look at the file it was originally set to
Exec=su-to-root -X -c /usr/bin/luckybackup
Setting it to
pkexec /usr/bin/luckybackup
without the
Exec=
part will make it so the
luckyBackup ( super user ) entry in the menu disappear and the .desktop file will not run..
Run the following command to verify for yourself:
Code: Select all
cat /usr/share/applications/luckybackup-gnome-su.desktop