You are not logged in.

#1 2009-09-29 23:48:58

earthpig
Member
Registered: 2009-03-24
Posts: 30

Simple/Silly PCmanFM problem with the "Open With Other Program"...

hi,

PCmanFM is great... except for this one problem that is quite bizarre.

when i right click on a file -> open with -> open with another program -> all applications...

there are duplicate entries for each program.

and each time i use one, it creates another entry of that program!! I verified this by counting the instances of AbiWord and Evince Document Viewer... opening a something with one or the other, and counting again.

I have AbiWord about two dozen times, GIMP 3 times, et cetera.

even programs i've never opened in PCmanFM start out having two entries (htop and nvidia-settings are examples of that).

anyone have any suggestions?

PCmanFM was installed as a depen of LXDE, which i use.

Last edited by earthpig (2009-09-29 23:50:06)

Offline

#2 2009-09-30 00:30:33

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

Check the following directory:

~/.local/share/applications

On my machine it stores all user created entries in pcmanfm.

Offline

#3 2009-09-30 02:39:11

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

[chris: ~/.local/share/applications]$ ls
abiword-usercustom-0-usercustom-0.desktop  fusion-icon.desktop
abiword-usercustom-0.desktop           gcalctool.desktop
alacarte-made-1.desktop               gimp.desktop
alacarte-made-2.desktop               gnome-do.desktop
alacarte-made-3.desktop               googleearth.desktop
alacarte-made.desktop               gstreamer-properties.desktop
avahi-discover.desktop               gtkpacman.desktop
chromium-browser.desktop           htop.desktop
defaults.list                   mimeinfo.cache
emerald-theme-manager.desktop           nm-connection-editor.desktop
[chris: ~/.local/share/applications]$

some of those are menu entries i created with alacarte... but there are items duplicated in the pcmanfm open with -> other application -> all applications that are not listed there. battle for wesnoth, for example.

Last edited by earthpig (2009-09-30 02:39:22)

Offline

#4 2009-09-30 04:13:44

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

earthpig wrote:

some of those are menu entries i created with alacarte... but there are items duplicated in the pcmanfm open with -> other application -> all applications that are not listed there. battle for wesnoth, for example.

That's because there is a system wide directory and pcmanfm just combines whatever it gets from the two directories. The system wide one is

/usr/share/applications

So just check it out. I think there is no more. But I'm not quite sure.;)

Offline

#5 2009-09-30 10:06:42

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

checked it out.

yes, many apps have another entry there....

...still no reason why AbiWord entires would be in the dozens.

and still no reason for this:

each time i use one, it creates another entry of that program!

Offline

#6 2009-10-01 06:38:55

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

bumpitty bump big_smile

i do appreciate the help, eirika. any more suggestions?

Offline

#7 2009-10-01 14:18:45

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: Simple/Silly PCmanFM problem with the "Open With Other Program"...

1.Here I get exactly one entry for AbiWord. More concretely, I get an exact one to one correspondence between the entry showed in pcmanfm and the files appears in the directories:

 /usr/share/applications
~/.local/share/applications

So I have no idea of what's going on on your machine. Please check if you really have extra entry in pcmanfm even if you have counted all files in these directories.

2.

earthpig wrote:

and still no reason for this:

each time i use one, it creates another entry of that program!

I think you mean every time you check "set selected application to default action" for your action it creates another entry. That's the default pcmanfm behavior. I think it's an author's preference and I don't think there is a way to change this in pcmanfm. A simple workaround is that you can set

~/.local/share/applications

to read only, and pcmanfm will stop adding any entry. But of course you will have to restore the write permission if you really want a new entry. Maybe you can contact the author and file a feature request?

3. You can edit your preference manually. Just edit ~/.local/share/applications/mimeinfo.cache. In this way you can reuse one entry for multiple file types. Then delete useless entries in ~/.local/share/applications.

Last edited by eirika (2009-10-01 14:49:30)

Offline

Board footer

Powered by FluxBB