PCMan / gtk3-nocsd

A hack to disable gtk+ 3 client side decoration
GNU Lesser General Public License v2.1
320 stars 41 forks source link

Only working in terminal #72

Open noavolution opened 1 year ago

noavolution commented 1 year ago

Hi,

I followed the README instructions (on fedora 36) and put

export GTK_CSD=0
export LD_PRELOAD=<"full path" of your libgtk3-nocsd.so.0 file>

into my .bashrc. But it only works when I launch my apps from the terminal. How would I need to configure it to also work when launching apps from, for example, rofi?

Thanks in advance!

quacoo1 commented 1 year ago

Hello, Did you put the actual path to your libgtk3-nocsd.so.0 file?

Something like:

export LD_PRELOAD="/snap/gnome-42-2204/29/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0"
josvanr commented 1 year ago

Hello!

I'm not exactly sure how it works on your system, but I use lightdm as display manager, and that reads ~/.xsessionrc before starting, you can set the environment variables there:

export GTK_CSD=0 export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0

or whatever the location of your library is. Then after logging in again, it will work for all apps !