LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2023, 04:50 AM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Rep: Reputation: Disabled
HOWTO: Add menu items to XFCE on Slackware


1) Create a desktop shortcut to the program (on the desktop).

HOW TO GET THE ITEM TO APPEAR IN THE CORRECT MENU CATEGORY
2) Open the .desktop file in a text editor.
3) Add "Categories=xxxxxxxx;" Where xxxxxxxx is the menu sub category you want it in. e.g "development;"

ADD SYSTEM WIDE:
4) Copy that .desktop shortcut to /usr/share/applications/

ADD FOR JUST ONE USER
4) Create ~/.local/share/applications/ and copy the .desktop shortcut there.

Last edited by arfon; 08-09-2023 at 01:20 AM.
 
Old 07-31-2023, 10:20 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
THhnks so much! I never woulda been able to find that information everywhere else if you hadn't posted it. Before reading this I would have expected xfce on slackware to somehow do something differently than every other desktop and distro that follows xdg desktop spec and wouldn't have trusted what I read. Thanks so much for letting us know it behaves normally, who woulda guessed!

Last edited by enigma9o7; 07-31-2023 at 10:22 PM.
 
Old 07-31-2023, 11:49 PM   #3
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
Quote:
I never woulda been able to find that information everywhere else if you hadn't posted it.
I've been looking for how to do this for YEARS and could never get an answer. Finally a few people have posted the info online and I figured it out so, I'm sharing.

Now I need to figure out how to write XFCE applets.
 
1 members found this post helpful.
Old 08-01-2023, 05:08 AM   #4
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
How to hide unwanted menu entries? Add:
NoDisplay=true

Do you want to have a custom structured Xfce menu?
https://slackalaxy.com/2012/11/15/custom-xfce-menu/

How about multilevel menu?
https://slackalaxy.com/2021/08/08/xfce-multilevel-menu/

Note, OpenOffice.org from SBo does that:
https://slackbuilds.org/repository/1...penoffice.org/
 
2 members found this post helpful.
Old 08-01-2023, 10:15 AM   #5
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
TY solarfields!

I'm adding this to my notes!
 
1 members found this post helpful.
Old 08-01-2023, 03:24 PM   #6
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
There is no way to click on "found this post helpful" for the original post.
Thank you, as I won't have to research this myself now.

I want to kill off the EMACS entry !

Last edited by selfprogrammed; 08-01-2023 at 03:26 PM.
 
1 members found this post helpful.
Old 08-01-2023, 04:08 PM   #7
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Quote:
Originally Posted by selfprogrammed View Post
There is no way to click on "found this post helpful" for the original post.
Thank you, as I won't have to research this myself now.

I want to kill off the EMACS entry !
click in "rate this thread" and give him max stars
 
1 members found this post helpful.
Old 08-01-2023, 06:30 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,462
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by arfon View Post
ADD SYSTEM WIDE:
4) Copy that .desktop shortcut to /usr/share/applications/
Yes. This works for KDE as well.

If you like to keep things separated, you can also use: /usr/local/share/applications/
 
Old 08-02-2023, 03:11 AM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
If you know how XML works, you can write to /etc/xdg/menus/xfce-applications.menu
I've done this to get rid of categories, I just put stuff I use the most in X-Xfce-Toplevel
 
Old 08-04-2023, 03:37 AM   #10
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,068

Rep: Reputation: 148Reputation: 148
In this topic, how do I add back the 'other' menu? It always has many items in it (I don't remove any) but it intermittently disappears and reappears in XFCE over several sessions.
 
Old 08-08-2023, 05:56 AM   #11
RaymondManus
LQ Newbie
 
Registered: Jul 2023
Posts: 1

Rep: Reputation: 0
I appreciate you for sharing your knowledge with us. These instructions are useful for customizing the appearance.High school or college student in need of free essay examples? Visit https://writinguniverse.com/free-ess...deforestation/ this website offering a wide range of essay examples on various topics, including Essays on Concert Review. These samples can greatly aid in completing your essay assignments effectively.

Last edited by RaymondManus; 08-18-2023 at 08:38 AM.
 
Old 08-09-2023, 01:12 AM   #12
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dchmelik View Post
In this topic, how do I add back the 'other' menu? It always has many items in it (I don't remove any) but it intermittently disappears and reappears in XFCE over several sessions.
The best I can figure out on this is that
Code:
/etc/xdg/menus/xfce-applications.menu
...is where these menus are created system-wide.

The OTHER category says:
Code:
<Menu>
  <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
      <OnlyUnallocated/>
        <Include>
          <All/> 
        </Include>
</Menu>

So that is saying that if any apps are NOT placed in one of the directories of the other sub-menus -or- does not have a CATEGORIES parameter that matches the listed categories, then place it in OTHER. It's a catch-all.

If OTHER is appearing and disappearing, it's probably because you're adding/removing applications which do not fit into the other categories.

I may be wrong but, that's what it looks like to me.

Last edited by arfon; 08-09-2023 at 01:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] application menu doesnt have any items anymore -- Xfce Slackware 14.0 dumdadum Slackware 2 11-12-2013 01:01 PM
xfce4-quicklauncher plugin not showing in the xfce panel's "add New Items" menu. bgryderclock Slackware 1 07-05-2011 12:24 AM
Removing KDE menu items from XFCE menu kr4ey Slackware 8 03-14-2011 03:29 AM
Cannot add new items to XFCE Panels in slackware -current el_jauzaa Slackware 1 02-08-2011 04:06 PM
How to add KDE menu items to Gnome menu... QtCoder Linux - General 4 10-05-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration