How to make pcmanfm foremost window on launch?

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
jackbroni
Posts: 1
Joined: Fri Nov 29, 2013 6:57 am

How to make pcmanfm foremost window on launch?

Post by jackbroni »

Often when pcmanfm is launched instead of being placed as the foremost window on the desktop, it is placed in the gnome-panel and does not get placed as the foremost window.

It becomes annoying have to make another click in the gnome-panel to bring it up again.

Is there a way to place the newly opened pcmanfm as the foremost window, with regards to pcmanfm specifically and perhaps a generic solution, in case this behavior occurs with other applications.

Specs:

Ubuntu 12.04.3
pcmanfm 1.1.2
lightdm 1.2.3
gnome metacity (classic no effects)
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: How to make pcmanfm foremost window on launch?

Post by drooly »

this might be window manager related.
you're not using lxde as your desktop environment and might consider posting the same question on ubuntu forums or e.g. linuxquestions.org.
does the problem occur no matter how you launch pcmanfm?
how do you launch pcmanfm?
jonnycat
Posts: 15
Joined: Wed Dec 04, 2013 8:17 pm

Re: How to make pcmanfm foremost window on launch?

Post by jonnycat »

If you're using openbox, you can edit the ~/.config/openbox/lxde-rc.xml file. Head down to the <applications> section, and make a listing for it as such:

<application name="pcmanfm">
<focus>yes</focus>
</application>

Now it should always be focused when you open it up.
Locked