[yast-devel] Changing (all) desktop files ...
I just stumbled over this bug report: https://bugzilla.novell.com/show_bug.cgi?id=540627 #### snip ############################################ All YaST .destop files in /usr/share/applications/YaST2 use the "X-KDE-SubstituteUID" to make them running as root. X-KDE-SubstituteUID is a KDE only "workaround" for that only KDE is supposed to be able to understand. Really, also GNOME as very famous DE understand that. All the others DE like XFCE, LXDE, Icewm and so on do not understand that (and they are not supposed to do that) so they run all yast2 modules as NON root user. all that Desktop files should edit their exec line and maybe remove X-KDE-SubstituteUID exactly as has been done with /usr/share/applications/YaST.desktop into yast2-control-center package. #### snap ############################################ Any comment or solution for this problem? What consequences does it might have if we changed all desktop files? Ciao, Daniel -- J. Daniel Schmidt <jdsn@suse.de> SUSE Linux Products GmbH Research & Development Maxfeldstr. 5 GF: Markus Rex, HRB 16746 (AG Nürnberg) D-90409 Nürnberg -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Mon, Oct 05, 2009 at 07:42:21PM +0200, J. Daniel Schmidt wrote:
I just stumbled over this bug report: https://bugzilla.novell.com/show_bug.cgi?id=540627
You did not mention the actual fix: using xdg-su -X-KDE-SubstituteUID=true -Exec=/sbin/yast2 +Exec=/usr/bin/xdg-su -c /sbin/yast2
What consequences does it might have if we changed all desktop files?
We would have to resubmit nearly all yast packages. Why don't the desktops implement X-KDE-SubstituteUID instead. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Hello, On Oct 6 10:11 Martin Vidner wrote (shortened):
On Mon, Oct 05, 2009 at 07:42:21PM +0200, J. Daniel Schmidt wrote:
I just stumbled over this bug report: https://bugzilla.novell.com/show_bug.cgi?id=540627
You did not mention the actual fix: using xdg-su
-X-KDE-SubstituteUID=true -Exec=/sbin/yast2 +Exec=/usr/bin/xdg-su -c /sbin/yast2
You did not mention a consequence of your actual fix: YaST must additionally require the xdg-utils RPM. At least on my openSUSE 11.1 system, "rpm -q --whatrequires xdg-utils" does not show a YaST package. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Hi,
On Mon, Oct 05, 2009 at 07:42:21PM +0200, J. Daniel Schmidt wrote:
I just stumbled over this bug report: https://bugzilla.novell.com/show_bug.cgi?id=540627
You did not mention the actual fix: using xdg-su
Yes, indeed, that is how Qt4 control center does it atm.
What consequences does it might have if we changed all desktop files?
It would enable YaST modules to be run as root e.g. from the menu or from the shortcut on user's desktop independently of DE. This is possible because xdg-su wrapper script figures out which *-su (kdesu, gnomesu) to call and if none of these can be used, prompts for root passwd in xterm.
Why don't the desktops implement X-KDE-SubstituteUID instead.
Because they are not required to. Freedesktop standard[1] states the following: "If one particular party wishes to add a field for personal use, they should prefix the key with the string X-PRODUCT, e.g. X-NewDesktop-Foo, following the precedent set by other IETF and RFC standards." In other words, X-PRODUCT (in this case X-KDE) is intended for the use by and within PRODUCT, e.g. RedHat applications do not have to read X-SuSE- prefixed desktop entries ;-) Now for this particular situation: Afaik, none of lightweight DEs - xfce, icewm, lxde,..- reads and understands X-KDE-SubstituteUID. Even upstream GNOME does not honour it (our GNOME does, due to SUSE-specific patch). As a result, YaST modules can't be launched from menu or desktop as root, if user's DE is other than KDE or GNOME hB. [1] http://standards.freedesktop.org/desktop-entry-spec/desktop-entry- spec-1.0.html \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (4)
-
J. Daniel Schmidt
-
Johannes Meixner
-
Katarina Machalkova
-
Martin Vidner