lxqt / lxqt-session

The LXQt session manager
https://lxqt.github.io
GNU Lesser General Public License v2.1
55 stars 52 forks source link

Adding more Qt env vars? #503

Open stefonarch opened 4 months ago

stefonarch commented 4 months ago

Looking at plasma 6 I found those, added explanations I found. Maybe some of them could or should be added in startlxqt. The last one could be interesting for mobile maybe.

QT_ACCESSIBILITY=1

The QT_ACCESSIBILITY environment variable, when set to 1, enables accessibility features in Qt-based applications. These features are designed to improve usability for individuals with disabilities by providing support for assistive technologies such as screen readers and magnifiers.

QT_EXCLUDE_GENERIC_BEARER=1

The QT_EXCLUDE_GENERIC_BEARER environment variable, when set to 1, excludes the generic network bearer plugin in Qt applications. This plugin is responsible for managing network connections in a platform-independent manner. By excluding it, Qt applications may rely solely on platform-specific network plugins, potentially optimizing performance or compatibility in certain environments.

QT_AUTO_SCREEN_SCALE_FACTOR=0

The QT_AUTO_SCREEN_SCALE_FACTOR environment variable, when set to 0, disables automatic scaling of the user interface based on the screen's pixel density or resolution in Qt applications. This means that the application won't automatically adjust its interface elements to match the screen's characteristics, allowing developers more control over how the UI is displayed on different screens.

tsujan commented 4 months ago

I don't know about the other EVs, but a nonzero value for QT_AUTO_SCREEN_SCALE_FACTOR can cause a hassle. I agree with adding all of them.

tsujan commented 4 months ago

I didn't find QT_AUTO_SCREEN_SCALE_FACTOR for Qt6: https://doc.qt.io/qt-6/highdpi.html#environment-variable-reference

@stefonarch, do you have Qt6 links for the other two?

stefonarch commented 4 months ago

Looks like bearer is removed? https://forum.qt.io/topic/122926/qt-5-to-6-and-bearer-management https://doc.qt.io/qt-6/network-changes-qt6.html#bearer-management-is-removed

Looks like QT_AUTO_SCREEN_SCALE_FACTOR is qt5 only too: https://doc.qt.io/qt-5/highdpi.html

I saw this in qt6: QT_USE_PHYSICAL_DPI=1

But as there will be qt5 apps adding them with comments?

tsujan commented 4 months ago

Then I guess there remains nothing to do.

With LXQt 2.0, Qt5 apps will be supported well as long as the user installs or doesn't remove the latest Qt5-based lxqt-qtplugin, libqtxdg and libfm-qt. That was the plan we agreed on from the start, without supporting Qt5 in new codes themselves.