Page 1 of 1

Pcmanfm menu://applications/?

Posted: Wed Aug 25, 2010 5:13 am
by wasp
Hi,
there is a way to appear, as in Lubuntu, the menu item in the application menu://applications pcmanfm of?
Now the list is empty ...

Re: Pcmanfm menu://applications/?

Posted: Wed Aug 25, 2010 3:01 pm
by JasonLG
wasp wrote:Hi,
there is a way to appear, as in Lubuntu, the menu item in the application menu://applications pcmanfm of?
Now the list is empty ...
Your post is unintelligible. Please either post your question in the forum for your native language if one is available or ask someone who has a firmer grasp of English to post on your behalf.

Re: Pcmanfm menu://applications/?

Posted: Mon Aug 30, 2010 6:45 am
by m4daredsun
I am not sure if I have understood your question correctly, but I'll try to answer.

According to the 'Known Problems' in the release notes for Mint 9 LXDE (http://linuxmint.com/rel_isadora_lxde.php):

Applications in the file manager
The "Applications" tab in the file manager is not fully supported yet. It is currently empty and serves no function.

So there is probably no possibility to add any application in the pcmanmf menu

Re: Pcmanfm menu://applications/?

Posted: Wed Sep 01, 2010 6:08 am
by Dr.U
Hi,

I am using pcmanfm 0.9.5 and in my panel there is in the "Application Launch Bar" an icon for the file manager (pcmanfm). When I first start pcmanfm by clicking on this icon or or by opening the panel Menu -> Accessories -> File Manager I can then click on the "Applications" tab in the file manager and see various entries that can then be opened to show their associated apps. 8)

This also continues to work when then starting further instances of pcmanfm by any other method (e.g. from a terminal or from my hotkeys in my mint-lxde-rc.xml file or from my menu.xml file) as long as the instance started from the panel or the panel menu is still open. :!:

However, if I first start pcmanfm by any other method (e.g. from a terminal, from hotkeys or from my menu.xml) I get an empty result when clicking on the "Applications" tab in the file manager and this also applies to any additional instances started from the "Application Launch Bar" in the panel or from the panel menu. :(

So if you want to use the "Applications" tab in pcmanfm, then it seems that you must:

1. Have no instances of pcmanfm running that were started from a terminal, or one of the lxde hotkeys or menu.xml files that you might have created.

and

2. You must start pcmanfm from either the panel menu (Accessories -> File Manager) or from an icon in the "Application Launch Bar" in the panel (if not present then set it up).

I hope that this is of some help to anyone wishing to use the "Applications" tab in pcmanfm.

Note: I do not use pcmanfm to "manage" my desktop or set the desktop background image, nor do I start pcmanfm automatically from my autostart.sh file! These might prevent use of the "Applications" tab in pcmanfm, but I have not tested this.

Best regards,

-- Dr.U
----------------------------------------------------------------------------------------------------------------------------
"A child of five would understand this. Send someone to fetch a child of five."
(Groucho Marx)

Re: Pcmanfm menu://applications/?

Posted: Sun Sep 05, 2010 6:57 pm
by lKingjr
the application tab is working in pcmanfm .097

Re: Pcmanfm menu://applications/?

Posted: Thu Sep 09, 2010 6:11 am
by Dr.U
Hi, IKingjr:

I installed pcmanfm2 0.9.7 and find no difference in the behavior of the applications-tab compared to version 0.9.5. Perhaps my posting is unclear, but basically starting the first instance of pcmanfm2 by any method other than by using the standard menu entry or the icon on the task bar results in a dead (i.e. empty) applications-tab. At least on my box it's that way. :(

Regards,

-- Dr.U

Re: Pcmanfm menu://applications/?

Posted: Sun Nov 27, 2011 5:42 pm
by dankles
When I googled for the problem, I found this forum thread which doesn't contain the answer....

So I'll give you the answer that I found! :)

pcmanfm requires the environment variable "XDG_MENU_PREFIX" to be set.

You can set it to something like "export XDG_MENU_PREFIX=lxde-" or "export XDG_MENU_PREFIX=xfce-" (you'll probably want "lxde-" in your case. I've added that to my ".xinitrc" file, but I don't know if that works on linux mint since I use gentoo.

What is happening is that it's looking to make a match here:

Code: Select all

mercury /etc/xdg/menus $ ls -1
gnome-applications.menu
lxde-applications.menu
settings.menu
xfce-applications.menu
mercury /etc/xdg/menus $ 
e.g. if you set it to "XDG_MENU_PREFIX=xfce-" it will use the "xfce-applications.menu".

In order for the "lxde-applications.menu" file to populate there, you need the "lxmenu-data" package installed (or at least thats what its called under gentoo which I'm using)

Code: Select all

$ equery f lxmenu-data
 * Searching for lxmenu-data ...
 * Contents of lxde-base/lxmenu-data-0.1.2:
/etc
/etc/xdg
/etc/xdg/menus
/etc/xdg/menus/lxde-applications.menu
/usr
/usr/share
/usr/share/desktop-directories
/usr/share/desktop-directories/lxde-audio-video.directory
/usr/share/desktop-directories/lxde-development.directory
/usr/share/desktop-directories/lxde-education.directory
/usr/share/desktop-directories/lxde-game.directory
/usr/share/desktop-directories/lxde-graphics.directory
/usr/share/desktop-directories/lxde-hardware.directory
/usr/share/desktop-directories/lxde-internet-and-network.directory
/usr/share/desktop-directories/lxde-look-and-feel.directory
/usr/share/desktop-directories/lxde-menu-applications.directory
/usr/share/desktop-directories/lxde-menu-system.directory
/usr/share/desktop-directories/lxde-network.directory
/usr/share/desktop-directories/lxde-office.directory
/usr/share/desktop-directories/lxde-other.directory
/usr/share/desktop-directories/lxde-personal.directory
/usr/share/desktop-directories/lxde-settings-system.directory
/usr/share/desktop-directories/lxde-settings.directory
/usr/share/desktop-directories/lxde-system-tools.directory
/usr/share/desktop-directories/lxde-system.directory
/usr/share/desktop-directories/lxde-utility-accessibility.directory
/usr/share/desktop-directories/lxde-utility.directory
/usr/share/doc
/usr/share/doc/lxmenu-data-0.1.2
/usr/share/doc/lxmenu-data-0.1.2/AUTHORS.bz2
/usr/share/doc/lxmenu-data-0.1.2/README.bz2

I hope this helps to anyone that stumbles upon this post

Re: Pcmanfm menu://applications/?

Posted: Fri Jan 25, 2013 7:59 am
by mikeym
dankles wrote:I hope this helps to anyone that stumbles upon this post
Stumbled on this post dankles and it was a big help. I'm not actually using mint. I'm using plain Openbox on lubuntu - rather than LXDE - and I just added the prefix to the appropriate Openbox environmental file ~/.config/openbox/environment so it looks like:

Code: Select all

# Set up environmental variables for Openbox

# Set up applications menu for pcmanfm
export XDG_MENU_PREFIX="lxde-"
Then logged out and back in and it worked.

Thanks for the info.