Bug 1294628
Summary: | Gnome software cached wrong desktop file (if more than one) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chieh Yu <welkineins> |
Component: | gnome-software | Assignee: | Richard Hughes <rhughes> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | klember, rhughes |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-01-07 17:21:06 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chieh Yu
2015-12-29 10:50:40 UTC
From the source code here https://github.com/GNOME/gnome-software/blob/d8242f36bd9393ced47b881d8ffb8732360ba846/src/plugins/gs-plugin-packagekit-refresh.c#L280 Gnome-software just *guess* app id using a for loop over all files that package installed and find the first desktop as it app id. In Synology package, there are two desktop file, and the wrong one is used. The solution in code should we only check desktop file under normal desktop file path. eg. /usr/share/applications or user home directory. Why is the desktop file in /usr/ more important than the one in /opt? Why is the package installing a desktop file in /opt anyway? I'm not against fixing this, but I also think it makes sense to fix the package. commit b4c4640ef820a95e032b754c91aa1c3db24dd9af Author: Richard Hughes <richard> Date: Thu Jan 7 17:20:01 2016 +0000 Only match packaged .desktop files in /usr/share/applications Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1294628 Sorry for the late reply. I won't touch the bug status, but just reply question from Richard. This package use another desktop file to setup up autostart. The file is located in /opt and only link to ~/.config/autostart/ (I'm not so sure about the path) when user want the software autostart. That's why there are two desktop file. Richard, thanks for helping solve the bug. Thank you. |