You are not logged in.

#1 2025-04-05 12:05:18

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

[SOLVED] Firefox is not using dolphin to open download folder

Hi to all,
today I noticed that when  I click on the folder icon in forefox near a downloaded file to open the folder where it has been saved, firefox open the GNOMe file instaed of dolphin.
I'm not using this everyday, but I'm sure that it was working (arch is installed with plasma as DE on this pc since 2 years).
Can you help me understand what is happening, please?
The mimetypes are correct and the wiki page is not solving this.

Last edited by Xwang (2025-04-05 22:24:48)

Offline

#2 2025-04-05 12:34:46

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,275

Re: [SOLVED] Firefox is not using dolphin to open download folder

What's the output of `xdg-mime query default inode/directory`

Offline

#3 2025-04-05 12:34:52

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

I've just discovered that if a dolphin instance is is already opened, than a new instance of dolphin is used or the same instance is activated/focused if it was already in the same folder.
Otherwise, if no dolphin folder is in use, GNOME nautilis is used instead !!! That seems a bug (that maybe I've never spotted because I often have dolphin open).
Does the same happens to you?

Offline

#4 2025-04-05 12:35:43

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

arojas wrote:

What's the output of `xdg-mime query default inode/directory`

org.kde.dolphin.desktop

Offline

#5 2025-04-05 15:31:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [SOLVED] Firefox is not using dolphin to open download folder

xdg-desktop-portal blessing?
https://wiki.archlinux.org/title/XDG_De … figuration and check the journal, it usually shows up there in some capacity.

Plasma/X11 or Plasma/Wayland?
In case of Wayland: is FF a native wayland client or does it use xwayland?
https://wiki.archlinux.org/title/Waylan … plications

Offline

#6 2025-04-05 19:22:10

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

seth wrote:

xdg-desktop-portal blessing?
https://wiki.archlinux.org/title/XDG_De … figuration and check the journal, it usually shows up there in some capacity.

Plasma/X11 or Plasma/Wayland?
In case of Wayland: is FF a native wayland client or does it use xwayland?
https://wiki.archlinux.org/title/Waylan … plications

plasma/wayland, XDG_CURRENT_DESKTOP returns kde and firefox is running under wayland.


When dolphin is not opened these lines appear in the journal:

Apr 05 21:17:41 D9330 systemd[1443]: Started dbus-:1.2-org.freedesktop.FileManager1@2.service.
Apr 05 21:17:41 D9330 nautilus[6270]: Connecting to org.freedesktop.Tracker3.Miner.Files
Apr 05 21:17:41 D9330 nautilus[6270]: Failed to initialize display server connection: Impossibile invocare il metodo; il proxy è per un nome well-known org.gnome.Mutter.ServiceChannel senza un proprietario e il proxy è stato costruito con il flag G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START
Apr 05 21:17:42 D9330 nautilus[6270]: Unknown key gtk-modules in /home/andreak/.config/gtk-4.0/settings.ini
Apr 05 21:17:42 D9330 kwin_wayland[1510]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x63bdf2748390)
Apr 05 21:17:42 D9330 nautilus[6270]: Unable to get contents of the bookmarks file: Errore nell'aprire il file /home/andreak/.config/gtk-3.0/bookmarks: File o directory non esistente

Offline

#7 2025-04-05 20:31:24

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [SOLVED] Firefox is not using dolphin to open download folder

So nautilus gets dbus-activated (somehow)
You could mask org.freedesktop.FileManager1.service, https://wiki.archlinux.org/title/D-Bus# … us_service

If you want to know why, the journal before that segment my hold some hint.
Is FF from the repos or a flatpak?

Offline

#8 2025-04-05 20:50:17

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

seth wrote:

So nautilus gets dbus-activated (somehow)
You could mask org.freedesktop.FileManager1.service, https://wiki.archlinux.org/title/D-Bus# … us_service

If you want to know why, the journal before that segment my hold some hint.
Is FF from the repos or a flatpak?

FF is from repo.

this is the content of org.freedesktop.FileManager1.service

[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/usr/bin/nautilus --gapplication-service

and this is the one of org.kde.dolphin.FileManager1.service

[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/usr/bin/dolphin --daemon
SystemdService=plasma-dolphin.service

I do not understand way the freedesktop file manager uses nautilus and not the preferred application ...

Last edited by Xwang (2025-04-05 20:56:13)

Offline

#9 2025-04-05 21:09:29

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [SOLVED] Firefox is not using dolphin to open download folder

I do not understnd way the freedesktop file manager uses nautilus and not the preferred application

"Hubris" - but you don't need to post the contents, the suggestion was to mask the nautilus one (or just remove nautilus?)

There seems to be no way to discriminate the service implementation by session type.

If you want to know what FF tries to trigger org.freedesktop.FileManager1 instead of apparently using xdg-open (how does "xdg-open /tmp" behave?) you'll have to check for more hints in the journal.

Offline

#10 2025-04-05 21:16:36

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

I've tried to mask, but nothing has changed.

This is the lines in the journal after gdm (I use gdm as login manager to start plasma):

apr 05 22:51:09 D9330 systemd[1453]: Reloading finished in 201 ms.
apr 05 22:51:09 D9330 systemd[1453]: Created slice Slice /app/dbus-:1.2-org.kde.KSplash.
apr 05 22:51:09 D9330 systemd[1453]: Started dbus-:1.2-org.kde.KSplash@0.service.
apr 05 22:51:09 D9330 systemd[1453]: Created slice User Background Tasks Slice.
apr 05 22:51:09 D9330 systemd[1453]: Submitting pending crash events was skipped because of an unmet condition check (ConditionPathExistsGlob=/home/andreak/.cache/drkonqi/sentry-envelopes/>
apr 05 22:51:09 D9330 systemd[1453]: Reached target Session services which should run early before the graphical session is brought up.
apr 05 22:51:09 D9330 systemd[1453]: Starting KDE Global Shortcuts Server...
apr 05 22:51:09 D9330 systemd[1453]: Starting KDE Window Manager...
apr 05 22:51:09 D9330 systemd[1453]: Starting Baloo File Indexer Daemon...
apr 05 22:51:09 D9330 systemd[1453]: kde-baloo.service: Skipped due to 'exec-condition'.
apr 05 22:51:09 D9330 systemd[1453]: Condition check resulted in Baloo File Indexer Daemon being skipped.
apr 05 22:51:09 D9330 gnome-shell[880]: Object MetaInputDeviceNative (0x7538402d9030), has been already disposed — impossible to access it. This might be caused by the object having been d>
                                        == Stack trace for context 0x5ffb9ff98520 ==
                                        #0   5ffba0090900 i   resource:///org/gnome/shell/ui/keyboard.js:1099 (2e8c9f04ad30 @ 56)
                                        #1   5ffba0090858 i   resource:///org/gnome/shell/ui/keyboard.js:1105 (2e8c9f04ad80 @ 99)
                                        #2   5ffba00907c8 i   resource:///org/gnome/shell/ui/init.js:21 (e167267ea60 @ 48)
apr 05 22:51:09 D9330 systemd[1453]: Started KDE Window Manager.
apr 05 22:51:09 D9330 systemd[1453]: Starting KDE Config Module Initialization...
apr 05 22:51:09 D9330 systemd[1453]: Starting Splash screen shown during boot...
apr 05 22:51:09 D9330 systemd[1453]: Starting Portal service...
apr 05 22:51:09 D9330 systemd[1453]: Started KDE Global Shortcuts Server.
apr 05 22:51:09 D9330 systemd[1453]: Starting sandboxed app permission store...
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_type: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
apr 05 22:51:09 D9330 gnome-shell[880]: g_variant_unref: assertion 'value != NULL' failed
apr 05 22:51:09 D9330 systemd[1453]: Started sandboxed app permission store.
apr 05 22:51:09 D9330 systemd[1453]: Starting flatpak document portal service...
apr 05 22:51:09 D9330 systemd[1453]: Started flatpak document portal service.
apr 05 22:51:09 D9330 xdg-desktop-por[1528]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback

Is maybe the last line linked to the issue I'm facing?

Offline

#11 2025-04-05 21:18:36

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

seth wrote:

I do not understnd way the freedesktop file manager uses nautilus and not the preferred application

"Hubris" - but you don't need to post the contents, the suggestion was to mask the nautilus one (or just remove nautilus?)

There seems to be no way to discriminate the service implementation by session type.

If you want to know what FF tries to trigger org.freedesktop.FileManager1 instead of apparently using xdg-open (how does "xdg-open /tmp" behave?) you'll have to check for more hints in the journal.

sorry I forgot to post the journalctl ... I cannot remove nautilus because it is a dependecy for gnome-seesion that is needed by gdm ... so now I'm trying to move back to sddm ... if I find a way to have it work as I need on my 2 in 1, I'll remove gdm, nautilus and so on hoping it solves the issue

Offline

#12 2025-04-05 21:21:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [SOLVED] Firefox is not using dolphin to open download folder

I've tried to mask, but nothing has changed.

"Tried" how exactly?
If the service is correctly mask, it cannot launch nautilus.

Offline

#13 2025-04-05 22:24:28

Xwang
Member
From: EU
Registered: 2012-05-14
Posts: 410

Re: [SOLVED] Firefox is not using dolphin to open download folder

seth wrote:

I've tried to mask, but nothing has changed.

"Tried" how exactly?
If the service is correctly mask, it cannot launch nautilus.


I've followed the wiki by copying the org.freedesktop.FileManager1.service into ~/.local/share/dbus-1/services
Then I've executed

sed 's|^Exec=.*|Exec=/bin/false|' ~/.local/share/dbus-1/services/org.freedesktop.FileManager1.service

... but now I've discovered that the command writes these lines in the bash:

[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/bin/false

without overwrite the file, so 99.99% I have not correctly masked the service.

In any case moving to sddm and removing nautilus, gdm and bunch of gnome dependencies not needed anymore, the firefox issue has disappeared.

Thank you for your support.

Last edited by Xwang (2025-04-05 22:25:10)

Offline

#14 2025-04-06 06:47:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [SOLVED] Firefox is not using dolphin to open download folder

Fixed the wiki and no, you didn't mask it.
"sed -i …" will edit the file in place but rather use a texteditor, don't just copypaste blackbox sed strings from the internet (not even the wiki or this board)
I read every sed command I issue for mass-editing like 5 times before I press enter. It's that scary.

Offline

Board footer

Powered by FluxBB