LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 09-20-2009, 09:33 AM   #16
rumburak
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0

thanks!
 
Old 10-03-2009, 04:41 AM   #17
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
Thank you, your post gave me the pointer I was looking for. I was foogling around (no thats not a typo, its my word for what happens when you spend a while on a pointless web search) for commandline ways to change file associations.

I have Debian Squeeze + kde July edition, there is s slight variation- the properties box has a spanner icon, "edit file types", you can change it there, you will get a reassuring delay with dialogue "updating configuration"
 
Old 10-03-2009, 05:19 AM   #18
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Also look at the /etc/bash_completion file for media filetype that aren't expanded by tab completion after entering the player name in the terminal.

There should be a line where media filetypes are defined and inserting the filetype (e.g. flv|FLV) into the list will enable that file extension for tab completion of arguments.

eg:
Code:
                        _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gmv]|OG[GMV]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC|flv|FLV)'
So one may easily add a filetype without having to fully understand the tab completion file which can get pretty hairy. Grep for your application, another media player or an extension that works. It will probably indicate which line you want to edit.

Now you can have similar expectations in the GUI and the console.
 
Old 10-07-2009, 05:05 PM   #19
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
Many thanks. In the end, the GUI's vary from one distro/version/box to another, but if you have the CLI method under your belt you can fix stuff quickly and reliably
 
Old 10-30-2009, 08:59 AM   #20
dasli
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
mm...interesting
 
Old 03-23-2010, 11:16 PM   #21
js200
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Cool Hate to dig this old post up, but..

This site helps me alot so I thought I would contribute.

IF you have totem and mplayer installed on RHEL/CentOS/Fedora you can change the default file behavior. It's actually pretty simple.

For example - I click a link in firefox but don't want Totem to be the default application. I have mplayer installed (with the .so files mentioned above in /usr/lib64/codecs) and want it to open them by default.

i did a "rpm -q --filesbypkg totem | more" and found the gnome file "/usr/share/applications/totem.desktop". This .desktop file controls the file-types to "respond to". use you favorite editor and goto the last line that has the MIMEtypes and remove every pattern in between the ';' that has -ms- (dash ms dash) these represent the file types.

for example: wmv file extension would look like this ;video/wmv-ms-blah;

Delete what's in blue.

i hope this was clear enough. enjoy!
 
Old 04-07-2010, 08:33 PM   #22
TheWoodchuck
Member
 
Registered: Jun 2001
Posts: 34

Rep: Reputation: 15
Thanks for the post i was looking for that.
 
Old 04-23-2010, 10:50 PM   #23
tiga2001
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Thanks

Thanks to the original poster
 
  


Reply

Tags
association, default, file, gnome



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file type association in gnome 2.1X benjalien Linux - Software 0 01-17-2006 03:12 AM
Setting a default program to open certain file types in Gnome danran Debian 3 10-12-2005 10:07 PM
Gnome file association problem with PDF wijnands Linux - Newbie 5 12-12-2004 10:34 AM
setting ROX file/app association to launch a Wine.exe Onestep Linux - Newbie 7 07-18-2004 06:23 PM
GNOME File Association! HELP!! RVK Linux - Newbie 1 03-19-2003 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration