SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-12-16 19:26:32

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Default app shenanigans (Ubu)

Heya folks!

I've got an issue with my Ubu minimal + OB install and as they are wont to do, the Ubu support forums are as much use as a one legged cat trying to bury a turd on a frozen lake, so I'll ask my friendly #! fellows and fellets:

Ubuntu 14.10 minimal install with Openbox

If I try to open something that should utilize the file manager, for instance from the downloads "view containing directory" in Firefox or from the application menu in Geany, it opens up Easytag ID3 editor. Trying to open something requiring a gallery view opens up my text editor. My default apps seem to be all wonky.

exo-preferred-applications shows the proper application (Thunar) for the file manager.

update-alternatives shows "no alternatives" for my applications.

Googling my issue, I find quite a few threads with my problem but they are 5 years old and the files mentioned either no longer exist or don't contain the data referenced in the thread.

This thread from 2011 states to delete the easytag reference in mimeapps.list, but there is no mention of it in my copy of the file.
In fact, the file is pretty sparse:

[Default Applications]
x-scheme-handler/http=userapp-Firefox-7NO0NX.desktop
x-scheme-handler/https=userapp-Firefox-7NO0NX.desktop
x-scheme-handler/ftp=userapp-Firefox-7NO0NX.desktop
x-scheme-handler/chrome=userapp-Firefox-7NO0NX.desktop
text/html=userapp-Firefox-7NO0NX.desktop
application/x-extension-htm=userapp-Firefox-7NO0NX.desktop
application/x-extension-html=userapp-Firefox-7NO0NX.desktop
application/x-extension-shtml=userapp-Firefox-7NO0NX.desktop
application/xhtml+xml=userapp-Firefox-7NO0NX.desktop
application/x-extension-xhtml=userapp-Firefox-7NO0NX.desktop
application/x-extension-xht=userapp-Firefox-7NO0NX.desktop

[Added Associations]
x-scheme-handler/http=userapp-Firefox-7NO0NX.desktop;
x-scheme-handler/https=userapp-Firefox-7NO0NX.desktop;
x-scheme-handler/ftp=userapp-Firefox-7NO0NX.desktop;
x-scheme-handler/chrome=userapp-Firefox-7NO0NX.desktop;
text/html=userapp-Firefox-7NO0NX.desktop;
application/x-extension-htm=userapp-Firefox-7NO0NX.desktop;
application/x-extension-html=userapp-Firefox-7NO0NX.desktop;
application/x-extension-shtml=userapp-Firefox-7NO0NX.desktop;
application/xhtml+xml=userapp-Firefox-7NO0NX.desktop;
application/x-extension-xhtml=userapp-Firefox-7NO0NX.desktop;
application/x-extension-xht=userapp-Firefox-7NO0NX.desktop;
inode/directory=exo-file-manager.desktop
x-scheme-handler/trash=exo-file-manager.desktop

I did try removing the two bottom entries, but the problem persisted.

I'm not sure what else I can do to get Ubuntu to use the logical applications. Any insight would be greatly appreciated!

Offline

Help fund CrunchBang, donate to the project!

#2 2014-12-16 20:09:26

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Default app shenanigans (Ubu)

a one legged cat trying to bury a turd on a frozen lake

lol

Try:

xdg-mime default thunar.desktop inode/directory

If that doesn't work move the /usr/share/applications/easytag.desktop (or whatever it's called) to ~/.local/share/applications and remove the inode/directory (and similar entries) from MimeTypes=, then run

update-desktop-database

Also check there's a "filemanager" dbus service in /usr/lib/dbus-1/services (path may differ), if so remove contents and chattr +i it.

You could write a case study on default apps in linux, my "round off" posts have some detail on it.

Last edited by Alad (2014-12-16 20:11:45)

Offline

#3 2014-12-17 01:19:31

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Default app shenanigans (Ubu)

Alad wrote:

If that doesn't work move the /usr/share/applications/easytag.desktop (or whatever it's called) to ~/.local/share/applications and remove the inode/directory (and similar entries) from MimeTypes=, then run

update-desktop-database

This seems to have resolved the issue.  Can I ask what moving the file did?  Was it's presence in /usr/share/applications causing the issue or the fact that it wasn't in my ./local/share/applications that caused the issue?

I can't thank you enough for your help.  I had read a bunch of threads concerning this issue and not once do I recall mention of moving a file and updating the database.  I wasn't even aware of that command, actually smile

Offline

#4 2014-12-17 17:24:08

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Default app shenanigans (Ubu)

Well according to XDG spec, files have the following order (give-or-take)

~/.local -> /etc (?) -> /usr/local -> /usr

The system version had inode/... registered to it; if you remove that in the local copy (which is now read first), and update the "desktop database" (because it's a database of desktop files I presume) that registration is gone. So inode/... is opened (through xxx-open) with the next application in-line. xdg-mime has a similar goal, but with varying results it seems.

I hope that makes any sense. It does not to me.  8o

Last edited by Alad (2014-12-17 17:27:18)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo