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.
After using the Xfce4 wiki to find out how to hide applications in the Applications Menu, I encountered some strange behavior. After exiting and restarting Xfce4, all of the MIME type changes reverted to defaults. I asked on the Xfce forum about this, figuring I had either done something wrong or did not understand the wiki information. By 'hide' I mean adding "NoDisplay=true" to the .desktop file.
I got a reply back that sent me to an Arch Linux wiki page. Reading it, it talked about copying
/usr/share/applications/defaults.list or /usr/share/applications/mimeapps.list to
./local/share/applications/. However, I don't seem to have either one of these files in /usr/share/applications.
So, my question: how is Xfce configured in Slackware and where do I go to find out how to hide applications while retaining my MIME types?
I don't know. I just create a template user, configure Xfce, and then copy over the whole ~/.config stuff to /etc/skel. Or more precisely, I put this configuration in a 'user-settings-xfce' package.
After using the Xfce4 wiki to find out how to hide applications in the Applications Menu, I encountered some strange behavior. After exiting and restarting Xfce4, all of the MIME type changes reverted to defaults. I asked on the Xfce forum about this, figuring I had either done something wrong or did not understand the wiki information. By 'hide' I mean adding "NoDisplay=true" to the .desktop file.
I got a reply back that sent me to an Arch Linux wiki page. Reading it, it talked about copying
/usr/share/applications/defaults.list or /usr/share/applications/mimeapps.list to
./local/share/applications/. However, I don't seem to have either one of these files in /usr/share/applications.
So, my question: how is Xfce configured in Slackware and where do I go to find out how to hide applications while retaining my MIME types?
To hide an application in the Xfce menu just add "Hidden=true" to the corresponding .desktop file. To do it system wide, do it in /usr/share/applications. This way your changes could be reverted with every package update. To do it locally for specific users, copy the corresponding .desktop file from /usr/share/applications to the users' ~/.local/share/applications and do it there. This way your changes won't be reverted, but also not updated with package updates.
If the directory ~/.local/share/applications doesn't exist, just create it.
This way you can change every part of the menu item for an application.
To hide an application in the Xfce menu just add "Hidden=true" to the corresponding .desktop file. To do it system wide, do it in /usr/share/applications. This way your changes could be reverted with every package update. To do it locally for specific users, copy the corresponding .desktop file from /usr/share/applications to the users' ~/.local/share/applications and do it there. This way your changes won't be reverted, but also not updated with package updates.
If the directory ~/.local/share/applications doesn't exist, just create it.
This way you can change every part of the menu item for an application.
Well I had created ~/.local/share/applications and copied all .desktop files over to it. That is what the Xfce wiki said to do. I used NoDisplay=true rather than Hidden=true because of this part of the wiki: "As explained here, NoDisplay=true will hide the application from the menu but the mime type associations will still be available. Hidden=true is equivalent to deleting the file." My understanding was that doing it this way would just get the item off the applications menu, but still allow the MIME association to remain. My desire was to just cleanup the applications menu to make it somewhat easier for me to select what I was interested in. For example, I never use Kjots so I wanted it to disappear from the menu.
As I said, the wiki procedure worked in that the items were no longer being displayed. It was just that after I restarted Xfce all of my MIME associations had reverted to the default. It is this changing of associations that was undesireable. When I asked about this on the Xfce forum, I was given the link to the Arch Linux wiki which mentioned the mimeapps.list or defaults.list files and these files evidently do not exist on Slackware. Maybe they are Arch specific? Perhaps my question should be changed to "what files control MIME associations on Slackware"?
After some experimenting I found out many interesting things, such as where a mimeapps.list file can come from. From my reading I've not found out why the MIME associations changed just by hiding an item on the Applications menu. I'll mark this solved as I have figured out how to hide some of the items I don't want cluttering up my menus and can always just redo the MIME associations. Thanks for the help from all.
I have stopped using the menu entirely - but if you want only a few menu entries, you can make a new menu file and just add in the few apps you want.
Of course, you can also do an auto-hiding panel...
Last edited by mjjzf; 11-04-2013 at 07:12 AM.
Reason: Braintypo
Maybe I'm missing something, but if you just want to hide items in your menu, why not just edit the menu through Menu/Settings/Main Menu, and uncheck the items you don't want to see?
Maybe I'm missing something, but if you just want to hide items in your menu, why not just edit the menu through Menu/Settings/Main Menu, and uncheck the items you don't want to see?
Hmmm... on Xfce4 I don't have a Menu/Settings/Main Menu. Do you?
Yes. On the panel is Applications Menu. Open that, and one of the choices is Settings, and one of the choices on that submenu is Main Menu, which is a menu editor. Running Xfce4.10. IIRC it was also on previous versions.
Yes. On the panel is Applications Menu. Open that, and one of the choices is Settings, and one of the choices on that submenu is Main Menu, which is a menu editor. Running Xfce4.10. IIRC it was also on previous versions.
There is no menu editor in Xfce 4.10. Upstream removed it after 4.6 if I recall correctly.
There are a few external menu editors available for Gnome, which are working more or rather less with Xfce, too, but they are not needed, because they also do nothing else than what I already suggested to do manually.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.