LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2012, 09:59 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Debian, EasyPeasy, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,431
Blog Entries: 10

Rep: Reputation: 98
Xfce - adding a NEW menu


All the menu customizing docs I find via Google are telling me how to modify an existing menu (and it's awfully messy). I do not want to modify an existing menu. Instead, I want to create a whole NEW menu that has nothing but my own stuff in it (e.g. a bunch of lines, with custom text, that when selected will invoke a custom command line). I want it to have its own separate config file. It should have its own way to be brought up separate from any other. An icon on the panel bar (placed where I want it) would be ideal.
 
Old 02-04-2012, 07:35 AM   #2
Perceptor
Member
 
Registered: Jul 2007
Location: the Future
Distribution: Slackware 13.37
Posts: 95

Rep: Reputation: 51
Yeah, Xfce menus are a mess. You could use a standalone menu (I personally use mygtkmenu in xmonad) and add a launcher for it.
 
1 members found this post helpful.
Old 02-04-2012, 10:26 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Debian, EasyPeasy, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,431
Blog Entries: 10

Original Poster
Rep: Reputation: 98
Quote:
Originally Posted by Perceptor View Post
Yeah, Xfce menus are a mess. You could use a standalone menu (I personally use mygtkmenu in xmonad) and add a launcher for it.
Interesting. I went searching for "mygtkmenu" and found a different one not in Haskell (as Xmonad purports to be). This one appears to be a standalone project in C:

http://sites.google.com/site/jvinla/mygtkmenu
 
Old 02-04-2012, 10:46 AM   #4
Perceptor
Member
 
Registered: Jul 2007
Location: the Future
Distribution: Slackware 13.37
Posts: 95

Rep: Reputation: 51
I meant that I use it in xmonad, since the WM does not provide its own. I apologize for not being clear enough.
 
1 members found this post helpful.
Old 02-04-2012, 03:31 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Debian, EasyPeasy, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,431
Blog Entries: 10

Original Poster
Rep: Reputation: 98
Quote:
Originally Posted by Perceptor View Post
I meant that I use it in xmonad, since the WM does not provide its own. I apologize for not being clear enough.
Sorry, I misinterpreted. I finally got it compiled and it brings up menus! \o/
It even works from command line, though the menu won't display until the mouse does some action of any kind.

This looks like it could be a useful GTK+ example program, too. Now to go try it on a test box running Slackware+Xfce. I will want to make improvements, and this being in C and C being my strong language (and wanting to learn GTK+), I'll be recoding this at some point.

Thanks!
 
1 members found this post helpful.
Old 02-04-2012, 07:50 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,981
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
It may be possible entirely within Xfce.

Xfce (explored with version 4.6.1) supports creating a second menu with a custom menu file instead of the default ~/.config/menus/xfce_applications.menu (and a custom title and icon). In the custom menu file, it may be possible to discard the default directories searched for *.desktop files by omitting <DefaultAppDirs/> and <DefaultDirectoryDirs/> and using <AppDir> and <DirectoryDir> instead but I could not find any documentation/examples on how to use them and did not succeed with brief experimentation.
 
Old 02-05-2012, 04:01 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Debian, EasyPeasy, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,431
Blog Entries: 10

Original Poster
Rep: Reputation: 98
Do you know if this is only a system-wide capability, or can it be done on a per-user basis? If the former, I would pass on it. If the latter I'll look and see what I can find when I get migrated to Xfce.
 
Old 02-06-2012, 01:37 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,981
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
It may be possible system-wide by creating another file based on /etc/xfce/xdg/menus/xfce-applications.menu in the same directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XFCE menu customization Tribulation Linux - Desktop 2 04-01-2011 11:06 AM
Removing KDE menu items from XFCE menu kr4ey Slackware 8 03-14-2011 03:29 AM
adding new xfce icons wakkana12 Slackware 8 05-25-2010 09:56 PM
Menu icons in Xfce 4.4: Where did they go? cwwilson721 Slackware 2 07-31-2006 01:33 PM
Adding a KDE menu to gnome menu Projekt2 Slackware 3 10-25-2003 01:47 PM


All times are GMT -5. The time now is 04:14 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration