Bug 403739 - Support native KDE file open dialogs in Firefox
Summary: Support native KDE file open dialogs in Firefox
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-29 17:45 UTC by Andrew Crouthamel
Modified: 2020-11-12 14:03 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Crouthamel 2019-01-29 17:45:03 UTC
SUMMARY
It would be nice if Neon supported out-of-the-box, the new Firefox 64 native KDE file open dialogs as Kubuntu is working on right now: https://phabricator.kde.org/T10189
Comment 1 Nate Graham 2019-02-05 22:03:18 UTC
Being considered in https://phabricator.kde.org/D18726
Comment 2 Gauthier 2020-10-24 20:35:45 UTC
While this feature now works when opening firefox on Neon using the desktop file, it doesn't work when firefox loads automatically on a session restore.

How to reproduce:
Open any web page on firefox and check that KDE file dialog is working.
Reboot the computer with session restore enabled
Check the file dialog in the firefox window that opening automatically when the session starts

Actual behaviour:
GTK file dialog appear

Expected bahviour
Native KDE file dialog

Following this doesn't work: https://userbase.kde.org/Browser_Configuration/Firefox_Dialog_Integration
Comment 3 Gauthier 2020-10-24 20:41:12 UTC
I should also say that the same is true for thunderbird
Comment 4 Harald Sitter 2020-10-30 12:00:07 UTC
Not sure we can do much about that. firefox only accepts an internal setting widget.use-xdg-desktop-portal (which would actually be preferable to the env var) when set by the user, so we can't really set it globally. And at the same time the environment injection doesn't work selectively because session restore will call the binary it restores (i.e. the firefox without env vars)
Comment 5 Gauthier 2020-10-30 12:36:39 UTC
(In reply to Harald Sitter from comment #4)
> Not sure we can do much about that. firefox only accepts an internal setting
> widget.use-xdg-desktop-portal (which would actually be preferable to the env
> var) when set by the user, so we can't really set it globally. And at the
> same time the environment injection doesn't work selectively because session
> restore will call the binary it restores (i.e. the firefox without env vars)

I see, thanks for the answer! At least you know this is happening in case something can be done about it in the future as it makes the feature less useful if it breaks after a reboot.
Comment 6 Gauthier 2020-11-12 14:03:09 UTC
Just wondering, isn't it possible to specifically block firefox and thunderbird from the plasma session restore, and instead detect if they it was opened on session logout and in which case auto-start them with the env variable?
Just a suggestion