Bug 871978

Summary: Failed to execute command "package-manager --install %F".
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User wPc2oQi12k <forgotten_wPc2oQi12k>
Component: X11 ApplicationsAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_0ls9xa_qFR, forgotten_cAXlJ_FoSf, giecrilj, lazy.kent
Version: 13.2 Milestone 0   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User wPc2oQi12k 2014-04-04 01:20:32 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

Using the openSUSE 13.2 XFCE 64 bit in VirtualBox. When clicking on the start menu -> Settings -> Install/Remove Software I get the following error:

Failed to execute command "package-manager --install %F".

If I go menu -> Settings -> YAST -> Software Management that works fine.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Forgotten User cAXlJ_FoSf 2014-04-04 11:28:13 UTC
This is a actually a problem in desktop-data-openSUSE which provides package-manager.desktop. libzypp which used to provide the /usr/bin/package-manager script removed it back in December:

Wed Dec  4 12:54:30 UTC 2013 - jreidinger@suse.com

- Drop package-manager script as it is already deprecated and 
  packagekit usage in desktop invalidates it. If someone really
  need it, then place it to proper top level package which can 
  decide what GUI is proper for given task

desktop-data-openSUSE wasn't updated accordingly. The above rationale is not really correct since only the KDE and GNOME desktops actually have packagekit frontends. The package-manager script basically called 'xdg-su /sbin/yast2 --install "$@"' but since that is also deprecated it doesn't make sense to replace it with that, so the most sensible solution is to call xdg-su -c '/sbin/yast2 sw_single'. sw_single doesn't have a CLI so the desktop file cannot work as a MIME handler for local rpms any more but at least the menu shortcut in the Xfce/LXDE can be retained this way.
Comment 2 Forgotten User cAXlJ_FoSf 2014-04-04 11:31:54 UTC
Fix for the desktop-data-openSUSE repo:
https://gitorious.org/opensuse/desktop-data/merge_requests/4
Comment 3 Kyrill Detinov 2014-04-10 18:58:37 UTC
*** Bug 861742 has been marked as a duplicate of this bug. ***
Comment 4 Forgotten User cAXlJ_FoSf 2014-06-29 07:45:37 UTC
*** Bug 884875 has been marked as a duplicate of this bug. ***
Comment 5 Forgotten User 0ls9xa_qFR 2014-07-03 16:35:04 UTC
Could that patch please be applied to desktop-data?

Not sure I like the NotShowIn=KDE though, IMO the yast2 package manager is MUCH better than the KDE one, I prefer to use yast2 sw_single.

I always forget that Install/Remove software doesn't work, and always click on that menu entry until I remember that I have to launch yast first.
Comment 6 Forgotten User cAXlJ_FoSf 2014-07-31 22:15:25 UTC
Fixed.