View Full Version : [ubuntu] Preferred Applicaions Doesn't Work(?)

May 5th, 2008, 01:08 PM

I'm trying to configure Ubuntu Hardy to use VLC has my default DVD player. Here is the process I'm following in an attempt to get this working:

1. Going to the relevant tool for the job:


2. Editing the relevant option(s):


Now am I getting this wrong here? I don't know. When I insert a DVD it simply opens with Totem as if I'd never changed this option. I've tried this option with and without the '%m', with no change in performance. I've also tried checking the 'Run in Terminal' option.


May 5th, 2008, 01:13 PM
It appears it has something to do with nautilus, not Ubuntu/GNOME. *investigates*

May 5th, 2008, 04:05 PM
I couldn't find a resolution to my problem. Instead, I changed the way in which nautilus deals with an inserted DVD by starting nautilus and going to Edit -> Preferences -> [Media Tab]:


And changing 'DVD Video' to 'Do Nothing'. When I insert a DVD I merely start VLC my self and do as I please at that stage. I don't always insert a DVD to watch it ;)

I hope this helps someone else out there in some manner.

May 6th, 2008, 06:44 AM
Here is a similar thread:
and a promising solution candidate from there:

If it doesn't work for you, you may go messy with some other techniques presented in:

May 6th, 2008, 10:06 PM
Don't ask me why this is; I didn't write it, I don't agree with it, etc. You'll need to pester David Zeuthen as to why he made this decision (http://www.mail-archive.com/nautilus-list@gnome.org/msg04224.html).

Anyways, the magic is in setting an association for the X-Content mime-type of the media:
in my $XDG_DATA_HOME/applications/mimeapps.list:
[Added Associations]

Tada, VLC is now associated, and will appear in the menu (so you can select it in the dialog above). The upstream solution would be for applications, such as VLC and Totem-Xine, to add "x-content/video-dvd" to their "MimeType=" key in their .desktop files. The same will work for cds, bluray disks, etc.

June 9th, 2008, 02:46 AM
Awalton says:

Anyways, the magic is in setting an association for the X-Content mime-type of the media:
in my $XDG_DATA_HOME/applications/mimeapps.list:
[Added Associations]

Where in my system is "$XDG_DATA_HOME/applications/mimeapps.list" located?

I can't find it anywhere.

June 9th, 2008, 07:40 AM
Moved to Multimedia & Video.

June 9th, 2008, 02:13 PM
Where in my system is "$XDG_DATA_HOME/applications/mimeapps.list" located?

edit: that method can be a little tricky especially with anything other than vlc
For just vlc and dvds see here
After that you can go there (mimeapps.list) if you want, append the line vlc is on to add additional players - you need to find right launch command for them (any add. players) to work properly in autoplay (if there is one)

June 10th, 2008, 12:07 AM
Got it, Thank you.