Bug 474167

Summary: [wayland] Firefox launching with incorrect DPI & GTK theming
Product: [Unmaintained] lattedock Reporter: Ben Daines <benjamindaines>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: REPORTED ---    
Severity: normal CC: benjamindaines
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ben Daines 2023-09-05 01:21:48 UTC
SUMMARY
***
If I am using Wayland and I launch Firefox from latte, Firefox ignores my GTK theme settings and fires up with the default Adwatia theme and a slightly enlarged mouse pointer. However, if I launch Firefox from the plasma menu it fires up properly with my chosen theme and a properly scaled pointer. 
***


STEPS TO REPRODUCE
1.  Start Wayland Session
2.  Launch firefox from pinned app icon in Latte (make sure an instance of firefox is not already running)

OBSERVED RESULT
Firefox launches with incorrect DPI settings and with default Adwadia theme, ignoring set GTK theme from system settings

EXPECTED RESULT
Firefox should launch with correct DPI and theme according to system settings, as it does when launched from the application menu or other Plasma launcher. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.4.12-1-MANJARO (64-bit)
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Ben Daines 2023-11-06 22:54:40 UTC
Just mentioning that this is still an issue with the latest git build and I have still been unable to figure out why it's happening or found any kind of workaround for it.  I don't see anything in the Firefox.desktop file that looks suspicious to me.  Very strange.  If anyone has any ideas as to what I can poke around in to try to find a work around until this can be addressed, please let me know.  Thanks :) 

PS Latte is still the best dock / mouse-based launcher for KDE, and is (imo) essential to Plasma.

PPS Also, I would like to clarify that it is the entire Firefox UI that has the wrong DPI, not just the mouse cursor.  I am not sure that is clear from the initial posting. 

Linux/KDE Plasma: 6.5.5-1-MANJARO (64-bit)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Graphics Platform: Wayland (Mesa Intel HD Graphics 5500)