Hi
Is there any way to make Firefox and other GTK (I think) applications obey file associations set in a KDE environment? I have only KDE on my machine and PDF files are set to open in Okular. But Firefox opens them (when I select a file from its downloads list) using Gimp. In the past, I vaguely remember seeing similar behaviour with some other GTK/Gnome applications. Recently, I have started using a program called Zotero that also has the same problem.
xdg-open foo.pdf works correctly and opens Okular.
I am not able to find a solution online.
Any help?
Thanks,
Syam
On Tue, 2019-06-18 at 16:20 +0530, Syam Krishnan wrote:
Hi
Is there any way to make Firefox and other GTK (I think) applications obey file associations set in a KDE environment? I have only KDE on my machine and PDF files are set to open in Okular. But Firefox opens them (when I select a file from its downloads list) using Gimp. In the past,
you may try `xdg-mime query default` and `gio mime` [1] but Firefox may have his own definitions on about:preferences -> Applications , search there (search file types and applications) by pdf and in actions check the applications details
[1] xdg-mime query default x-scheme-handler/magnet gio mime x-scheme-handler/magnet
I vaguely remember seeing similar behaviour with some other GTK/Gnome applications. Recently, I have started using a program called Zotero that also has the same problem.
xdg-open foo.pdf works correctly and opens Okular.
I am not able to find a solution online.
Any help?
Thanks,
Syam _______________________________________________ kde mailing list -- kde@lists.fedoraproject.org To unsubscribe send an email to kde-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kde@lists.fedoraproject.org
Is there any way to make Firefox and other GTK (I think) applications obey file associations set in a KDE environment? I have only KDE on my machine and PDF files are set to open in Okular. But Firefox opens them (when I select a file from its downloads list) using Gimp.
I have a similar issue with image files being always opened by Gimp instead of Gwenview even if I specified that I want them to be opened by Gwenview from Dolphin. When this happens, in Dolphin I do: open with/other application/I search for Gwenview and tick remember association. I wonder if Gimp does not change the user's preferences when a new version is installed.
F
Syam Krishnan wrote:
Hi
Is there any way to make Firefox and other GTK (I think) applications obey file associations set in a KDE environment? I have only KDE on my machine and PDF files are set to open in Okular. But Firefox opens them (when I select a file from its downloads list) using Gimp. In the past, I vaguely remember seeing similar behaviour with some other GTK/Gnome applications. Recently, I have started using a program called Zotero that also has the same problem.
xdg-open foo.pdf works correctly and opens Okular.
I am not able to find a solution online.
this should generally work, but the answer is "it depends".
In this case, I think it's a bug in kde-settings which owns /usr/share/applications/kde-mimeapps.list It currently contains application/pdf=kde4-okularApplication_pdf.desktop; which is no longer correct, it should say application/pdf=okularApplication_pdf.desktop
Mind filing a bug?
-- Rex
On 27/06/19 3:23 AM, Rex Dieter wrote:
this should generally work, but the answer is "it depends".
In this case, I think it's a bug in kde-settings which owns /usr/share/applications/kde-mimeapps.list It currently contains application/pdf=kde4-okularApplication_pdf.desktop; which is no longer correct, it should say application/pdf=okularApplication_pdf.desktop
Mind filing a bug?
Yes. That fixes the problem. Thank you.
But I see that every entry in that file has a "kde4-" prefix for the desktop files. Any idea why?
Should I file a bug report for this pdf entry alone or is everything else supposed to be fixed too?
Thanks,
Syam
Syam Krishnan wrote:
On 27/06/19 3:23 AM, Rex Dieter wrote:
this should generally work, but the answer is "it depends".
In this case, I think it's a bug in kde-settings which owns /usr/share/applications/kde-mimeapps.list It currently contains application/pdf=kde4-okularApplication_pdf.desktop; which is no longer correct, it should say application/pdf=okularApplication_pdf.desktop
Mind filing a bug?
Yes. That fixes the problem. Thank you.
But I see that every entry in that file has a "kde4-" prefix for the desktop files. Any idea why?
Should I file a bug report for this pdf entry alone or is everything else supposed to be fixed too?
Likely more fixes are required, yes. I believe all default apps in plasma/kde-spin should not be using kde4-based versions anymore
-- Rex
On 27/06/19 3:23 AM, Rex Dieter wrote:
this should generally work, but the answer is "it depends".
In this case, I think it's a bug in kde-settings which owns /usr/share/applications/kde-mimeapps.list It currently contains application/pdf=kde4-okularApplication_pdf.desktop; which is no longer correct, it should say application/pdf=okularApplication_pdf.desktop
Mind filing a bug?
I have filed a bug at kde.org: https://bugs.kde.org/show_bug.cgi?id=409359 against systemsettings/kcm_filetypes.
I hope that's where it belongs (and not Fedora bugzilla).
Thanks,
Syam
Syam Krishnan wrote:
I have filed a bug at kde.org: https://bugs.kde.org/show_bug.cgi?id=409359 against systemsettings/kcm_filetypes.
I hope that's where it belongs (and not Fedora bugzilla).
Unfortunately not: kde-settings is a Fedora distro-specific package providing distro-specific defaults. It does not come from upstream KDE. So please file this at https://bugzilla.redhat.com/ . Thanks in advance. I closed the upstream bug report as RESOLVED DOWNSTREAM.
Kevin Kofler
Kevin Kofler wrote:
Syam Krishnan wrote:
I have filed a bug at kde.org: https://bugs.kde.org/show_bug.cgi?id=409359 against systemsettings/kcm_filetypes.
I hope that's where it belongs (and not Fedora bugzilla).
Unfortunately not: kde-settings is a Fedora distro-specific package providing distro-specific defaults. It does not come from upstream KDE. So please file this at https://bugzilla.redhat.com/ . Thanks in advance. I closed the upstream bug report as RESOLVED DOWNSTREAM.
I concur, and my apologies for not being clear where to file the bug (I'll be more mindful of that next time).
-- Rex
On 01/07/19 7:44 PM, Rex Dieter wrote:
Kevin Kofler wrote:
Syam Krishnan wrote:
I have filed a bug at kde.org: https://bugs.kde.org/show_bug.cgi?id=409359 against systemsettings/kcm_filetypes.
I hope that's where it belongs (and not Fedora bugzilla).
Unfortunately not: kde-settings is a Fedora distro-specific package providing distro-specific defaults. It does not come from upstream KDE. So please file this at https://bugzilla.redhat.com/ . Thanks in advance. I closed the upstream bug report as RESOLVED DOWNSTREAM.
I concur, and my apologies for not being clear where to file the bug (I'll be more mindful of that next time).
Thank you Mr. Kofler and Rex. I had a feeling if this was something Fedora specific and that's why I asked. Should've asked before I filed it :-)
Anyway, I have filed a bug on Fedora bug tracker against kde-settings: https://bugzilla.redhat.com/show_bug.cgi?id=1726152
Thanks and regards,
Syam