You are not logged in.
Pages: 1
This is how Gedit looks when executed by my user:
This is how Gedit looks when executed as root user:
I'd like much more in this way, without the hederbar, but I can't figure out what I have to add to ~/.config/gtk-3.0/gtk.css
Offline
This is not a css thing. This is a CSD(client side decoration) thing. Do you have gtk3-nocsd installed? Not sure why it's rendered differently between root and user?
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
Do you have gtk3-nocsd installed
Yes.
However: in gtk.css I am able to change/hide/remove the text of the headerbar, by using:
headerbar {
color: transparent
}
There is also a way to reduce the weight to 0px?
Last edited by D.dave (Yesterday 12:41:32)
Offline
Try adding GTK_CSD=1 to /etc/environment and restart. (I think that's the line. Going from memory)
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
Try adding GTK_CSD=1 to /etc/environment
This broke the titlebar of my theme; in facts, I use gtk3-nocsd and GTK_CSD=0: in this way, gedit, use the title bar of my theme; but as you can see in the screenshots, gedit executed as root, doesn't have the headerbar.
Offline
I would check in /root directory for either .profile or in .bashrc to see if something is set there making it different between root and user.
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
check in /root directory for either .profile or in .bashrc
Nothing special: there are the same things that I have set for my user
The funny thing is: that, if as root I execute GTK_CSD=1 gedit, gedit still doesn't have the headerbar
EDIT: I've found a partial solution/workaround: I edited the Gedit launcher/.desktop file as following:
bash -c "LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so GTK_CSD=0 GTK_THEME=Greybird-dark gedit"
In this way, is started like as root, without the headerbar:
EDIT 2:
I also made a bash script: ~/.local/bin/gedit, with the following content:
export LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so
export GTK_CSD=0
export GTK_THEME=Greybird-dark
LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so GTK_CSD=0 GTK_THEME=Greybird-dark /usr/bin/gedit $1
And in mime-types, I choosed this script for opening text files; otherwise, Gedit is normally started without the workaround.
Last edited by D.dave (Today 12:32:31)
Offline
Pages: 1
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 556.85 KiB (Peak: 557.48 KiB) ]