mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #965] GTK 3 theme in Xephyr sandbox? #655
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#655
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 @laniakea64 on GitHub (Dec 8, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/965
Lubuntu 14.04
firejail 0.9.44.2
My GTK 3 theme is Greybird. When running GTK 3 apps in a firejail x11 sandbox (Xephyr), they use the Raleigh GTK theme. This happens even with
--noprofileoption.GTK 2 apps and Qt apps don't have this problem.
How to get the system GTK 3 theme to apply inside the Xephyr sandbox too?
@netblue30 commented on GitHub (Dec 9, 2016):
You need to run a window manager in xephyr, one that supports GTK3 themes. I usually run it with Openbox, but this is a very simple one, without any GTK3 support:
@laniakea64 commented on GitHub (Dec 9, 2016):
Thanks, that would explain it. I too use Openbox, both inside the sandbox (run like you show) and outside the sandbox (where it's started by LXDE).
So how does LXDE appear to get GTK 3 support in Openbox?
@netblue30 commented on GitHub (Dec 10, 2016):
I am also using LXDE outside the sandbox. Try this:
@laniakea64 commented on GitHub (Dec 10, 2016):
I don't seem to have a
startlxdecommand 😕@netblue30 commented on GitHub (Dec 11, 2016):
What distro are you using?
I got this working on a Debian stable:
Create a script, shell.sh, and make it executable:
and start it in the sandbox:
It will start xpehyr and LXDE inside the sandbox, and it will reuse your LXDE configuration
@netblue30 commented on GitHub (Dec 11, 2016):
Also, don't use Shutdown/Reboot buttons in Logout menu, in the sandbox instance of LXDE!
@laniakea64 commented on GitHub (Dec 11, 2016):
Lubuntu 14.04
Same problem. 🙁
I notice that the icon theme in the sandbox reverts to GNOME. I don't mind that so much though. Is that related to the GTK 3 theme problem?
Thanks, that's good advice, I already found out the hard way on the Logout button 😮
@netblue30 commented on GitHub (Dec 13, 2016):
I have no idea how the GTK3 theme is working, probably there is some socket the sandbox disables.
@laniakea64 commented on GitHub (Dec 14, 2016):
Actually I see the same problems in a Xephyr without firejail. Sorry about this.
@laniakea64 commented on GitHub (Dec 14, 2016):
... and with that information, problem solved. 😃
GTK themes in the Xephyrs are apparently controlled by KDE's GTK apperance settings. GTK 2 was set to Greybird, but GTK 3 was set to oxygen-gtk.
Fixed the GTK 3 setting and bam, Greybird GTK 3 theme in Xephyr, with and without firejail.
Not going to worry too much about the 'why'. It might have something to do with using Konsole as my terminal emulator. But whatever the reason, it works now.
Thanks netblue30.
@netblue30 commented on GitHub (Dec 15, 2016):
No problem, you gave me some ideas. From now I'll also move to LXDE inside xephyr, instead of the regular Openbox.