LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-24-2009, 03:43 PM   #1
roystonlodge
Member
 
Registered: Jun 2008
Posts: 161

Rep: Reputation: 31
PCMan File Manager - Config file to set default applications?


Anybody out there using the PCMan File Manager?

I would like to know if there is a config file where I can set the default applications for opening various file formats.

Using the GUI, you can set defaults, but I'm ending up with duplicate entries in the "open with" menu, and I need to trim away the ones I don't use. I'd also like to be able to fine-tune the config file.

Unfortunately, I don't know the name of the config file or where it's located, and the PCMan web site doesn't have any documentation.

Thanks in advance!
 
Old 11-24-2009, 04:12 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
It pretty much just uses the default application the desktop has set. Or you can look at /home/username/.local/share/applications
 
Old 11-24-2009, 04:37 PM   #3
roystonlodge
Member
 
Registered: Jun 2008
Posts: 161

Original Poster
Rep: Reputation: 31
Thank you! I was not aware of the /home/username/.local/share/applications folder. I just took a look inside and that's precisely where all my duplicate entries are located.

You sir, have solved by problem. Your coveted Royston Lodge No-Prize is in the mail. ;-)


But, now that I think about it, I have a second question. What's the correct syntax for a default application where the options come after the file name?

For example, when I double-click on an Atari Lynx rom, I want it to launch Handy in scaled mode. The command line for that is "/usr/sbin/handy filename.lnx -2". How do I write the file in the /home/username/.local/share/applications folder so that the "-2" comes after the name of the rom?

I'm used to using Damn Small Linux and DFM where the syntax would be "/usr/sbin/handy %0% -2", where %0% is a wildcard for the filename.

Is there a similar wildcard in PCMan?

Thanks again!

Last edited by roystonlodge; 11-24-2009 at 05:04 PM.
 
Old 12-06-2009, 08:09 AM   #4
alperenc
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
You should use "%f" i think. I opened a file with pcmanfm and selected "always open with" leafpad (text editor). And it genereated a file under .local/share/applications/leafpad-usercustom-0.desktop. You can find %f argument in that file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kde4 default file manager clvic Linux - Desktop 2 10-04-2009 09:55 AM
[SOLVED] Change of default File Manager? LAN-Dominator.nl Linux - Software 4 06-07-2009 03:43 PM
Thunar as default file manager ? slax Linux - Software 2 09-06-2008 01:51 AM
LXer: PCMan File Manager 0.4.5 Review LXer Syndicated Linux News 0 07-15-2008 09:30 AM
File type associations with default applications in Gnome/FC3 mjbrej Fedora 3 12-25-2004 05:28 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration