OnlyShowIn and NotShowIn Directives Do Not Work in XFCE
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OnlyShowIn and NotShowIn Directives Do Not Work in XFCE
Long ago in a galaxy far away I noticed that the OnlyShowIn and NotShowIn desktop file directives did not work in Xfce. Specifically, the ~/Desktop/Home.desktop and ~/Desktop/trash.desktop icons display on the Xfce desktop. With the OnlyShowIn directive set to KDE or the NotShowIn set to XFCE, these icons should not display. They do.
My solution long ago was simply to disable desktop icons in Xfce. Recently I decided to enable the desktop icons. Same problem.
I tested this in Xfce 4.4.3 in Current. I tested in Zenwalk 5.2 in a virtual machine. Same results with both desktops.
The OnlyShowIn and NotShowIn desktop directives function correctly in KDE.
Any ideas how to fix this other than some kind of shell script hack? Why don't these directives work correctly in Xfce? Have they ever worked correctly?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
I too stumbled upon this misbehaviour lately and found no way to change it. I hope for xfce 4.6 though which is announced for late december - in the changelog it reads like the bug is known and solved. Can't test it though, didn't manage to compile it by myself.
AFAIR Robby Workman wrote that he followed current xfce development and build it, so he is probably the one to ask if it works with the xfce development snapshots.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
Quote:
Originally Posted by keefaz
Do you add a ";" at the end of the config line ?,
Yep, didn't change anything. Like you wrote, looks like a real bug. The changes won't get backported to xfce 4.4.x, so updating to the new 4.6 branch once it is stable should be THE remedy.
If you want to confirm that it's fixed, http://xfce46.rlworkman.net/ for -current :-)
If you want to go back to 4.4.x after testing, be sure to back up your $HOME/.config and $HOME/.local directories so that you can restore them afterward.
Thanks all for the replies. I too tried with and without the semicolon to no avail. Nice to hear at least that the problem is officially listed as a bug.
Robby, I have two Current environments, one physical and one virtual. I can test your 4.6 package, hopefully soon --- I'm still attending my punch list for various issues in Current. I will at least confirm whether this particular bug is resolved.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
Many thanks Robby for your build scripts and packages. I just build the xfce release candidate on Slackware 12.1 (with VirtualBox) and indeed the bug is solved.
One caveat: "OnlyShowIn" seems to work even if the trailing ";" is missing. "NotShowIn" on the other hand seems to require the ";" as it is specified in the freedesktop.org standards. That's a little bit confusing, even Xfce4 itself creates "malformed" desktop files without the semicolons.
Seems there are incompatibilities, however, with the configuration files. I uninstalled 4.4.3 and then installed 4.6 in my testing partitions. When I started the desktop in 4.6 there was no conky and the theme icons were hosed. Then again, I did not browse any README files for updating notes. I only wanted to see whether the bug was fixed. I restored my config files from backups.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.