You are not logged in.
Pages: 1
Hello guys, I'm trying to setup my first i3 rice and I'm having some trouble fixing the Firefox bug with dark GTK3 themes.
I tried the solutions on Arch Wiki, heck, I've even tried editing directly /usr/share/applications/firefox.desktop as sudo.
But it didn't work.
Tried as:
Exec=GTK_THEME=Arc /usr/bin/firefox/firefox
Exec=env GTK_THEME=Arc /usr/bin/firefox/firefox
and a few others.
I've even restarted my computer after each change to make sure...
Can you guys help me?
Thanks \o/
Last edited by IceS2 (2017-12-26 14:08:34)
Offline
Remove the redundant plea for help from your title: https://wiki.archlinux.org/index.php/Co … ow_to_post
Moving to NC...
Offline
Sorry, thought it was OK on the other forums ;P
Offline
This place is not run like other forums. Read the entire Code of Conduct, it will save you from issues in future.
Offline
Could you pls try opening some other applications using the same GTK stuff, to make sure if it is firefox that is the problem or if we need to look elsewhere for a solution..?
I could very likely be some library or color setting missing in the theme itself instead.
Last edited by brynildsen (2017-12-24 07:11:30)
Offline
Hey brynildsen, It's a well known Firefox bug for what I saw (It uses my GTK theme, but a few elements get screwed up). My problem here is that I can't modify firefox configuration in order to open it with the theme I want. It just works when I open firefox by running that command from the terminal.
I wanted to make firefox automatically open with the selected theme like it's told in https://wiki.archlinux.org/index.php/fi … .2B_themes (The alternative way)
Offline
You get the results you want when opening Firefox from a terminal, correct? Sounds like an environment variable issue. Try exporting in the earliest possible place.
Offline
That might make sense, although I think using it on the last possible place makes more sense because it should overwrite the first set up variable, shouldn't it?
Any idea where Firefox sets that variable? Thanks!
Offline
i'd rather check the firefox process environment on whether that var is set at all.
How do you suppose to invoke the relevant desktop service? You launcher might ignore it altogether ...
Offline
Hey seth, I'm so sorry, but I literally understood nothing from what you said ><
Offline
You suggested it works when you run "env GTK_THEME=Arc /usr/bin/firefox/firefox" from an interactive shell.
So the question is how you run it otherwise.
tr '\0' '\n' < /proc/_PID_OF_FIREFOX_/environ | grep GTKshould print the environment that is passed to the firefox process, replace _PID_OF_FIREFOX_ with the actual numeric PID.
Offline
Try
Exec="sh -c 'GTK_THEME=Arc /usr/bin/firefox/firefox'"
Not sure about the proper quote notation here though. Just change them if it doesn't work.
sys2064
Offline
Seth, the only GTK environmental variables set for firefox when running it from rofi are:
GTK_IM_MODULE=gtk-im-context-simple
GTK_MODULES=canberra-gtk-module
I'll try out Maniaxx solution now and see how it goes!
Offline
Well Maniaxx, I'm starting to think that the file I'm changing ain't doing nothing.
Tried with every quote notation possible and rofi still starts firefox, but it always starts it with my dark theme.
Offline
running it from rofi are
And what makes you believe rofi is operating on the desktop services?
Afaiu it's a dmenu clone, so it will most likely operate on a pre-build list of entries.
=> You got to rebuild them somehow (but i've not used rofi myself so far)
Offline
I see.... I have no idea that's the way dmenu worked. How can I test if firefox.desktop modifications are working, seth?
Edit: Ok Seth that seems to be the problem. Running
Rofi -show run doesn't read desktop entry.
If I run rofi as
i3-dmenu-desktop --dmenu='rodi-dmenu' it actually reads the desktop entry!
I actually prefer to run rofi -show run, but I need to see if there's a way to change the theme for it.
Last edited by IceS2 (2017-12-26 13:59:43)
Offline
i've not used rofi myself so far
...
Looking at rofi's homepage, it runs either binaries directly OR desktop services, so you should ensure to operate it in the proper mode.
Also just make the desktop service run eg. xterm. If you're still running firefox, you can be sure you're not starting this desktop service.
Offline
Seth, thank you so much!!!!!
Mainly because you put up with my noobish self!
You're awesome \o/
Managed to solve it by running
rofi -show drunIt works just as
rofi -show runBut if there's a menu entry it uses it!!!
Offline
Pages: 1