<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi Nyall</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I just upgraded my laptop to fedora 35 last week. Will wait a few more weeks before doing my desktop too. I will definitely do your debuginfod tip. The file chooser, yes is irritating but I guess it is one I will just live with for now since I have some flatpak apps and the fix seems invasive. The inactive elements colouring hasnt really bothered me till now so I guess I will keep trucking along.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">One other funny thing I found is that the qscintilla library name was changed to have an underscore rather than a hyphen e.g.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">from</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">/usr/lib64/libqscintilla2-qt5.so<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">to</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">/usr/lib64/libqscintilla2_qt5.so<br></div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Otherwise the migration was very smooth. Are you running under wayland? I am still using x11 because none of the video conferencing apps I use work under wayland. Is there any particular benefit to using Wayland for QGIS that I am missing out on?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks for this!</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Tim</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 16, 2022 at 11:33 PM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list,<br>
<br>
Been hitting some pain points with using/developing QGIS under Fedora<br>
recently, so I thought I'd summarise the solutions I've found for<br>
these issues here in case they are of use to anyone else!<br>
<br>
(Quite possibly these issues also affect other Linux distros too)<br>
<br>
Messed up file open/save dialog window stacking<br>
-----<br>
The issue here is that file dialogs (like the open/save file dialogs)<br>
will frequently open BEHIND the parent window. This one isn't a<br>
paper-cut, it's a full-on amputated limb and was driving me insane.<br>
<br>
The root cause of this is that the gtk implementation of the "file<br>
chooser" portal specification is buggy, at least for Qt applications.<br>
I couldn't solve this one, couldn't get upstream to acknowledge, so I<br>
gave up and found the following hacky solution which completely<br>
disables the file chooser portal for the system.<br>
<br>
Edit /usr/share/xdg-desktop-portal/portals/gtk.portal as root, and<br>
remove the "org.freedesktop.impl.portal.FileChooser;" string from the<br>
"Interfaces=" line.<br>
<br>
This will force the system to use the standard GTK file chooser<br>
instead of the sandboxed portal one. It fixes the broken file dialog<br>
window stacking (yay!) but as a side effect will completely break ALL<br>
file dialogs used by sandboxed (e.g. flatpak) applications.<br>
<br>
For me that's an acceptable compromise (I don't use any flatpak<br>
applications).. but make your own judgement call here :)<br>
<br>
(As an added bonus: the file chooser portal specification is quite<br>
limited, and doesn't support things like showing a "save as" file<br>
dialog which **doesn't** warn about overriding existing files. As a<br>
result things don't work nicely in QGIS, and you'll get UI gremlins<br>
like the "save vector layer" dialog incorrectly warning that an<br>
existing GPKG file will be overwritten even though you're only<br>
appending a new layer to that file, not overwriting it).<br>
<br>
<br>
Debug sessions of QGIS just "hang"<br>
----<br>
<br>
I noticed this one after upgrading to Fedora 35. Trying to run any<br>
session of QGIS under a debug environment (eg. gdb) just resulted in a<br>
hang at startup.<br>
<br>
I tracked this one down to this change:<br>
<a href="https://fedoraproject.org/wiki/Changes/DebuginfodByDefault" rel="noreferrer" target="_blank">https://fedoraproject.org/wiki/Changes/DebuginfodByDefault</a>, where<br>
Fedora 35 enables "debuginfod" by default.<br>
<br>
debuginfod is supposed to be a helpful thing which downloads debug<br>
info on demand. The "hang" during startup of QGIS debug is actually<br>
just debuginfod trying to download all the debug info for libraries<br>
used by QGIS. BUT... it's an INSANE amount of data it's trying to<br>
download. debuginfod is trying to download debug info for every single<br>
library used by QGIS recursively. Which results in it trying to even<br>
download debug info for webkit, which is so large that I could never<br>
get the download to ever complete!!! Even worse, debuginfod defaults<br>
to auto-deleting all downloaded debug info on a weekly basis.... so if<br>
you were super-patient and waited for this to download then you'll<br>
just have to go through the same thing again in a week.<br>
<br>
Solution: disable debuginfod, by unsetting the DEBUGINFOD_URLS<br>
environment variable. Debug sessions of QGIS will start just like they<br>
always used to.<br>
<br>
<br>
Bad coloring of unfocused UI elements<br>
------<br>
There's an annoying issue under recent gnome/gtk releases where<br>
unfocused UI elements in Qt applications are incorrectly styled with<br>
the "inactive window" coloring. This results in widgets like lists,<br>
tree views, and dock child widgets showing as though they are disabled<br>
whenever they aren't the currently focused widget. (It's described<br>
upstream here <a href="https://github.com/FedoraQt/adwaita-qt/issues/126" rel="noreferrer" target="_blank">https://github.com/FedoraQt/adwaita-qt/issues/126</a>)<br>
<br>
I couldn't find a proper fix for this one, so I've just submitted a<br>
gross hack to QGIS to completely disable the inactive window coloring<br>
on these environments (<a href="https://github.com/qgis/QGIS/pull/46847" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/pull/46847</a>). This<br>
hack will fix the theming on QGIS 3.24+.<br>
<br>
<br>
Hope those tips are of use to someone!<br>
<br>
Nyall<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="text-align:center">------------------------------------------------------------------------------------------</div><div style="text-align:center"><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small;display:inline"></div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=7ebbf93252&view=fimg&th=15a9e43c0bbf93ca&attid=0.1&disp=emb&realattid=9436e64174762963_0.1.1&attbid=ANGjdJ-WL_J24nvBiYidJ0V0xpdsYqRwswi5nq5oywcJEHC7twYVMrxG0y-GNPu_ahJthV8ktXwYuHoVm5DI2FrRAtPzelTRHrsE2wweR9uu8wT-zz2hNRqFwi4SorQ&sz=s0-l75-ft&ats=1488721675176&rm=15a9e43c0bbf93ca&atsh=1" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;"><br></div><div style="text-align:center">Tim Sutton</div><div style="text-align:center"><span style="text-align:start">Visit </span><a href="http://kartoza.com/" style="text-align:start" target="_blank">http://kartoza.com</a><span style="text-align:start"> to find out about open source:</span><br style="text-align:start"><span style="text-align:start"> * Desktop GIS programming services</span><br style="text-align:start"><span style="text-align:start"> * Geospatial web development</span></div><div style="text-align:center"><span style="text-align:start">* GIS Training</span></div><div style="text-align:center"><span style="text-align:start">* Consulting Services</span></div><div style="text-align:center"><div style="text-align:center"></div><div style="text-align:start"><div style="text-align:center">Tim is a member of the QGIS Project Steering Committee</div><div style="text-align:center">-------------------------------------------------------------------------------------------</div></div></div></div></div></div></div>