Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Thu, 27 Sep 2018 06:08:56 +0300 sergio said: > On 26/09/2018 16:37, Carsten Haitzler (The Rasterman) wrote: > > > > > maybe we should provide some options in e to set these to specific values > > for user preferences > > e should check existence of these variables and do not redefine them > with default settings! history has been given as to why it does what it does, but for a better user experience it should just be a gui config option to select from a list and e just takes care of it so people don't need to know magic env vars and values. -- - Codito, ergo sum - "I code, therefore I am" -- Carsten Haitzler - ras...@rasterman.com ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 26/09/2018 16:37, Carsten Haitzler (The Rasterman) wrote: maybe we should provide some options in e to set these to specific values for user preferences e should check existence of these variables and do not redefine them with default settings! -- sergio. ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Mon, 24 Sep 2018 12:36:53 +0100 Mick said: > On Monday, 24 September 2018 12:07:48 BST Mick wrote: > > On Monday, 24 September 2018 06:34:35 BST Simon Lees wrote: > > > On 18/09/2018 23:59, Mick wrote: > > > > On Tuesday, 18 September 2018 11:27:35 BST sergio wrote: > > > >> On 18/09/2018 11:31, Mick wrote: > > > >>> Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside > > > >>> the > > > >>> GUI? In ~/.bashrc? Where could they be set for system wide settings? > > > >> > > > >> QT_STYLE_OVERRIDE is not specified. > > > >> > > > >> QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which > > > >> rewrites > > > > > > > >> nothing, and just adds: > > > > OK, this file is not installed in gentoo. > > > > > > > >> moreover, there is ~/.xsession for user settings > > > > > > > > I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got > > > > gtk2. > > > > Then, set it to a blank value using e's Settings/Advanced/Environment > > > > Variables and this time it took. However, I'm still no closer to having > > > > KDE applications launching with QT themes and icons, unless I launch > > > > them > > > > from within urxvt. > > > > > > Setting it from enlightenment's environment variable section should > > > work, the way its implemented at the moment is the least worst way we > > > could come up with to not have all users Qt apps broken by default. > > > > Yes, setting $QT_STYLE_OVERRIDE to a blank value using e's > > Settings/Advanced/ Environment Variables works in clearing the default gtk2 > > value. > > > > Adding the contents of the /etc/X11/Xsession.d/99qt5ct file Sergio mentioned > > also works in defining $QT_QPA_PLATFORMTHEME as qt5ct. > > > > What doesn't work is starting any KDE application and having it load the Qt > > theme I have selected. The only exception seems to be when I launch a KDE > > application from within urxvt, whereby the Qt theme is respected and loads > > as expected. > > > > The urxvt terminal output where Qt theme works is this: > > > > $ kwrite > > qt5ct: using qt5ct plugin > > QApplication: invalid style override passed, ignoring it. > > qt5ct: D-Bus global menu: no > > QXcbConnection: XCB error: 5 (BadAtom), sequence: 955, resource id: 0, major > > code: 19 (DeleteProperty), minor code: 0 > > > > > > While the terminology/xterm output where Qt theme is ignored is this: > > > > $ kwrite > > QApplication: invalid style override passed, ignoring it. > > Ha! Found the solution: > > Removed the /etc/X11/Xsession.d/99qt5ct file which is not installed by > default in Gentoo (may be a distro specific solution). > > Used e's GUI to set both an empty QT_STYLE_OVERRIDE and QT_QPA_PLATFORMTHEME > as qt5ct. Now Qt themes are recognised and loaded normally. :-) maybe we should provide some options in e to set these to specific values for user preferences - we set it to gtk2 as this was the most common that allows for the best seamless experience years ago. things change. so could someone do a write-up of what env vars need to be set to what values to get specific results? e.g. qt "kde look": QT_XXX_YYY=a QT_AAA_B=xyz qt "upstream qt5 look": QT_XXX_YYY=b QT_AAA_B=efg qt "mimic gtk2 look": QT_XXX_YYY=c QT_AAA_B=hij qt "mimic gtk3 look": QT_XXX_YY=d QT_AA_B=lmn ... you get the idea. so we can present a list of 3,4 or 5 options for qt app looks and then set env vars right. -- - Codito, ergo sum - "I code, therefore I am" -- Carsten Haitzler - ras...@rasterman.com ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Monday, 24 September 2018 12:07:48 BST Mick wrote: > On Monday, 24 September 2018 06:34:35 BST Simon Lees wrote: > > On 18/09/2018 23:59, Mick wrote: > > > On Tuesday, 18 September 2018 11:27:35 BST sergio wrote: > > >> On 18/09/2018 11:31, Mick wrote: > > >>> Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside > > >>> the > > >>> GUI? In ~/.bashrc? Where could they be set for system wide settings? > > >> > > >> QT_STYLE_OVERRIDE is not specified. > > >> > > >> QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which > > >> rewrites > > > > > >> nothing, and just adds: > > > OK, this file is not installed in gentoo. > > > > > >> moreover, there is ~/.xsession for user settings > > > > > > I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got > > > gtk2. > > > Then, set it to a blank value using e's Settings/Advanced/Environment > > > Variables and this time it took. However, I'm still no closer to having > > > KDE applications launching with QT themes and icons, unless I launch > > > them > > > from within urxvt. > > > > Setting it from enlightenment's environment variable section should > > work, the way its implemented at the moment is the least worst way we > > could come up with to not have all users Qt apps broken by default. > > Yes, setting $QT_STYLE_OVERRIDE to a blank value using e's > Settings/Advanced/ Environment Variables works in clearing the default gtk2 > value. > > Adding the contents of the /etc/X11/Xsession.d/99qt5ct file Sergio mentioned > also works in defining $QT_QPA_PLATFORMTHEME as qt5ct. > > What doesn't work is starting any KDE application and having it load the Qt > theme I have selected. The only exception seems to be when I launch a KDE > application from within urxvt, whereby the Qt theme is respected and loads > as expected. > > The urxvt terminal output where Qt theme works is this: > > $ kwrite > qt5ct: using qt5ct plugin > QApplication: invalid style override passed, ignoring it. > qt5ct: D-Bus global menu: no > QXcbConnection: XCB error: 5 (BadAtom), sequence: 955, resource id: 0, major > code: 19 (DeleteProperty), minor code: 0 > > > While the terminology/xterm output where Qt theme is ignored is this: > > $ kwrite > QApplication: invalid style override passed, ignoring it. Ha! Found the solution: Removed the /etc/X11/Xsession.d/99qt5ct file which is not installed by default in Gentoo (may be a distro specific solution). Used e's GUI to set both an empty QT_STYLE_OVERRIDE and QT_QPA_PLATFORMTHEME as qt5ct. Now Qt themes are recognised and loaded normally. :-) -- Regards, Mick ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Monday, 24 September 2018 06:34:35 BST Simon Lees wrote: > On 18/09/2018 23:59, Mick wrote: > > On Tuesday, 18 September 2018 11:27:35 BST sergio wrote: > >> On 18/09/2018 11:31, Mick wrote: > >>> Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside > >>> the > >>> GUI? In ~/.bashrc? Where could they be set for system wide settings? > >> > >> QT_STYLE_OVERRIDE is not specified. > >> > >> QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which rewrites > > > >> nothing, and just adds: > > OK, this file is not installed in gentoo. > > > >> moreover, there is ~/.xsession for user settings > > > > I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got gtk2. > > Then, set it to a blank value using e's Settings/Advanced/Environment > > Variables and this time it took. However, I'm still no closer to having > > KDE applications launching with QT themes and icons, unless I launch them > > from within urxvt. > > Setting it from enlightenment's environment variable section should > work, the way its implemented at the moment is the least worst way we > could come up with to not have all users Qt apps broken by default. Yes, setting $QT_STYLE_OVERRIDE to a blank value using e's Settings/Advanced/ Environment Variables works in clearing the default gtk2 value. Adding the contents of the /etc/X11/Xsession.d/99qt5ct file Sergio mentioned also works in defining $QT_QPA_PLATFORMTHEME as qt5ct. What doesn't work is starting any KDE application and having it load the Qt theme I have selected. The only exception seems to be when I launch a KDE application from within urxvt, whereby the Qt theme is respected and loads as expected. The urxvt terminal output where Qt theme works is this: $ kwrite qt5ct: using qt5ct plugin QApplication: invalid style override passed, ignoring it. qt5ct: D-Bus global menu: no QXcbConnection: XCB error: 5 (BadAtom), sequence: 955, resource id: 0, major code: 19 (DeleteProperty), minor code: 0 While the terminology/xterm output where Qt theme is ignored is this: $ kwrite QApplication: invalid style override passed, ignoring it. -- Regards, Mick ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 23:59, Mick wrote: > On Tuesday, 18 September 2018 11:27:35 BST sergio wrote: >> On 18/09/2018 11:31, Mick wrote: >>> Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside the >>> GUI? In ~/.bashrc? Where could they be set for system wide settings? >> >> QT_STYLE_OVERRIDE is not specified. >> >> QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which rewrites >> nothing, and just adds: > > OK, this file is not installed in gentoo. > >> moreover, there is ~/.xsession for user settings > > I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got gtk2. > Then, set it to a blank value using e's Settings/Advanced/Environment > Variables and this time it took. However, I'm still no closer to having KDE > applications launching with QT themes and icons, unless I launch them from > within urxvt. > Setting it from enlightenment's environment variable section should work, the way its implemented at the moment is the least worst way we could come up with to not have all users Qt apps broken by default. -- Simon Lees (Simotek)http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 17:29, Mick wrote: I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got gtk2. Yes, this is enlightenment bug! -- sergio. ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Tuesday, 18 September 2018 11:27:35 BST sergio wrote: > On 18/09/2018 11:31, Mick wrote: > > Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside the > > GUI? In ~/.bashrc? Where could they be set for system wide settings? > > QT_STYLE_OVERRIDE is not specified. > > QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which rewrites > nothing, and just adds: OK, this file is not installed in gentoo. > moreover, there is ~/.xsession for user settings I tried unsetting $QT_STYLE_OVERRIDE in ~.xsession, but I still got gtk2. Then, set it to a blank value using e's Settings/Advanced/Environment Variables and this time it took. However, I'm still no closer to having KDE applications launching with QT themes and icons, unless I launch them from within urxvt. -- Regards, Mick ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 11:31, Mick wrote: Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside the GUI? In ~/.bashrc? Where could they be set for system wide settings? QT_STYLE_OVERRIDE is not specified. QT_QPA_PLATFORMTHEME is from /etc/X11/Xsession.d/99qt5ct, which rewrites nothing, and just adds: # Enable qt5ct by default unless another PLATFORMTHEME option is set # or KDE is running. if [ -z "$QT_QPA_PLATFORMTHEME" ] && [ "$XDG_CURRENT_DESKTOP" != "KDE" ] then export QT_QPA_PLATFORMTHEME=qt5ct fi moreover, there is ~/.xsession for user settings -- sergio. ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Tuesday, 18 September 2018 02:08:47 BST sergio wrote: > On 18/09/2018 03:25, Simon Lees wrote: > > This was intentional, with nothing set > > QT_QPA_PLATFORMTHEME is set before enlightenment start. > > Please just don't redefine my environment! Where are QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE specified outside the GUI? In ~/.bashrc? Where could they be set for system wide settings? -- Regards, Mick ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 03:25, Simon Lees wrote: This was intentional, with nothing set QT_QPA_PLATFORMTHEME is set before enlightenment start. Please just don't redefine my environment! -- sergio. ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 04:08, sergio wrote: > > My e config is minimal. A few modules are loaded. Nothing in Settings -> > Advanced -> Environment Variables. Also I've inspected configs with vieet. > > enlightenment start from ~/.xsession with enlightenment_start > > If I replace enlightenment_start with xterm $QT_STYLE_OVERRIDE is not > set and $QT_QPA_PLATFORMTHEME is qt5ct. But just soon as I run > enlightenment_start it set both variables to gtk2 > > This was intentional, with nothing set when running Qt apps, Qt didn't know which engine to use so it was falling back to a very basic one which didn't load icons etc. GTK2 was chosen over KDE because at the time the gtk2 engine was installed with all Qt installs and enlightenment's dialog to set the "Application Theme" sets the GTK theme, and so with this was also applying to Qt applications. Since then much has changed so if someone wants to test and suggest a new default that will work better out of the box that would be great. qt5ct probably isn't an acceptable default as its generally not installed by default on distro's -- Simon Lees (Simotek)http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On 18/09/2018 02:03, Mick wrote: In Settings Panel/Advanced/Environment Variables I would also be interested to know if there is a fix for this. Just set QT_QPA_PLATFORMTHEME to qt5ct and unset QT_STYLE_OVERRIDE -- sergio. ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Re: [e-users] $QT_QPA_PLATFORMTHEME $QT_STYLE_OVERRIDE both set to gtk2
On Monday, 17 September 2018 19:38:20 BST sergio wrote: > My e config is minimal. A few modules are loaded. Nothing in Settings -> > Advanced -> Environment Variables. Also I've inspected configs with vieet. > > enlightenment start from ~/.xsession with enlightenment_start > > If I replace enlightenment_start with xterm $QT_STYLE_OVERRIDE is not > set and $QT_QPA_PLATFORMTHEME is qt5ct. But just soon as I run > enlightenment_start it set both variables to gtk2 In Settings Panel/Advanced/Environment Variables, I added the setting: XDG_SESSION_DESKTOP KDE The two variables you mention above are shown as: $ echo $QT_STYLE_OVERRIDE gtk2 $ echo $QT_QPA_PLATFORMTHEME qt5ct if I run the above in urxvt. However, when I run the same in xterm/ terminology, I get: $ echo $QT_STYLE_OVERRIDE gtk2 $ echo $QT_QPA_PLATFORMTHEME gtk2 In addition, when I launch a KDE application from the menu, e.g. kwrite, it has no application icons and the fonts are really small. If I launch the same application from urxvt, it launches with its icons and full theme. Trying to launch qt5ct from urxvt I get a popup complaining: Error: Please remove the QT_STYLE_OVERRIDE environment variable. >From xterm I get: Please remove the QT_STYLE_OVERRIDE environment variable The QT_QPA_PLATFORMTHEME environment variable is not set correctly In both cases qt5ct fails to launch. I suspect there has been some disconnect between e and Qt5 for some time now. I would also be interested to know if there is a fix for this. -- Regards, Mick ___ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users