Home_greyopenFATE - openSUSE feature tracking > #307769
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Remove X-KDE-SubstituteUID and edit Exec on YaST2 .dekstop files

Feature state

openSUSE Distribution
Done
openSUSE-11.3
Rejected Information

Description

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

User benefit:

That will increase openSUSE usability for users running a different DE like XFCE and LXDE, and will be a great step to have that feature: https://features.opensuse.org/307729 perfectly working

Usecase

any user running a DE different that KDE/GNOME will run al yast2 modules as non root user with all the warnings/errors that came from that

Testcase

https://bugzilla.novell.com/show_bug.cgi?id=540627

Discussion


icons/user_comment.png D. M. wrote: (4 years ago)

This is low hanging fruit. I still can see modules using the X-KDE thing instead of xdg-su.

icons/user_comment.png K. C. wrote: (8 months ago)

Seems this is done, I just checked and xdg-su is now used.

Last change: 8 months ago
Voting
Score: 3
  • Negative: 1
  • Neutral: 0
  • Positive: 4
Tags
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint