LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-29-2011, 06:56 PM   #1
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Rep: Reputation: Disabled
Wink remove an application and its file associations


Ubuntu 10.04

I installed real player from real media on my machine and it has taken over all my media files so that they launch Real Player when I double-click on them. I tried to right-click and choose "Open With Other Application" and chose "Movie Player" There is a check-box at the bottom which says "Remember this Application for ..." It's checked by default so I leave it that way thinking that from now on, when I double-click on a movie file it will bring up "Movie Player". Such is not the case, however. If I double-click on even the same file I launch Real Player.

I just want to get rid of Real Player AND its file associations for good.

an someone please help me?
Thanks,
Paul
 
Old 11-29-2011, 08:13 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,781

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
I have found that often, to make the "remember file association" checkbox to work, I have to actually choose the "choose a custom application" (or whatever--the wording varies from environment to environment), navigate to /usr/bin, and choose the program from there.

Just my experience.
 
Old 11-30-2011, 01:56 AM   #3
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
frank, I did as you suggested, but it didn't work. Same o same o! I found the realplayer file(I think) in the same directory you mentioned. I tried just deleting it, but apparently that option is disabled. Does Ubuntu have a way to uninstall applications? I tried both synaptic Package manager and Ubuntu Software Cener to try to remove it, but I don't guess I used either one to install it in the first place, so they won't remove it.
 
Old 11-30-2011, 07:08 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,781

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
That is odd--and annoying.

I just looked at my RealPlayer and could find nothing in preferences for setting or unsetting file associations. It's been a while since I installed it, but I think it displayed a dialog on first run with every conceivable file extension checked, and I unchecked everything but real media files. (I have it for only one purpose: listening to old time radio shows from one website which is all in real formats).

I installed it from a *.deb with Synaptic. Using the synaptic search for "realplay" (the name of the executable) turns it up in Synaptic for removal.

If you installed realplay from sources and still have the build folder, running "make uninstall" as root from within the build folder should remove it.

Also, sudo rm /usr/bin/realplay should do remove the executable, but might leave behind a residue.

Last edited by frankbell; 11-30-2011 at 07:13 PM.
 
Old 11-30-2011, 08:43 PM   #5
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
well i deleted the whole folder and now when i double-click absolutely nothing happens! I'm sorry I ever installed Real-Player, t offers no advantages over Movie Player and I sure don't recommend it!
 
Old 12-17-2011, 08:26 PM   #6
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
I have the same version of Ubuntu. You don't uninstall completely by deleting files. How did you install this Realplayer?

If your problem is in viewing video and audio from internet web pages, those files are associated with plugins and are changed in the browser options. If a plugin will not be removed, you can at least disable it in the browser. The rest of this has nothing to do with browser plugins.

There is an explanation of where and how file associations are stored in Ubuntu here:

http://askubuntu.com/questions/16580...iations-stored

Also see this as a possible fix:

http://www.liberiangeek.net/2010/05/...04-lucid-lynx/

If you use the Ubuntu Tweak (which I haven't tried), you probably won't need the directions below. It might be the best thing to do.

The thing that might be wrong with your file associations is that Realplayer has made itself the default for all your video file types and maybe some audio file types. The only good way to uninstall an application is through the synaptic package manager, but it only uninstalls .deb packages. Sometimes a file association problem as you describe can be fixed by manually editing a "defaults.list" file in those cases to change that.

Enter these commands in the Terminal program and leave the Terminal window open until you are finished editing the defaults.list file:

Quote:
cd /etc/gnome/
Now make a copy of the defaults .list file and rename the copy to save it if you need to restore it later:

Quote:
cp -i defaults.list defaults.list.old
Open the defaults.list for editing:

Quote:
gksudo gedit defaults.list
Then enter your password at the prompt. This opens the list of default file-type associations.

In the list of default file-type associations for video or audio find all references to realplayer.desktop or helix.desktop to the right of the "=" and change them to mplayer.desktop, or vlc.desktop, or whatever you need. I use smplayer, but my "defaults.list" says "totem.desktop".

If you set most of your video types to "totem.desktop", you can hopefully sucessfully choose mplayer later by right-click choosing an application without realplayer taking over again. If you don't see a problem here, make no changes. When you are through, save the file if it was changed.

Here is a copy of only the relevant parts of my defaults.list file for your reference. The only thing I changed since install is the vlc player for DVD's. Take note of the entries for realaudio and realvideo also:

Quote:
audio/mpeg=totem.desktop
audio/mpegurl=totem.desktop
audio/vnd.rn-realaudio=totem.desktop
audio/x-flac=totem.desktop
audio/x-m4a=totem.desktop
audio/x-mp3=totem.desktop
audio/x-mpeg=totem.desktop
audio/x-mpegurl=totem.desktop
audio/x-ms-asf=totem.desktop
audio/x-ms-asx=totem.desktop
audio/x-ms-wax=totem.desktop
audio/x-pn-aiff=totem.desktop
audio/x-pn-au=totem.desktop
audio/x-pn-realaudio-plugin=totem.desktop
audio/x-pn-realaudio=totem.desktop
audio/x-pn-wav=totem.desktop
audio/x-pn-windows-acm=totem.desktop
audio/x-real-audio=totem.desktop
audio/x-scpls=totem.desktop
audio/x-wav=totem.desktop

video/dv=totem.desktop
video/mp4=totem.desktop
video/mpeg=totem.desktop
video/msvideo=totem.desktop
video/quicktime=totem.desktop
video/vnd.rn-realvideo=totem.desktop
video/x-anim=totem.desktop
video/x-avi=totem.desktop
video/x-flc=totem.desktop
video/x-fli=totem.desktop
video/x-mpeg=totem.desktop
video/x-ms-asf=totem.desktop
video/x-msvideo=totem.desktop
video/x-ms-wmv=totem.desktop
video/x-nsv=totem.desktop
 
Old 12-17-2011, 09:16 PM   #7
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
I just now thought of another answer that might be better than the one I posted earlier. Open the file browser, Nautilus, and find a file of the file-type that you want to change the application it opens with. Say for example an avi file. Right-click it and choose "properties". Then choose the "open with" tab. choose the application you want to use for all avi files. Then do the same for one wmv file, etc. Once is enough for each type. You can also remove applications from being listed here.

Last edited by CrashDummy; 12-17-2011 at 09:17 PM. Reason: misspelling
 
Old 12-17-2011, 09:20 PM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,235

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You are going to keep having this type of trouble as long as you insist on installing things from 3rd party venders.

Always check for the same program in your package manger as it may well be in the repo. If not look for something that is similar.

Only when that proves to be inferior should you start looking elsewhere.

It is not that it can't or shouldn't be done. It leads to a lot of problems for folks that do not understand the file system and package management in Linux.

You can save yourself a lot of grief and learn a lot about alternatives available while gaining experience and knowledge of your system.
 
Old 12-18-2011, 02:24 AM   #9
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
Well it seems the only damage I've done is to mp4 files. On these, which I use rarely, now I have to right click and choose open with movie player. A small price to pay for an education. Thanks for all your suggestions. Since I've erased the files the only recourse would be to edit that default.list file. Trying(and not succeeding) to alter the open with... was led to this post in the first place. Oh well, it's just not worth the bother.
Paul
 
Old 12-18-2011, 07:24 AM   #10
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by p3aul View Post
Well it seems the only damage I've done is to mp4 files. On these, which I use rarely, now I have to right click and choose open with movie player. A small price to pay for an education. Thanks for all your suggestions. Since I've erased the files the only recourse would be to edit that default.list file. Trying(and not succeeding) to alter the open with... was led to this post in the first place. Oh well, it's just not worth the bother.
Paul
I don't think you are understanding me right on my last post and suggestion. Right clicking on the file and choosing "open with" is not at all the same as right clicking on the file in Nautilus and choosing "Properties". Then after choosing properties in Nautilus you change the file association by changing it in the "properties" "open with" window. It's totally different from your method. I've had this work 100% as long as I chose the right application and the codecs were installed, while your way is sometimes temporary and sometimes fails. This is different from frankbell's way and the way you did it. If you temporarily do it your way and then look in the properties/open_with window, you will see that your choice by your method caused no change in this properties window. But changing something in this window will change your list in your old "open-with" method.

If you use the defaults.list method, set mp4 video to mplayer.desktop, but you should also do the change in properties/open_with. What's in the defaults can be overridden, as in: I have totem as default but everything opens in smplayer for me because I permanently chose it in properties/open_with. That overrides the defaults.list. It would also be a small help to you, and a learning opportunity, to also remove real player from the applications in the list of possibles in that properties/open_with window. By all means choose mplayer in that window.
 
  


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
File associations MTK358 Linux - Newbie 3 05-12-2010 09:44 AM
File associations in Gnome Commander vs. associations in Nautilus taylorkh Linux - Software 0 01-01-2010 05:18 PM
File associations dive Slackware 2 02-04-2006 05:53 AM
File Associations Altec_ Linux - Software 3 02-08-2005 01:43 PM
File associations Bruce Confused Linux - Newbie 5 06-05-2003 04:32 PM


All times are GMT -5. The time now is 03:40 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