Bug 1371739 - Latest qt5ct won't start
Summary: Latest qt5ct won't start
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qt5ct
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christian Dersch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-31 01:27 UTC by Jim
Modified: 2017-01-25 15:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-25 15:41:06 UTC
Type: Bug


Attachments (Terms of Use)

Description Jim 2016-08-31 01:27:57 UTC
Description of problem:
When run from the Xfce menu gives an error "The QT_QPA_PLATFORMTHEME environment variable is not set correctly" and doesn't run

Version-Release number of selected component (if applicable):
0.25.1

How reproducible:
Always

Steps to Reproduce:
1.select Qt5 Settings from the Xfce menu
2.
3.

Actual results:
gives error and doesn't run

Expected results:
application will open

Additional info:
downgrading to version 0.23.1 solves the problem.

alternatively entering the following in a terminal will allow the application to run from terminal
export QT_QPA_PLATFORMTHEME=qt5ct

export QT_PLATFORMTHEME=qt5ct

export QT_PLATFORM_PLUGIN=qt5ct

Comment 1 Christian Dersch 2016-09-01 09:59:03 UTC
The behavior is correct, that's the way how Qt5 platform support works. Qt reads there environment variables and uses the values shipped by the plugin. Technically qt5ct is such a plugin, so changes made in qt5ct only work if the environment variables are set. But I do not set these by default, as the user might also have other platform like LXQt. So variables would conflict. 

Have to check what the best solution is. Maybe some script in /etc/profile.d which sets these variables if not yet set. But I have to check possible conflicts.

Comment 2 Jim 2016-09-01 22:32:18 UTC
(In reply to Christian Dersch from comment #1)
> The behavior is correct, that's the way how Qt5 platform support works. Qt
> reads there environment variables and uses the values shipped by the plugin.
> Technically qt5ct is such a plugin, so changes made in qt5ct only work if
> the environment variables are set. But I do not set these by default, as the
> user might also have other platform like LXQt. So variables would conflict. 
> 
> Have to check what the best solution is. Maybe some script in /etc/profile.d
> which sets these variables if not yet set. But I have to check possible
> conflicts.

Thanks for the explanation.


Note You need to log in before you can comment on or make changes to this bug.