-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firefox: cannot drag and drop files from Dolphin #6444
Comments
DnD does not give Firefox an FD but an path. Firefox must be able to open that path. Tri with |
That does not work either: $ LC_ALL=C firejail --allusers firefox
Reading profile /etc/firejail/firefox.profile
Reading profile /home/myusername/.config/firejail/firefox.local
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/firefox-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-proc.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 41155, child pid 41159
9 programs installed in 19.00 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Warning: Replacing profile instead of stacking it. It is a legacy behavior that can result in relaxation of the protection. It is here as a temporary measure to unbreak the software that has been broken by switching to the stacking behavior.
Child process initialized in 197.80 ms
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:47.820: g_strv_length: assertion 'str_array != NULL' failed
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:47.821: g_strv_length: assertion 'str_array != NULL' failed
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:47.821: g_strv_length: assertion 'str_array != NULL' failed
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:59.140: g_strv_length: assertion 'str_array != NULL' failed
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:59.141: g_strv_length: assertion 'str_array != NULL' failed
[Parent 16, Main Thread] WARNING: g_strv_length: assertion 'str_array != NULL' failed: 'glib warning', file /usr/src/debug/firefox/firefox-129.0.2/toolkit/xre/nsSigHandlers.cpp:187
(firefox:16): GLib-CRITICAL **: 10:41:59.141: g_strv_length: assertion 'str_array != NULL' failed
Parent is shutting down, bye...
|
Any more ideas? |
This is probably related to dbus; try the following: |
@kmk3 Thanks, I disabled the dbus parameters one by one and the ones breaking drag & drop are:
I added these to firefox.local:
No idea if this causes any major security issues but if not, this should be set by default since drag & drop is an essential "feature" with a browser (e.g. sharedrives, picture upload, ....)? |
firefox.profile already has firejail/etc/profile-a-l/firefox.profile Line 65 in 5edddc9
Using firejail/etc/profile-a-l/firefox.profile Lines 57 to 59 in 5edddc9
|
@glitsj16 woopsie you are right. I only had to add "ignore dbus-user filter" to get it to work. The following are already in my firefox.local but didn't help: Keepass:
KDE (kdeconnect not installed):
Any other dbus filters I should try adding? |
Never actually touched KDE so nothing I can suggest offhand. But I see there's a org.kde.dolphin.FileManager1.service in the dolphin package on Arch, so try |
Since GNOME+Nautilus+Firefox+Wayland works for me, do you run a x11 or Wayland session? |
@rusty-snake I am on wayland - what about you? |
@glitsj16 the "dbus-user.talk org.kde.dolphin.FileManager1" does not help and also busctl does not list it for me? Here is the whole busctl
$ busctl
NAME PID PROCESS USER CONNECTION UNIT SESSION DESCRIPTION
:1.0 955 systemd-timesyn systemd-timesync :1.0 systemd-timesyncd.service - -
:1.1 1 systemd root :1.1 init.scope - -
:1.10 966 firewalld root :1.10 firewalld.service - -
:1.103 6530 dolphin username :1.103 [email protected] - -
:1.106 7057 dolphin username :1.106 [email protected] - -
:1.108 7466 0 username :1.108 [email protected] - -
:1.11 1027 NetworkManager root :1.11 NetworkManager.service - -
:1.126 12585 telegram-deskto username :1.126 [email protected] - -
:1.127 12585 telegram-deskto username :1.127 [email protected] - -
:1.129 15084 gdbus username :1.129 [email protected] - -
:1.139 15533 plasmashell username :1.139 [email protected] - -
:1.14 1047 cupsd root :1.14 cups.service - -
:1.140 15742 electron username :1.140 [email protected] - -
:1.141 15742 electron username :1.141 [email protected] - -
:1.15 1067 sddm root :1.15 sddm.service - -
:1.17 1078 colord colord :1.17 colord.service - -
:1.18 1111 Xorg root :1.18 sddm.service - -
:1.19 1143 smbd root :1.19 smb.service - -
:1.2 959 dbus-broker-lau root :1.2 dbus-broker.service - -
:1.20 1200 wpa_supplicant root :1.20 wpa_supplicant.service - -
:1.206 24994 gdbus username :1.206 [email protected] - -
:1.257 35302 dolphin username :1.257 [email protected] - -
:1.275 42325 gdbus username :1.275 [email protected] - -
:1.281 42473 systemd-inhibit username :1.281 [email protected] - -
:1.282 42475 gdbus username :1.282 [email protected] - -
:1.292 42955 nm-openvpn-serv root :1.292 NetworkManager.service - -
:1.299 47859 busctl username :1.299 [email protected] - -
:1.3 963 avahi-daemon avahi :1.3 avahi-daemon.service - -
:1.32 1347 systemd username :1.32 [email protected] - -
:1.34 1395 startplasma-way username :1.34 session-2.scope 2 -
:1.36 1501 xdg-desktop-por username :1.36 [email protected] - -
:1.37 1522 rtkit-daemon root :1.37 rtkit-daemon.service - -
:1.38 1494 kwin_wayland username :1.38 [email protected] - -
:1.39 1542 wireplumber username :1.39 [email protected] - -
:1.4 970 systemd-machine root :1.4 systemd-machined.service - -
:1.40 1542 wireplumber username :1.40 [email protected] - -
:1.41 1607 kded6 username :1.41 [email protected] - -
:1.42 1733 udisksd root :1.42 udisks2.service - -
:1.44 1722 org_kde_powerde username :1.44 [email protected] - -
:1.45 1722 org_kde_powerde username :1.45 [email protected] - -
:1.46 1722 org_kde_powerde username :1.46 [email protected] - -
:1.47 1721 polkit-kde-auth username :1.47 [email protected] - -
:1.48 1767 upowerd root :1.48 upower.service - -
:1.49 1607 kded6 username :1.49 [email protected] - -
:1.5 964 bluetoothd root :1.5 bluetooth.service - -
:1.50 1607 kded6 username :1.50 [email protected] - -
:1.6 967 power-profiles- root :1.6 power-profiles-daemon.service - -
:1.63 1926 agent username :1.63 [email protected] - -
:1.64 1916 syncthingtray username :1.64 [email protected] - -
:1.65 1908 firewall-applet username :1.65 [email protected] - -
:1.7 969 systemd-logind root :1.7 systemd-logind.service - -
:1.88 1721 polkit-kde-auth username :1.88 [email protected] - -
:1.9 979 polkitd polkitd :1.9 polkit.service - -
:1.94 1723 xdg-desktop-por username :1.94 [email protected] - -
com.redhat.NewPrinterNotification 1607 kded6 username :1.41 [email protected] - -
dev.jonmagon.kdiskmark.helperinterface - - - (activatable) - - -
fi.w1.wpa_supplicant1 1200 wpa_supplicant root :1.20 wpa_supplicant.service - -
net.hadess.PowerProfiles 967 power-profiles- root :1.6 power-profiles-daemon.service - -
org.bluez 964 bluetoothd root :1.5 bluetooth.service - -
org.fedoraproject.FirewallD1 966 firewalld root :1.10 firewalld.service - -
org.freedesktop.Accounts - - - (activatable) - - -
org.freedesktop.Avahi 963 avahi-daemon avahi :1.3 avahi-daemon.service - -
org.freedesktop.ColorManager 1078 colord colord :1.17 colord.service - -
org.freedesktop.DBus 1 systemd root - init.scope - -
org.freedesktop.DisplayManager 1067 sddm root :1.15 sddm.service - -
org.freedesktop.GeoClue2 - - - (activatable) - - -
org.freedesktop.ModemManager1 - - - (activatable) - - -
org.freedesktop.NetworkManager 1027 NetworkManager root :1.11 NetworkManager.service - -
org.freedesktop.NetworkManager.openvpn.Connection_20 42955 nm-openvpn-serv root :1.292 NetworkManager.service - -
org.freedesktop.Passim - - - (activatable) - - -
org.freedesktop.PolicyKit1 979 polkitd polkitd :1.9 polkit.service - -
org.freedesktop.RealtimeKit1 1522 rtkit-daemon root :1.37 rtkit-daemon.service - -
org.freedesktop.UDisks2 1733 udisksd root :1.42 udisks2.service - -
org.freedesktop.UPower 1767 upowerd root :1.48 upower.service - -
org.freedesktop.UPower.PowerProfiles 967 power-profiles- root :1.6 power-profiles-daemon.service - -
org.freedesktop.fwupd - - - (activatable) - - -
org.freedesktop.home1 - - - (activatable) - - -
org.freedesktop.hostname1 - - - (activatable) - - -
org.freedesktop.import1 - - - (activatable) - - -
org.freedesktop.locale1 - - - (activatable) - - -
org.freedesktop.login1 969 systemd-logind root :1.7 systemd-logind.service - -
org.freedesktop.machine1 970 systemd-machine root :1.4 systemd-machined.service - -
org.freedesktop.network1 - - - (activatable) - - -
org.freedesktop.nm_dispatcher - - - (activatable) - - -
org.freedesktop.nm_priv_helper - - - (activatable) - - -
org.freedesktop.oom1 - - - (activatable) - - -
org.freedesktop.portable1 - - - (activatable) - - -
org.freedesktop.ratbag1 - - - (activatable) - - -
org.freedesktop.resolve1 - - - (activatable) - - -
org.freedesktop.systemd1 1 systemd root :1.1 init.scope - -
org.freedesktop.timedate1 - - - (activatable) - - -
org.freedesktop.timesync1 955 systemd-timesyn systemd-timesync :1.0 systemd-timesyncd.service - -
org.kde.filesharing.samba - - - (activatable) - - -
org.kde.fontinst - - - (activatable) - - -
org.kde.kameleonhelper - - - (activatable) - - -
org.kde.kcontrol.kcmclock - - - (activatable) - - -
org.kde.kcontrol.kcmkwallet5 - - - (activatable) - - -
org.kde.kcontrol.kcmsddm - - - (activatable) - - -
org.kde.kded.inotify - - - (activatable) - - -
org.kde.kded.smart - - - (activatable) - - -
org.kde.kinfocenter.dmidecode - - - (activatable) - - -
org.kde.kio.admin - - - (activatable) - - -
org.kde.kpmcore.helperinterface - - - (activatable) - - -
org.kde.ksysguard.processlisthelper - - - (activatable) - - -
org.kde.ktexteditor6.katetextbuffer - - - (activatable) - - -
org.kde.powerdevil.backlighthelper - - - (activatable) - - -
org.kde.powerdevil.chargethresholdhelper - - - (activatable) - - -
org.kde.powerdevil.discretegpuhelper - - - (activatable) - - -
org.kde.ufw - - - (activatable) - - - |
It is per user after all, so it listens on the session bus not on the system bus. |
Uhm not sure what to do with that information. Does it mean the problems root is somewhere else or should I set a different allowed dbus rule? |
You busctl command was |
Oh sorry for that. Here is busctl --user
$ busctl --user
NAME PID PROCESS USER CONNECTION UNIT SESSION DESCRIPTION
:1.0 1395 startplasma-way username :1.0 session-2.scope 2 -
:1.1 1347 systemd username :1.1 [email protected] - -
:1.10 1541 pipewire username :1.10 [email protected] - -
:1.109 23980 0 username :1.109 [email protected] - -
:1.11 1542 wireplumber username :1.11 [email protected] - -
:1.110 23980 0 username :1.110 [email protected] - -
:1.116 28618 smbnotifier username :1.116 [email protected] - -
:1.120 28633 smbnotifier username :1.120 [email protected] - -
:1.122 28669 kio-fuse username :1.122 [email protected] - -
:1.13 1393 kwalletd6 username :1.13 session-2.scope 2 -
:1.14 1607 kded6 username :1.14 [email protected] - -
:1.148 35418 smbnotifier username :1.148 [email protected] - -
:1.15 1605 ksmserver username :1.15 [email protected] - -
:1.165 48281 smbnotifier username :1.165 [email protected] - -
:1.166 48292 systemsettings username :1.166 [email protected] - -
:1.17 1653 pipewire-pulse username :1.17 [email protected] - -
:1.18 1607 kded6 username :1.18 [email protected] - -
:1.198 52439 Discord username :1.198 [email protected] - -
:1.199 52439 Discord username :1.199 [email protected] - -
:1.2 1483 dbus-broker-lau username :1.2 [email protected] - -
:1.20 1669 dconf-service username :1.20 [email protected] - -
:1.205 52439 Discord username :1.205 [email protected] - -
:1.207 54763 konsole username :1.207 [email protected] - -
:1.208 54960 konsole username :1.208 [email protected] - -
:1.21 1703 kactivitymanage username :1.21 [email protected] - -
:1.212 61271 telegram-deskto username :1.212 [email protected] - -
:1.213 61271 telegram-deskto username :1.213 [email protected] - -
:1.214 61271 telegram-deskto username :1.214 [email protected] - -
:1.22 1720 gmenudbusmenupr username :1.22 [email protected] - -
:1.220 62853 smbnotifier username :1.220 [email protected] - -
:1.221 62857 smbnotifier username :1.221 [email protected] - -
:1.223 62863 smbnotifier username :1.223 [email protected] - -
:1.224 62867 smbnotifier username :1.224 [email protected] - -
:1.228 63115 smbnotifier username :1.228 [email protected] - -
:1.229 63199 smbnotifier username :1.229 [email protected] - -
:1.23 1724 xembedsniproxy username :1.23 [email protected] - -
:1.238 63651 okular username :1.238 [email protected] - -
:1.24 1721 polkit-kde-auth username :1.24 [email protected] - -
:1.249 66522 dolphin username :1.249 [email protected] - -
:1.25 1723 xdg-desktop-por username :1.25 [email protected] - -
:1.250 66592 kioworker username :1.250 [email protected] - -
:1.251 66635 busctl username :1.251 [email protected] - -
:1.26 1722 org_kde_powerde username :1.26 [email protected] - -
:1.27 1501 xdg-desktop-por username :1.27 [email protected] - -
:1.31 1927 kaccess username :1.31 [email protected] - -
:1.33 1907 easyeffects username :1.33 [email protected] - -
:1.34 1916 syncthingtray username :1.34 [email protected] - -
:1.36 1908 firewall-applet username :1.36 [email protected] - -
:1.38 1916 syncthingtray username :1.38 [email protected] - -
:1.39 1908 firewall-applet username :1.39 [email protected] - -
:1.4 1491 kwin_wayland_wr username :1.4 [email protected] - -
:1.40 1908 firewall-applet username :1.40 [email protected] - -
:1.43 2630 at-spi-bus-laun username :1.43 [email protected] - -
:1.54 5220 baloorunner username :1.54 [email protected] - -
:1.55 5238 konsole username :1.55 [email protected] - -
:1.6 1501 xdg-desktop-por username :1.6 [email protected] - -
:1.68 7153 kiod6 username :1.68 [email protected] - -
:1.7 1506 xdg-document-po username :1.7 [email protected] - -
:1.76 7466 0 username :1.76 [email protected] - -
:1.8 1510 xdg-permission- username :1.8 [email protected] - -
:1.9 1494 kwin_wayland username :1.9 [email protected] - -
:1.94 15533 plasmashell username :1.94 [email protected] - -
:1.97 15742 electron username :1.97 [email protected] - -
:1.98 15742 electron username :1.98 [email protected] - -
ca.desrt.dconf 1669 dconf-service username :1.20 [email protected] - -
com.canonical.Unity 15533 plasmashell username :1.94 [email protected] - -
com.canonical.indicators.webcredentials - - - (activatable) - - -
com.github.wwmm.easyeffects 1907 easyeffects username :1.33 [email protected] - -
com.google.code.AccountsSSO.SingleSignOn - - - (activatable) - - -
com.nokia.SingleSignOn.Backup - - - (activatable) - - -
com.nokia.singlesignonui - - - (activatable) - - -
com.teamviewer.TeamViewer - - - (activatable) - - -
com.teamviewer.TeamViewer.Desktop - - - (activatable) - - -
local.org_kde_powerdevil 1722 org_kde_powerde username :1.26 [email protected] - -
org.a11y.Bus 2630 at-spi-bus-laun username :1.43 [email protected] - -
org.fedoraproject.Config.Printing - - - (activatable) - - -
org.freedesktop.Akonadi.Control - - - (activatable) - - -
org.freedesktop.ColorHelper - - - (activatable) - - -
org.freedesktop.DBus 1347 systemd username - [email protected] - -
org.freedesktop.FileManager1 66522 dolphin username :1.249 [email protected] - -
org.freedesktop.Notifications 15533 plasmashell username :1.94 [email protected] - -
org.freedesktop.PowerManagement 1722 org_kde_powerde username :1.26 [email protected] - -
org.freedesktop.PowerManagement.Inhibit 1722 org_kde_powerde username :1.26 [email protected] - -
org.freedesktop.ReserveDevice1.Audio0 1542 wireplumber username :1.11 [email protected] - -
org.freedesktop.ReserveDevice1.Audio1 1542 wireplumber username :1.11 [email protected] - -
org.freedesktop.ReserveDevice1.Audio2 1542 wireplumber username :1.11 [email protected] - -
org.freedesktop.ScreenSaver 1494 kwin_wayland username :1.9 [email protected] - -
org.freedesktop.background.Monitor 1501 xdg-desktop-por username :1.27 [email protected] - -
org.freedesktop.impl.portal.PermissionStore 1510 xdg-permission- username :1.8 [email protected] - -
org.freedesktop.impl.portal.desktop.kde 1723 xdg-desktop-por username :1.25 [email protected] - -
org.freedesktop.impl.portal.desktop.kwallet 1393 kwalletd6 username :1.13 session-2.scope 2 -
org.freedesktop.portal.Desktop 1501 xdg-desktop-por username :1.6 [email protected] - -
org.freedesktop.portal.Documents 1506 xdg-document-po username :1.7 [email protected] - -
org.freedesktop.portal.Tracker - - - (activatable) - - -
org.freedesktop.secrets 1393 kwalletd6 username :1.13 session-2.scope 2 -
org.freedesktop.systemd1 1347 systemd username :1.1 [email protected] - -
org.gnome.keyring.PrivatePrompter - - - (activatable) - - -
org.gnome.keyring.SystemPrompter - - - (activatable) - - -
org.gtk.GLib.PACRunner - - - (activatable) - - -
org.gtk.Settings 1607 kded6 username :1.14 [email protected] - -
org.kde.ActivityManager 1703 kactivitymanage username :1.21 [email protected] - -
org.kde.GtkConfig 1607 kded6 username :1.14 [email protected] - -
org.kde.JobViewServer 15533 plasmashell username :1.94 [email protected] - -
org.kde.KIOFuse 28669 kio-fuse username :1.122 [email protected] - -
org.kde.KScreen - - - (activatable) - - -
org.kde.KSplash - - - (activatable) - - -
org.kde.KWin 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.KWin.HighlightWindow 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.KWin.NightLight 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.KWin.ScreenShot2 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.KWinWrapper 1491 kwin_wayland_wr username :1.4 [email protected] - -
org.kde.LogoutPrompt - - - (activatable) - - -
org.kde.Shutdown - - - (activatable) - - -
org.kde.Solid.PowerManagement 1722 org_kde_powerde username :1.26 [email protected] - -
org.kde.Solid.PowerManagement.PolicyAgent 1722 org_kde_powerde username :1.26 [email protected] - -
org.kde.Spectacle - - - (activatable) - - -
org.kde.StatusNotifierHost-15533 15533 plasmashell username :1.94 [email protected] - -
org.kde.StatusNotifierWatcher 1607 kded6 username :1.14 [email protected] - -
org.kde.dolphin-66522 66522 dolphin username :1.249 [email protected] - -
org.kde.fontinst - - - (activatable) - - -
org.kde.kaccess 1927 kaccess username :1.31 [email protected] - -
org.kde.kappmenu 1607 kded6 username :1.14 [email protected] - -
org.kde.kcookiejar5 - - - (activatable) - - -
org.kde.kded5 - - - (activatable) - - -
org.kde.kded6 1607 kded6 username :1.14 [email protected] - -
org.kde.keyboard 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.kglobalaccel 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.kiod5 - - - (activatable) - - -
org.kde.kiod6 7153 kiod6 username :1.68 [email protected] - -
org.kde.kioexecd - - - (activatable) - - -
org.kde.kioexecd6 7153 kiod6 username :1.68 [email protected] - -
org.kde.kmtpd5 7153 kiod6 username :1.68 [email protected] - -
org.kde.konsole-5238 5238 konsole username :1.55 [email protected] - -
org.kde.konsole-54763 54763 konsole username :1.207 [email protected] - -
org.kde.konsole-54960 54960 konsole username :1.208 [email protected] - -
org.kde.kpasswdserver - - - (activatable) - - -
org.kde.kpasswdserver6 7153 kiod6 username :1.68 [email protected] - -
org.kde.krunner - - - (activatable) - - -
org.kde.kscreen.osdService - - - (activatable) - - -
org.kde.ksmserver 1605 ksmserver username :1.15 [email protected] - -
org.kde.kssld5 - - - (activatable) - - -
org.kde.kssld6 7153 kiod6 username :1.68 [email protected] - -
org.kde.ksystemstats1 - - - (activatable) - - -
org.kde.kuiserver 15533 plasmashell username :1.94 [email protected] - -
org.kde.kwalletd5 1393 kwalletd6 username :1.13 session-2.scope 2 -
org.kde.kwalletd6 1393 kwalletd6 username :1.13 session-2.scope 2 -
org.kde.kwalletmanager5 - - - (activatable) - - -
org.kde.okular-252 63651 okular username :1.238 [email protected] - -
org.kde.plasmanetworkmanagement 1607 kded6 username :1.14 [email protected] - -
org.kde.plasmashell 15533 plasmashell username :1.94 [email protected] - -
org.kde.plasmashell.accentColor 1607 kded6 username :1.14 [email protected] - -
org.kde.polkit-kde-authentication-agent-1 1721 polkit-kde-auth username :1.24 [email protected] - -
org.kde.powerdevil.powerProfileOsdService - - - (activatable) - - -
org.kde.runners.activities 1703 kactivitymanage username :1.21 [email protected] - -
org.kde.runners.baloo 5220 baloorunner username :1.54 [email protected] - -
org.kde.screensaver 1494 kwin_wayland username :1.9 [email protected] - -
org.kde.spectacle - - - (activatable) - - -
org.kde.systemsettings 48292 systemsettings username :1.166 [email protected] - -
org.keepassxc.KeePassXC.MainWindow 7466 0 username :1.76 [email protected] - -
org.mozilla.firefox.ZGVmYassdC1yZWxlYXNl 23980 0 username :1.109 [email protected] - -
org.pulseaudio.Server 1653 pipewire-pulse username :1.17 [email protected] - -
org.telegram.desktop 61271 telegram-deskto username :1.213 [email protected] - - So the next rules to try would be:
Correct? |
FileManager1 has no relevant interfaces AFAIK. org.kde.KIOFuse, org.kde.kio* look more interesting to me. |
Added these to my firefox.local but it didn't help / fix the issue:
This also didn't help:
|
Can you try |
Sure! I tried but it didn't fix the issue. |
busctl --user list --no-legend --activatable --acquired | cut -d" " -f1 | sed -E "s/.*/dbus-user.talk \0/" and then do a binary search with it |
Uhm I am sorry but what do you mean with binary search? I could just divide the whole outputted list in 10 parts, then add each part step by step until I figure out which part contains the required line and then inspect that specific part. Or rather keep diving the whole output by 50% until I figure out the rogue line :P Here is the output btw: busctl
|
Pretty much this. But keep in mind that it is possible that more than one line is required, which can make find them harder. |
The following might work to narrow it down (untested): Find the Firefox service name: busctl --user | grep '^org.mozilla.firefox' | cut -f 1 -d ' ' Then run a command to monitor it, drag and drop a file from Dolphin and stop (Edit: Wrong command; see below)
sudo busctl monitor "$firefox" | tee ~/firefox-dbus.txt
^C
grep Interface= ~/firefox-dbus.txt busctl --user monitor "$firefox" | tee ~/firefox-dbus.txt
^C
grep Interface= ~/firefox-dbus.txt What is the grep output? What is in ~/firefox-dbus.txt?
Do you know which dbus name is used in this case? |
The relevant interface seems to be |
@kmk3
Adding "dbus-user.talk org.freedesktop.DBus.Properties" didn't help / didn't fix the issue. I didn't have the time to try all the entries from this post: #6444 (comment) But I will do so if that is what it takes :) Probably got the time tomorrow! |
This is the system bus which is surely not used for DnD in a session.
Is an interface name for which you can not add talk rules
|
YES! :) Your rule fixes the issue. So it must be something in here:
|
|
Yes sir, this is fixing the issue! :) This debugging was interesting. Will this get into the original firefox.profile and help other users then? |
It appears that LibreWolf 129 uses `io.gitlab.firefox.*` as the dbus name. Commands used to check the dbus name: $ busctl --user --no-legend | grep -v '^:' | grep librewolf | sed -E 's/(^[^ ]+\.)[^. ]+ .*/\1/' io.gitlab.firefox. Commands used to test dbus communication: # Open a new browser instance: $ firejail --name=lwtest --ignore=name --ignore='dbus-user none' \ --dbus-user=filter --dbus-user.own='io.gitlab.firefox.*' \ --private --net=none --ignore=net /usr/bin/librewolf # In another shell, try to open a new tab: $ firejail --join=lwtest /usr/bin/librewolf --new-tab about:blank # Check that the new tab was opened Related commits: * c3f2996 ("Let programs outside librewolf sandbox open new tabs in librewolf (netblue30#4546)", 2021-09-19) * a8ad9ca ("Update librewolf.profile: use new message bus", 2022-02-03) / PR netblue30#4897 * 4211ee3 ("merges", 2022-02-04) Fixes netblue30#6413. Misc: This was noticed on netblue30#6444. Reported-by: @Lonniebiz
It appears that LibreWolf 129 uses `io.gitlab.firefox.*` as the dbus name. Commands used to check the dbus name: $ busctl --user --no-legend | grep -v '^:' | grep librewolf | sed -E 's/(^[^ ]+\.)[^. ]+ .*/\1/' io.gitlab.firefox. Commands used to test dbus communication: # Open a new browser instance: $ firejail --name=lwtest --ignore=name --ignore='dbus-user none' \ --dbus-user=filter --dbus-user.own='io.gitlab.firefox.*' \ --private --net=none --ignore=net /usr/bin/librewolf # In another shell, try to open a new tab: $ firejail --join=lwtest /usr/bin/librewolf --new-tab about:blank # Check that the new tab was opened Related commits: * c3f2996 ("Let programs outside librewolf sandbox open new tabs in librewolf (netblue30#4546)", 2021-09-19) * a8ad9ca ("Update librewolf.profile: use new message bus", 2022-02-03) / PR netblue30#4897 * 4211ee3 ("merges", 2022-02-04) Fixes netblue30#6413. Misc: This was noticed on netblue30#6444. Reported-by: @Lonniebiz
It appears that LibreWolf 129 uses `io.gitlab.firefox.*` as the dbus name. Commands used to check the dbus name: $ busctl --user --no-legend | grep -v '^:' | grep librewolf | sed -E 's/(^[^ ]+\.)[^. ]+ .*/\1/' io.gitlab.firefox. Commands used to test dbus communication: # Open a new browser instance: $ firejail --name=lwtest --ignore=name --ignore='dbus-user none' \ --dbus-user=filter --dbus-user.own='io.gitlab.firefox.*' \ --private --net=none --ignore=net /usr/bin/librewolf # In another shell, try to open a new tab: $ firejail --join=lwtest /usr/bin/librewolf --new-tab about:blank # Check that the new tab was opened Related commits: * c3f2996 ("Let programs outside librewolf sandbox open new tabs in librewolf (#4546)", 2021-09-19) * a8ad9ca ("Update librewolf.profile: use new message bus", 2022-02-03) / PR #4897 * 4211ee3 ("merges", 2022-02-04) Fixes #6413. Misc: This was noticed on #6444. Reported-by: @Lonniebiz
This entry enables drag and drop from Dolphin. Fixes netblue30#6444. Reported-by: @Utini2000 Suggested-by: @rusty-snake
For reference, the previous It should work with the following: busctl --user monitor "$firefox" | tee ~/firefox-dbus.txt
^C
grep Interface= ~/firefox-dbus.txt |
This fixes drag and drop for at least Dolphin. Fixes netblue30#6444. Reported-by: @Utini2000 Suggested-by: @rusty-snake
Description
Drag & Drop of files (e.g. adding attachments in a webmail) does not work with Firefox & KDE Dolphin.
Steps to Reproduce
Open Firefox
Browser gmail
Create Mail
Drag & Drop a .pdf from /home/Downloads/ via Dolphin
Expected behavior
Working drag & drop.
Actual behavior
Drag & Drop not working
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile firefox
in aterminal?
Then drag & drop will work fine
Additional context
Nope :)
Environment
firefox.local:
Checklist
/usr/bin/vlc
) "fixes" it).https://github.com/netblue30/firejail/issues/1139
)browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.--profile=PROFILENAME
to set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/program
Output of
LC_ALL=C firejail --debug /path/to/program
Link: https://gist.github.com/Utini2000/e78b15f511baf946a3c1ebafa15ac449
The text was updated successfully, but these errors were encountered: