mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6034] nicotine: cannot start with fcitx dbus entries enabled #3163
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @glu8716 on GitHub (Oct 5, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6034
Description
According to the FAQ page if the dbus policy of the profile is set to none, in order to have Fcitx working you need to add
to the .local file. And that's what I did for Nicotine.
However by doing so the program doesn't start.
Steps to Reproduce
nicotine.localfileExpected behavior
Program should start and Fcitx should work.
Actual behavior
Program doesn't start.
Behavior without a profile
The programs starts fine and Fcitx works too.
Additional context
I see that the program is complaining about the dbus socket location (see logs). My dbus socket file is located in the /tmp folder as I found out in another issue I've opened recently. This is how Artix deals with it, apparently. I don't know if this could be related.
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
firejail /usr/bin/nicotine@ghost commented on GitHub (Oct 5, 2023):
Does the workaround from #6031 fixes this for you on Artix?
@glu8716 commented on GitHub (Oct 5, 2023):
I forgot to mention that, but no, it doesn't. I've already tried
@ghost commented on GitHub (Oct 5, 2023):
Thanks for clarifying. Never actually used nicotine, but it seems a bit odd for a music-sharing client to have
nosoundin its profile. This app doesn't actually play music? Also, I'm wondering ifnorootcould be involved. That's known to break portal D-Bus comms in some cases. Triedignore norootyet?@glu8716 commented on GitHub (Oct 5, 2023):
It doesn't, but it can call an external player to open music files from it.
Just tried. Doesn't work unfortunately.
@ghost commented on GitHub (Oct 6, 2023):
Like in #6031 I've installed nicotine+ and it works flawlessly on my Arch Linux machine. So I cannot reproduce. Apparently nicotine supports sound notifications so we'd better take out nosound. I've also determined
works. But we can make these changes to our nicotine profile later. Let's try to determine what's keeping it from working on Artix first.
In that case we'll have to go through similar testing like we did #6031. Start with
--noprofileand pick it up from there. I suspect your Artix has trouble with thewhitelist-runuser-common.incinclude. Do you have the paths that get whitelisted in that file?2a8621cd94/etc/inc/whitelist-runuser-common.inc (L1-L16)@glu8716 commented on GitHub (Oct 6, 2023):
Yes, the paths are all there. I haven't touched anything in that file so it's the same as the one you posted right now.
The line that is problematic is
dbus-user filter. If I take that out from the .local file the program starts (but the problem here is Fcitx not working, and from what I can understand it needs that line).EDIT: adding the line
dbus-user.own org.nicotine_plus.Nicotinelike you did does the trick! The program starts and Fcitx works too.@ghost commented on GitHub (Oct 6, 2023):
Yes, I forgot to add
dbus-user.talk org.freedesktop.portal.Fcitxto the mix. But--noprofiledoes work correct?@ghost commented on GitHub (Oct 6, 2023):
@kmk3 Any ideas why
Artixseems to have issues like #6031 and this one?@glu8716 commented on GitHub (Oct 6, 2023):
Yes! As I said only the
dbus-user filterline needed for Fcitx was causing the program to fail. Starting the program without any profile works.Also, what is this needed to?
@ghost commented on GitHub (Oct 6, 2023):
It allows nicotine to talk to dconf. Impacts fonts, theme settings etcetera. Nicotine has quite a number of preferences. During configuration you'd sometimes ee several lines in CLI like
These are not fatal. Just a nuissance if you have to redo the settings to your liking without allowing comms with dconf over D-Bus.
@ghost commented on GitHub (Oct 6, 2023):
Great! I made a note we should add these lines to the dbus section of nicotine.profile. Can you open a PR for this?
@ghost commented on GitHub (Oct 7, 2023):
Fixed by #6036.