You are not logged in.

#1 2023-10-04 00:33:53

25pwn
Member
Registered: 2023-01-22
Posts: 26

[SOVLED] Broken GTK_USE_PORTAL

I've been using GTK_USE_PORTAL=1 to make some apps use my DE's native dialogs for years.

Recently, after updating, some apps use adwaita, have no font anti-aliasing etc. It still uses the native dialogs though. GTK_USE_PORTAL=0 fixes this but some apps no longer use the native dialogs.

Where should I report this regression? Is there a workaround for this?

Last edited by 25pwn (2023-10-05 12:28:05)

Offline

#2 2023-10-04 05:16:46

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOVLED] Broken GTK_USE_PORTAL

Gtk 4 no longer uses this variable, see https://gitlab.gnome.org/GNOME/gtk/-/bl … 2/NEWS#L34

Also, Gtk considers this variable an internal debugging tool mit an official configuration switch, see https://gitlab.gnome.org/GNOME/gtk/-/is … te_1592559 so if you're having issues with it you're likely on your own.

Offline

#3 2023-10-04 10:33:01

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 69

Re: [SOVLED] Broken GTK_USE_PORTAL

I am experiencing the same behaviour under Firefox stable, Firefox Nightly still applies the right theme even with GTK_USE_PORTAL=1 is set.

Offline

#4 2023-10-04 11:49:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOVLED] Broken GTK_USE_PORTAL

Did you see the link in #2 and attempt GDK_DEBUG=portals ?

Online

#5 2023-10-04 11:59:40

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: [SOVLED] Broken GTK_USE_PORTAL

johan.cb wrote:

I am experiencing the same behaviour under Firefox stable, Firefox Nightly still applies the right theme even with GTK_USE_PORTAL=1 is set.

For me, Firefox stable uses the right theme but Nightly doesn't. It's been less than a week since Nightly started to have this issue.

Offline

#6 2023-10-04 12:32:44

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: [SOVLED] Broken GTK_USE_PORTAL

seth wrote:

Did you see the link in #2 and attempt GDK_DEBUG=portals ?

It did not do anything.

Offline

#7 2023-10-04 12:57:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOVLED] Broken GTK_USE_PORTAL

https://aur.archlinux.org/packages/firefox-nightly would still use GTK3, though apparently this is also just about the theme?
Do/did you previously set GTK_USE_PORTAL at all?

Online

#8 2023-10-05 00:57:55

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: [SOVLED] Broken GTK_USE_PORTAL

seth wrote:

https://aur.archlinux.org/packages/firefox-nightly would still use GTK3, though apparently this is also just about the theme?
Do/did you previously set GTK_USE_PORTAL at all?

I've had GTK_USE_PORTAL=1 since approx. firefox 96/2 years ago.

Offline

#9 2023-10-05 06:32:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: [SOVLED] Broken GTK_USE_PORTAL

Sorry, I confused you w/ johan.cb

When you said "some apps use adwaita, have no font anti-aliasing etc", is that limited to FF nightly?
Can you list a couple of the affected clients that
a) use the wrong™ theme w/ GTK_USE_PORTAL=1
b) don't use the DE dialogs w/ GTK_USE_PORTAL=0 ?

Online

#10 2023-10-05 12:26:32

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: [SOVLED] Broken GTK_USE_PORTAL

seth wrote:

Sorry, I confused you w/ johan.cb

When you said "some apps use adwaita, have no font anti-aliasing etc", is that limited to FF nightly?
Can you list a couple of the affected clients that
a) use the wrong™ theme w/ GTK_USE_PORTAL=1
b) don't use the DE dialogs w/ GTK_USE_PORTAL=0 ?

An update fixed this, but:

a) Firefox Nightly, OpenTabletDriver, gedit
b) Firefox Nightly, Visual Studio Code

Offline

#11 2023-10-05 12:27:31

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: [SOVLED] Broken GTK_USE_PORTAL

An update fixed this

Offline

Board footer

Powered by FluxBB