XDG Menu's and Awesome

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

XDG Menu's and Awesome

Postby nankura » Sat Aug 04, 2012 6:10

hey guys, as ive said in a phew posts before, im an archlinux crossover. so im still learning. so please forgive these newcomer questions

anyway. archlinux had a package called archlinux-xdg-menu which provided an xdg_menu syntax

https://wiki.archlinux.org/index.php/Xdg-menu as you see here theres a very simple guide for xdg-menu in awesome, and i was wondering if theres a way to achieve the same effect in awesome on sabayon, ive tried the xdg-menu package, but i cant figure out the commands
nankura
Young Hen
 
Posts: 32
Joined: Sat Sep 10, 2011 9:35

Re: XDG Menu's and Awesome

Postby wolfden » Sat Aug 04, 2012 9:32

commands for what exactly?
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: XDG Menu's and Awesome

Postby nankura » Sat Aug 04, 2012 9:47

well thats why i posted the archwiki link, the commands are in there. but ill paste em here :)

Code: Select all
Awesome
With xdg_menu
$ xdg_menu --format awesome  >>~/.config/awesome/menu.lua

Then edit your rc.lua as shown below
Add a require statment for your new menu.lua file
Add an entry to your awful.menu object for your new menu which calls xdgmenu
...
require("menu")
...

...
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "Applications", xdgmenu },
                                    { "open terminal", terminal }
                                  }
                        })
...


this is the function of archlinux-xdg-menu and id like to achieve the same effect with awesome here
nankura
Young Hen
 
Posts: 32
Joined: Sat Sep 10, 2011 9:35

Re: XDG Menu's and Awesome

Postby wolfden » Sat Aug 04, 2012 9:49

the commands should work the same across all distros
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: XDG Menu's and Awesome

Postby nankura » Sat Aug 04, 2012 9:56

am i missing a package?, because i couldnt find much on an xdg menu, i tried "xdg-menu" but the commands wouldnt work, i guess im trying to find what package allows the functions
nankura
Young Hen
 
Posts: 32
Joined: Sat Sep 10, 2011 9:35

Re: XDG Menu's and Awesome

Postby wolfden » Sat Aug 04, 2012 10:07

did you install rox-base/xdg-menu ?

You can verify the dependencies here: http://packages.sabayon.org/show/xdg-me ... -show-what
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: XDG Menu's and Awesome

Postby nankura » Sat Aug 04, 2012 10:31

yes i did, and the same commands dont work, it just says the command doesnt exsist
nankura
Young Hen
 
Posts: 32
Joined: Sat Sep 10, 2011 9:35

Re: XDG Menu's and Awesome

Postby nankura » Sun Aug 05, 2012 4:39

verified all deps today, installed all the extra's, and tried xdg-utils, i still cant figure out why its not working. theres gotta be something im missing, any help will be appreciated
nankura
Young Hen
 
Posts: 32
Joined: Sat Sep 10, 2011 9:35

Re: XDG Menu's and Awesome

Postby wolfden » Sun Aug 05, 2012 8:41

I haven't have time to test, but for giggles, try running it as root and see if that works or use sudo.
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: XDG Menu's and Awesome

Postby wolfden » Sat Aug 18, 2012 10:32

I finally got to look into this the command is xdg-desktop-menu
See http://portland.freedesktop.org/xdg-uti ... -menu.html for usage and examples

Code: Select all
sabayonuser@localhost ~ $ xdg-desktop-menu --help
   xdg-desktop-menu - command line tool for (un)installing desktop menu items

Synopsis

   xdg-desktop-menu install [--noupdate] [--novendor] [--mode mode]
   directory-file(s) desktop-file(s)

   xdg-desktop-menu uninstall [--noupdate] [--mode mode] directory-file(s)
   desktop-file(s)

   xdg-desktop-menu forceupdate [--mode mode]

   xdg-desktop-menu { --help | --manual | --version }

Use 'man xdg-desktop-menu' or 'xdg-desktop-menu --manual' for additional info.


might want to look at http://sourceforge.net/projects/awemenugen/ for a simple menu populator
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest