[Bug 540627] New: X-KDE-SubstituteUID do not work on XFCE and LXDE
http://bugzilla.novell.com/show_bug.cgi?id=540627 Summary: X-KDE-SubstituteUID do not work on XFCE and LXDE Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andrea@opensuse.org QAContact: jsrain@novell.com Found By: --- I don't know if that is a YaST/ XFCE/ X.org or Usability issue, but because it's a YaST2 launcher problem i added YaST2 as componet, feel free to edit if i am wrong. 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. /usr/share/applications/YaST.desktop content: [Desktop Entry] X-SuSE-translate=true Type=Application Categories=Settings;System;SystemSetup;X-SuSE-Core-System;X-SuSE-ControlCenter-System; Name=YaST Icon=yast GenericName=Administrator Settings Exec=/usr/bin/xdg-su -c /sbin/yast2 #OnlyShowIn=KDE;GNOME; #X-KDE-SubstituteUID=true X-KDE-RootOnly=true X-KDE-System-Settings-Parent-Category=system X-KDE-ServiceTypes=KCModule Encoding=UTF-8 as you can see use /usr/bin/xdg-su -c in Exec line, made the .desktop file DE independent -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
zhu rensheng
http://bugzilla.novell.com/show_bug.cgi?id=540627
User lslezak@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=540627#c1
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c
andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c2
Pavol Rusnak
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c
Katarina Machalkova
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c
Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c3
Christian Boltz
Either we edit _ALL_ desktop files and replace X-KDE-SubstitudeUID with Andrea's suggestion (xdg-su -c cmd)
That's the way to go IMHO. Finding all desktop files that contain X-KDE-SubstitudeUID should be easy with a rpmlint (or similar) check.
or we hack the support into Xfce and LXDE. (We would still need to hack ALL new upcoming desktop environments ...)
That will cause more work on the long-term ;-) and additionally isn't a good[tm] solution. If you really want this way, ask upstream (freedesktop.org) to introduce a "SubstitudeUID" parameter that is valid for all desktops instead of making all desktop environments honoring KDE-specific settings. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c4
--- Comment #4 from Katarina Machalkova
Really, also GNOME as very famous DE understand that.
Not quite true, SUSE's fork of GNOME does, but upstream GNOME does not (that's what I was told some time ago, maybe it's not so anymore ... ) (In reply to comment #2)
Either we edit _ALL_ desktop files and replace X-KDE-SubstitudeUID with Andrea's suggestion (xdg-su -c cmd)
Fair enough, let's do it. The only thing that bothers me is that YaST should somehow require/recommend xdg-utils in order to make sure 'xdg-su' is really installed and can be used. The question is i) which component of YaST ( yast2 - its base package, as every single YaST module depends on it? ) will be the one with requirement ii) wouldn't strict requirement of xdg-utils pull in some additional (desktop-oriented) stuff we certainly want to avoid on minimal systems where YaST must also work? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c5
--- Comment #5 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c6
--- Comment #6 from Pavol Rusnak
i) which component of YaST ( yast2 - its base package, as every single YaST module depends on it? ) will be the one with requirement
Unless we have another yast package that is being installed for each module, yast2 seems to be the only choice.
ii) wouldn't strict requirement of xdg-utils pull in some additional (desktop-oriented) stuff we certainly want to avoid on minimal systems where YaST must also work?
$ rpm -q --requires xdg-utils rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 /bin/bash /bin/sh rpmlib(PayloadIsLzma) <= 4.4.6-1 Seems that xdg-utils does not bring any unnecessary requires to system (at the moment). We'd need to track that if we added REQUIRES to yast2 core package. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c7
Pavol Rusnak
who's supposed to submitreq for ANY desktop file? any fast way to do it?
I wouldn't create SRs right now. There would be hundreds of them. We could think of a better approach and probably also create RPMLINT check which will throw an error if "X-KDE-SubstituteUID" and suggest using "xdg-su -c" in Exec line instead. Adding Coolo and Dirk for further discussion.
2nd in other words, even minimum X11 installation should already have xdg-utils installed because of patterns.
Good. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c8
--- Comment #8 from Katarina Machalkova
who's supposed to submitreq for ANY desktop file? any fast way to do it?
I wouldn't create SRs right now. There would be hundreds of them.
Right, it's like ~80 YaST packages to submit. Some of them (storage, tv, ...) are already submitted with the above mentioned change. The rest will get submitted over the time, due to other pending changes. Those that won't, might get a reminder in, say, 2 months from now ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c9
--- Comment #9 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c10
--- Comment #10 from Pavol Rusnak
I wouldn't create SRs right now. There would be hundreds of them.
Right, it's like ~80 YaST packages to submit.
Well, not only YaST uses desktop files. That's why I wrote "hundreds" ... But thanks for your effort in YaST territory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c11
--- Comment #11 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c12
--- Comment #12 from Katarina Machalkova
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c13
--- Comment #13 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c14
Pavol Rusnak
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c15
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c16
--- Comment #16 from andrea florio
FYI regarding comment #8: "adding a weak requirement to yast2, so it now Recommends: xdg-utils. On X11-enabled systems xdg-utils are in anyway. On X11-less systems we don't need them"
In the end "Recommends: xdg-utils" lets our package mamagement system install xdg-utils and anything which it requires in any case, see https://bugzilla.novell.com/show_bug.cgi?id=546893#c4 ----------------------------------------------------------------- Recommends has in the end the same result as Requires (if the packages are available to be installed) because our installer installs recommended packages silently -----------------------------------------------------------------
Fortunately (as far as I see) xdg-utils requires almost nothing. In particular (as far as I see) xdg-utils does not require or recommend any X11 stuff.
exactly, it will never recommend/requires anything since it's just a set of wrapper scripts. if do not want to recommend it, how do you suggest to proceed? simply work on patterns? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c17
--- Comment #17 from Katarina Machalkova
if do not want to recommend it, how do you suggest to proceed? simply work on patterns?
Nah, what Johannes is probably trying to imply here is that with current default setup of libzypp and solver, there is no difference between Recommends and Requires. Package gets pulled in as a dependent one no matter which one of these two is used, so we could have done Requires:xdg-utils just as well. This behaviour can be switched off in zypp.conf and then only Requires will be installed along with selected package/pattern. But I doubt many users know about and use this option. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c18
--- Comment #18 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c19
Vincent Untz
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c20
--- Comment #20 from Pavol Rusnak
So, hrm, does that mean I can remove the patches we have in GNOME to support X-KDE-SubstituteUID?
Let's keep them for a while. At least until there is a rpmlint check ready and active :-) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c
andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c21
Pavol Rusnak
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c22
--- Comment #22 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c23
--- Comment #23 from Pavol Rusnak
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c24
Vincent Untz
Fixed wireshark, sax2 and gparted package. Reassigning to GNOME so they can fix their desktop files, after that we should clean KDE.
I fixed the only mention of a X-KDE-SubstitudeUID key in GNOME .desktop files I'm aware of. So moving to kde team. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c25
--- Comment #25 from andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c26
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c27
--- Comment #27 from andrea florio
Update released for: yast2-add-on-creator Products: openSUSE 11.2 (i586) openSUSE 11.3 (i586)
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c
Stephen Dunn
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c28
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c29
--- Comment #29 from andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c
andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c30
--- Comment #30 from Vincent Untz
what about bnc621848 ??
they said the request for maintenance was sent, but i don't see any progress... 11.3 is still broken
As I said in my comment, I only looked at 11.4 (ie, Factory). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c31
--- Comment #31 from Katarina Machalkova
the following .desktop files for yast are still broken:
add-on
..
system_settings
and only based on the ones i have installed... can you confirm it has been fixed on factory?
Nope, it has been fixed in YaST SVN only. Some modules are fixed in Factory, because mass update of .desktop files (removing SubstituteUID) got in along with other bugfixes. The above listed modules are still broken in Factory because nobody made submitreqs when there were no other bugfixes pending. And nobody (almost) hacks on YaST anymore -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c33
Hubert Mantel
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c34
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=540627 https://bugzilla.novell.com/show_bug.cgi?id=540627#c Bug 540627 depends on bug 621848, which changed state. Bug 621848 Summary: YaST2 module list from command line invocation http://bugzilla.novell.com/show_bug.cgi?id=621848 What |Old Value |New Value ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Status|NEEDINFO |REOPENED Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c35
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c36
--- Comment #36 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c37
--- Comment #37 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c38
--- Comment #38 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c39
--- Comment #39 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c40
--- Comment #40 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c41
--- Comment #41 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c42
--- Comment #42 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c43
--- Comment #43 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c44
--- Comment #44 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c45
--- Comment #45 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c46
--- Comment #46 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c47
--- Comment #47 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c48
--- Comment #48 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c49
--- Comment #49 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c50
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c51
--- Comment #51 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c52
--- Comment #52 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c53
--- Comment #53 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c54
--- Comment #54 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c55
--- Comment #55 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c56
--- Comment #56 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c57
--- Comment #57 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=540627
https://bugzilla.novell.com/show_bug.cgi?id=540627#c58
--- Comment #58 from Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=540627
http://bugzilla.novell.com/show_bug.cgi?id=540627#c59
--- Comment #59 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com