You are not logged in.

#1 2015-10-07 09:48:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,721
Website

mimetypes and file associations

A couple of devs reported that, when working as root, plain text files were being opened by LibreOffice Writer instead of bl-text-editor.

This was tracked down to the lack of a system-wide mimeapps.list file (one is already shipped for users in ~/.local/share/applications), so another copy is going to be put in /usr/share/applications which I think will fix the issue.

Reading the freedesktop standards it turns out that ~/.local/share/applications is deprecated as a location for users' mimeapps.list, which should now go in ~/.config. Unfortunately, some apps don't look in the new place - eg xdg-mime which is used by xdg-open, so we still need a file in the old place. Thunar, OTOH will write any user decisions about "open with" in the new location.

So, first question, I'm thinking of installing a symlink in ~/.local/share/applications/mimeapps.list pointing to ~/.config/mimeapps.list, hoping to keep everyone happy. Can anyone see any problems with that?

Second question, here is the mimeapps.list currently shipped by BL:

[Default Applications]
image/gif=bl-image-viewer.desktop
image/jpeg=bl-image-viewer.desktop
image/png=bl-image-viewer.desktop
image/svg+xml=bl-image-viewer.desktop
text/plain=bl-text-editor.desktop
text/html=bl-text-editor.desktop
application/xml=bl-text-editor.desktop
application/javascript=bl-text-editor.desktop
x-directory/normal=bl-file-manager.desktop
x-directory/gnome-default-handler=bl-file-manager.desktop
inode/directory=bl-file-manager.desktop
audio/mpeg=bl-mediaplayer.desktop
audio/mp4=bl-mediaplayer.desktop
audio/x-wav=bl-mediaplayer.desktop
audio/aac=bl-mediaplayer.desktop
video/webm=bl-mediaplayer.desktop
video/x-ms-asf=bl-mediaplayer.desktop
video/x-theora+ogg=bl-mediaplayer.desktop

ATM it's all about the bunsen-default apps. Personally, I've often run into problems with file-roller taking over as the default for .deb files, when I want gdebi, so I'd like to add

application/x-deb=gdebi.desktop

Are there any other opinions on entries that should be there, or objections to gdebi being default for .debs?

(Of course users can change any of this, we're just talking about the OOTB setup.)


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#2 2015-10-07 14:35:20

hhh
Meep!
Registered: 2015-09-17
Posts: 8,315
Website

Re: mimetypes and file associations

This all seems fine to me.

Offline

#3 2015-10-07 14:38:39

damo
....moderator....
Registered: 2015-08-20
Posts: 5,057

Re: mimetypes and file associations

Thanks for your work @johnraff - it looks fine to me.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2015-10-07 14:55:38

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,528

Re: mimetypes and file associations

Looks good to me John.  I prefer gdebi as well.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

Board footer

Powered by FluxBB