Bug 339549

Summary: package-manager-su does not work with windowmaker
Product: [openSUSE] openSUSE 10.3 Reporter: Lothar Armbrüster <la>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: ma
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.3   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lothar Armbrüster 2007-11-06 17:39:59 UTC
When not using KDE or Gnome but windowmaker, you are not able to start yast2 via menu.
The reason is that /usr/bin/package-manager-su fails to identify the desktop environment. The problem starts at line 408:

--> cut <--
detectDE

if [ x"$DE" = x"" ]; then
    XSU=`which xsu 2>/dev/null`
    if [ $? -eq 0 ] ; then
        DE=generic
    fi
fi
--> cut <--

DE is not set to generic because xsu does not exist on the system.
The corresponding lines in /usr/bin/xdg-su are:

--> cut <--
detectDE

if [ x"$DE" = x"" ]; then
    which xterm 2>/dev/null >&2
    if [ $? -eq 0 -a -n "$DISPLAY" ] ; then
        DE=generic
    fi
fi
--> cut <--

So package-manager-su has to be corrected appropriately.
Comment 2 Martin Vidner 2008-04-28 13:42:43 UTC
Fixed in libzypp SVN, r9864, by copying the currend xdg-su.
See also bug 309164 for the "upstream" bug.
Comment 3 Martin Vidner 2008-04-29 07:10:51 UTC
Submitted for Beta2 in libzypp-4.16.0.