mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1631] Qt5 do not inherit GTK theme when in a GTK environment [0.9.50] #1097
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#1097
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 @ghost on GitHub (Nov 4, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1631
When using
QT_QPA_PLATFORMTHEME=gtk2environment variable withqt5-stylepluginsand loading, for instance, keepassxc (2.2.2 — Qt 5.9.2) withfirejail --noprofilethe GTK theme is loaded.Running keepassxc with the default firejail profile loads the default Qt5 theme instead and I get:
(not sure which line might be relevant)
@netblue30 commented on GitHub (Nov 6, 2017):
I don't think plugins ever worked, I'll look into it.
@viking777 commented on GitHub (Mar 2, 2018):
I have an almost identical error with keepassxc and firejail:
This has occurred since the update from 2.2.4-1 -> 2.3.0-1. The earlier version had no problem with firejail. Using the --noprofile switch allows keepassxc to open normally otherwise it just hangs forever.
Edit: Unlike the OP I am not using any plugins.
@Vincent43 commented on GitHub (Mar 2, 2018):
@viking777 can you try this? https://github.com/netblue30/firejail/issues/1791#issuecomment-369741730
@viking777 commented on GitHub (Mar 2, 2018):
@Vincent43 I already did try it - no difference.
One thing that may be significant to this is that /tmp/dbus-U61CB5DNR9 which keepassxc is complaining about doesn't exist in the distros /tmp directory (there are no dbus folders at all in there), so unless it is referring to the private-tmp directory in the chroot then it is never going to be able to connect to a dbus socket in /tmp.
Incidentally, I am using Manjaro linux with Xfce4 desktop, but I have a bit of a mongrel system, with applications from Gnome and Kde as well as Xfce so consequently I have gtk2, gtk3, qt4 and qt5 all installed at the same time - but that didn't worry the last version of keepassxc one bit.
@Vincent43 commented on GitHub (Mar 2, 2018):
Try to add
ignore private-tmpin same file.@viking777 commented on GitHub (Mar 2, 2018):
@Vincent43 I had already tried commenting out 'private-tmp' which made no difference, changing that to 'ignore private-tmp' was equally ineffective.
Thanks for the suggestions though.
@Fred-Barclay commented on GitHub (Mar 3, 2018):
@viking777 Is there a line like
export QT_STYLE_OVERRIDE=gtkin your .bashrc?Firejail sometimes uses a different .bashrc inside the sandbox than your real one (I don't recall the exact circumstances when this happens just now), so perhaps that's what's going on and QT_STYLE_OVERRIDE=gtk isn't being set inside the sandbox.
@viking777 commented on GitHub (Mar 3, 2018):
Thanks for the reply Fred. My .bashrc did not contain that line, so I added it, rebooted and tried again, but no joy, still the same error as above.
I also tried the suggestion in issue 1791 by SkewedZeppelin -
that didn't work either.
As I mentioned above, it works with the --noprofile switch, so it must be something in the /etc/firejail/keepassxc.profile that is causing it, but I don't know what.
@viking777 commented on GitHub (Mar 3, 2018):
I finally got an answer to this.
I went through the profile line by line commenting out each one in turn and then attempting to start the program - a very long job! I started at the top and the line that is causing the problem third from the bottom!
Anyway the answer is that in order for it to work you have to comment out the line reading
memory-deny-write-executeI don't know the full consequences of that but it is probably safer than running it with the --noprofile option.
Edit: Incidentally, the original error message I reported is still showing even though the program now works, so it is probably completely spurious as with so many others in the world of computing.