! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-settings-manager: multiple occurrences of the same desktop file
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Settings Manager

Comments

Description Lionel Le Folgoc 2009-03-27 23:38:39 CET
Originally spotted on a French forum: http://forum.ubuntu-fr.org/viewtopic.php?pid=2521248#p2521248 (screenshot available)

Xfce4-settings 4.6.0 (reproduced on both Debian and Ubuntu).

Hi,

I'm not sure whether it's done on purpose or not, but user-defined/customized desktop files do not override system-wide ones in xfce4-settings-manager, they are only added to the list.

E.g.:
$ cp -a /usr/share/applications/xfce4-accessibility-settings.desktop ~/.local/share/applications/.

If you open xfce4-settings-manager at this moment, you'll see two Accessibility icons instead of one.

$ echo "X-XfceSettingsManagerHidden=true" >> .local/share/applications/xfce4-accessibility-settings.desktop

And if you open it now, you'll see one Accessibility icon instead of zero.

The settings menu behaves correctly though, so this seems to be specific to xfce4-settings-manager.

Thanks!
Comment 1 Stephan Arts editbugs 2009-03-28 10:09:02 CET
true that...

Brian, what do you think? Can we fix this before 4.6.1?
Comment 2 Brian J. Tarricone (not reading bugmail) 2009-03-30 06:33:25 CEST
Sure, if someone else fixes it...
Comment 3 Stephan Arts editbugs 2009-04-06 14:12:17 CEST
Created attachment 2273 
Possible workaround

Please test this workaround, the correct behaviour can be achieved by using the libxfce4menu lib. Which would break the dependency-chain and can not be done for 4.6.1.
Comment 4 Jannis Pohlmann editbugs 2009-04-06 16:58:32 CEST
The patch looks fine, except that it doesn't entirely follow the coding style of the file. And for string comparisons, I'd prefer g_utf8_collate rather than strcmp.
Comment 5 Stephan Arts editbugs 2009-04-18 14:13:48 CEST
Patch slightly modified and committed in r29826

Bug #5159

Reported by:
Lionel Le Folgoc
Reported on: 2009-03-27
Last modified on: 2009-07-14

People

Assignee:
Stephan Arts
CC List:
3 users

Version

Attachments

Possible workaround (1.61 KB, patch)
2009-04-06 14:12 CEST , Stephan Arts
no flags

Additional information