[SOLVED] How to have desktop icon prompt for root password?
Posted: Sun Feb 21, 2010 6:05 pm
I'm very new to LXDE, and I'm trialing/testing its new implementation on openSUSE-11.3 milestone2 release.
How do I add an icon to the desktop, so as to have it prompt me for root permissions when clicked on ? I successfull added icons to the desktop via this blog: http://blogs.koolwal.net/2009/09/11/how ... e-desktop/ but when I then took that method and applied it to an application that required root permissions, it would only run with regular user permissions. My /usr/share/applications file:the application "smart" is run, but it does not run as root. I need to have it run as root.
As an aside, I'm running this on My "sandbox" PC is a 10 year old 32-bit AMD Athlon-1100 w/1GB RAM (running on an MSI KT3 Ultra motherboard) w/nVidia GeForce FX5200 graphics AGP card.
How do I add an icon to the desktop, so as to have it prompt me for root permissions when clicked on ? I successfull added icons to the desktop via this blog: http://blogs.koolwal.net/2009/09/11/how ... e-desktop/ but when I then took that method and applied it to an application that required root permissions, it would only run with regular user permissions. My /usr/share/applications file:
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Name=smart-software-manager
Comment=Direct-link-to-smart-software-manager-with-root
Exec=/usr/bin/smart --gui
Icon=/usr/share/pixmaps/smart.png
MimeType=text/plain
Terminal=false
Type=Application
MimeType=text/plain
Categories=System;Utility;Settings;PackageManager;System;
As an aside, I'm running this on My "sandbox" PC is a 10 year old 32-bit AMD Athlon-1100 w/1GB RAM (running on an MSI KT3 Ultra motherboard) w/nVidia GeForce FX5200 graphics AGP card.