You are not logged in.

#1 2009-01-18 11:27:39

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Alacarte - lightweight replacement?

The title sais it all really,  Is there a lightweight menu editor?  I'm using e17 and want to keep gnome deps down if i can.

Any ideas?

Offline

#2 2009-01-18 14:27:14

Odd-rationale
Member
Registered: 2008-02-05
Posts: 102

Re: Alacarte - lightweight replacement?

I just edit the .desktop files (usually in /usr/share/applications/) and add the "NoDesktop=true" line to the end of those I don't want in the menu.

Offline

#3 2009-01-19 19:48:59

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Alacarte - lightweight replacement?

Just to make it a bit easyier add this to your bashrc

alias menuhide="echo NoDesktop=True >> $1"

then from prompt

menuhide example.desktop

Saves opening every file


The only real problem I can see is that everytime you have an update pacman will update the desktop file.


Thanks though is much better than all them deps smile

Offline

#4 2009-01-19 20:01:18

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Alacarte - lightweight replacement?

pacman will only update the desktop files in /usr/share/applications. If you put the custom files in ~/.local/share/applications, those will be read first.

Offline

#5 2009-01-19 22:36:52

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Alacarte - lightweight replacement?

Thanks for the tip skottish - Heres some updated code for .bashrc

function menuhide {
mkdir -p ~/.local/share/applications
cp $1 ~/.local/share/applications
echo NoDesktop=True >> ~/.local/share/applications/$1
}

Someone who is actually good at bash can probably improve this loads wink

Offline

Board footer

Powered by FluxBB