[aur-general] gadmin-squid
I adopted and updated gadmin-squid to the latest version. I figured I would try something, because if you install a desktop file so that it will show up in Gnome's menu, it would say you need to run it as root. So I created a BASH Script called gadmin-squid-menu and added optdepends=('gksu: Graphical Sudo Support'). The desktop file points to gnome-squid-menu(my bash script, which states if gksu is installed, run gksu /usr/sbin/gadmin-squid, else gadmin-squid). This I think would be acceptable, correct me if I am wrong. Here is the package if you want a better understanding of what I mean: http://aur.archlinux.org/packages.php?ID=15309
Nathan O <ndowens.aur@gmail.com> wrote:
The desktop file points to gnome-squid-menu(my bash script, which states if gksu is installed, run gksu /usr/sbin/gadmin-squid, else gadmin-squid). This I think would be acceptable, correct me if I am wrong.
For people using KDE, you can add a field "X-KDE-SubstituteUID=true" to the .desktop file which says the program should be run as root (if I am not misled). I suppose KDE has its own mechanism to determine to correct way to change uid to root.
On Fri, Sep 3, 2010 at 4:25 AM, Rémy Oudompheng <remyoudompheng@gmail.com>wrote:
Nathan O <ndowens.aur@gmail.com> wrote:
The desktop file points to gnome-squid-menu(my bash
script,
which states if gksu is installed, run gksu /usr/sbin/gadmin-squid, else gadmin-squid). This I think would be acceptable, correct me if I am wrong.
For people using KDE, you can add a field "X-KDE-SubstituteUID=true" to the .desktop file which says the program should be run as root (if I am not misled). I suppose KDE has its own mechanism to determine to correct way to change uid to root.
Not sure, before I never did .desktop files, but I have started to do it to make it easier on the users.
participants (2)
-
Nathan O
-
Rémy Oudompheng