needs_root-field for menu-package needed (su-to-root is not sufficient)
Hi,
while working on some packages I noticed that it would be nice to have a
"needs_root"-field in menu-files, like with needs="Text" ..
At the moment packages must use su-to-root, which does not always work with
X11-Programs ...
(
I don't think the "fix" to use su -p is always sufficient;
think of a NFS-volume.
Better is to merge the Xauth-Info ...
)
The alternative is to use kdesu or gksu and prefix the command.
What I would like to discuss is to have:
command="foo"
needs_root=1
which would be mapped by a KDE-Menu-Method to:
Exec=kdesu -- foo
and by a gnome method to:
Exec=gksu -- foo
by a window maker method for example to:
xterm -e "su-to-root-fixed foo"
I'll also write to Freedesktop.org and ask for Including the same field in the
"desktop"-specification.
I think this would give the packagers more flexibility and also the
corresponding DE.
What do you think?
cu
Fabian
PS: Please cc me, as I'm not subscribed, yet.
Reply to: