[opensuse-gnome] default app for mimetypes

How can I influence the default app for a given mimetype? On my system gimp is used for pdf documents, instead of evince. There seems to be nothing for such task in control center. Does digikam/fate and the libs they pull in influence that by any chance?! Olaf -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Hi. On Mi, 2015-08-12 at 15:45 +0200, Olaf Hering wrote:
How can I influence the default app for a given mimetype? Hm, let me refer you to http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.html
Please forgive me the rather rude "RTFM" attitude, but I've tried citing that web page with my MUA (Evolution) and the result looks ugly, so I won't paste the web site's content in this mail. Does the reference to the web page help? Cheers, Tobi -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

On Wed, 2015-08-12 at 15:55 +0200, Tobias Mueller wrote:
On Mi, 2015-08-12 at 15:45 +0200, Olaf Hering wrote:
How can I influence the default app for a given mimetype? Hm, let me refer you to http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.ht ml
"Which Application?" <http://www.whitemiceconsulting.com/node/27> -- Adam Tauno Williams <mailto:awilliam@whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 16:13 schrieb Adam Tauno Williams:
"Which Application?" <http://www.whitemiceconsulting.com/node/27>
$ env -i gvfs-mime --query application/pdf Default application for 'application/pdf': gimp.desktop Registered applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop Recommended applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop Thunderbird does not offer anything but gimp in its "open that attachment" dialog, just "other ...". Not sure why it is there anyway, and even listed as first item. Olaf -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 16:37 schrieb Olaf Hering:
Am 12.08.2015 um 16:13 schrieb Adam Tauno Williams:
"Which Application?" <http://www.whitemiceconsulting.com/node/27>
$ env -i gvfs-mime --query application/pdf Default application for 'application/pdf': gimp.desktop Registered applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop Recommended applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop
Thunderbird does not offer anything but gimp in its "open that attachment" dialog, just "other ...".
Not sure why it is there anyway, and even listed as first item.
application/pdf is listed as supported mime type in Gimp's desktop file. That's the _why_ it's there. If you do not run Thunderbird under KDE the "Gnome" mode is used. The Gnome defaults are configured via /etc/gnome_defaults.conf For me on 13.2 it actually comes to the conclusion to offer evince as the default PDF viewer though. (If evince is not installed it's gimp though). Not sure why it uses gimp as preferred for you but probably you find the answer in gnome_defaults.conf? Wolfgang -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

On Wed, 2015-08-12 at 16:53 +0200, Wolfgang Rosenauer wrote:
Am 12.08.2015 um 16:37 schrieb Olaf Hering:
Am 12.08.2015 um 16:13 schrieb Adam Tauno Williams:
"Which Application?" <http://www.whitemiceconsulting.com/node/27> $ env -i gvfs-mime --query application/pdf Default application for 'application/pdf': gimp.desktop Registered applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop Recommended applications: gimp.desktop evince-previewer.desktop evince.desktop inkscape.desktop Thunderbird does not offer anything but gimp in its "open that attachment" dialog, just "other ...". Not sure why it is there anyway, and even listed as first item.plication/pdf is listed as supported mime type in Gimp's desktop file. That's the _why_ it's there. If you do not run Thunderbird under KDE the "Gnome" mode is used.The Gnome defaults are configured via /etc/gnome_defaults.confFor me on 13.2 it actually comes to the conclusion to offer evince as the default PDF viewer though. (If evince is not installed it's gimp though).Not sure why it uses gimp as preferred for you but probably you find the answer in gnome_defaults.conf?
Does using gvfs-mime --set application/pdf ... not work? I ***assume*** TB follows the XDG standard if it is not using GNOME libraries [which add a bit on top]. According to XDG the default application should be in $XDG_DATA_HOME/applications/mimeapps.list -- Adam Tauno Williams <mailto:awilliam@whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 17:14 schrieb Adam Tauno Williams:
Does using gvfs-mime --set application/pdf ... not work?
It does. But now there are questions: why is gimp the first choice? why is there only one choice, at least in FF and TB? Olaf -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

On Wed, 2015-08-12 at 17:27 +0200, Olaf Hering wrote:
Am 12.08.2015 um 17:14 schrieb Adam Tauno Williams:
Does using gvfs-mime --set application/pdf ... not work? It does. But now there are questions: why is gimp the first choice?
Because. :) If no application is set as preferred I *believe* you just get 'the first' [by which I mean an arbitrary entry from the list of available applications].
why is there only one choice, at least in FF and TB?
Good question - I have no idea. Something is indeed odd about how Mozilla selects applications, I see inconsistencies myself when downloading various file types. I have no explanation. -- Adam Tauno Williams <mailto:awilliam@whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 17:27 schrieb Olaf Hering:
Am 12.08.2015 um 17:14 schrieb Adam Tauno Williams:
Does using gvfs-mime --set application/pdf ... not work?
It does.
But now there are questions:
why is gimp the first choice? why is there only one choice, at least in FF and TB?
Mozilla code uses what it gets from Gio. I would need to lookup the actual library call but for sure this only reports back one application. I'm not saying there is no other possibility in the implementation but it's how it's implemented currently. Should be this one: https://mxr.mozilla.org/mozilla-release/source/uriloader/exthandler/unix/nsG... Wolfgang -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 18:43 schrieb Wolfgang Rosenauer:
Should be this one: https://mxr.mozilla.org/mozilla-release/source/uriloader/exthandler/unix/nsG...
more that one: https://mxr.mozilla.org/mozilla-release/source/toolkit/system/gnome/nsGIOSer... -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 16:53 schrieb Wolfgang Rosenauer:
Not sure why it uses gimp as preferred for you but probably you find the answer in gnome_defaults.conf?
This file is unchanged, I see evince is listed there, but not gimp. olaf@probook:~ $ rpm -qf /etc/gnome_defaults.conf gio-branding-openSUSE-13.2-4.2.noarch olaf@probook:~ $ rpm -Vf /etc/gnome_defaults.conf olaf@probook:~ $ Olaf -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Le mercredi 12 août 2015 à 17:15 +0200, Olaf Hering a écrit :
Am 12.08.2015 um 16:53 schrieb Wolfgang Rosenauer:
Not sure why it uses gimp as preferred for you but probably you find the answer in gnome_defaults.conf?
This file is unchanged, I see evince is listed there, but not gimp.
olaf@probook:~ $ rpm -qf /etc/gnome_defaults.conf gio-branding-openSUSE-13.2-4.2.noarch olaf@probook:~ $ rpm -Vf /etc/gnome_defaults.conf olaf@probook:~ $
Does xdg-open path_to_a_pdf_file properly open evince ? If yes, the bug is in TB which is not following the spec properly. -- Frederic Crozat Enterprise Desktop Release Manager SUSE -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Am 12.08.2015 um 17:54 schrieb Frederic Crozat:
Does xdg-open path_to_a_pdf_file properly open evince ?
Oh, the app from my favorite proof how desktop integration failed for us. But I digress.. No, it also opens gimp. Even "Files" (or whatever the underlying app is) uses gimp. I will open a bug to track this. Olaf -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org

Le mercredi 12 août 2015 à 18:02 +0200, Olaf Hering a écrit :
Am 12.08.2015 um 17:54 schrieb Frederic Crozat:
Does xdg-open path_to_a_pdf_file properly open evince ?
Oh, the app from my favorite proof how desktop integration failed for us. But I digress..
No, it also opens gimp. Even "Files" (or whatever the underlying app is) uses gimp.
I will open a bug to track this.
Check ~/.local/share/applications/mimeapps.list, it might override the system settings. The default application can be changed from nautilus, in the properties for a PDF file. -- Frederic Crozat Enterprise Desktop Release Manager SUSE -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
participants (5)
-
Adam Tauno Williams
-
Frederic Crozat
-
Olaf Hering
-
Tobias Mueller
-
Wolfgang Rosenauer