<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with wayand]]></title><description><![CDATA[A list of topics that have been tagged with wayand]]></description><link>https://forum.qt.io/tags/wayand</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 16:09:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/tags/wayand.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[qtcreator and QT apps fail to launch in CentOS with root privilege]]></title><description><![CDATA[@kevinguo said in qtcreator and QT apps fail to launch in CentOS with root privilege:

Hi:
I am using CentOS 8.1. For some reason, I must run my app with root permission. I tried
#sudo myapp
or
#sudo su
#myapp
Both failed with following output:
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :1
Could not connect to any X display.
Then I tried launching qtcreator, but failed with the same error.
Please note that I am able to launch QT apps in Ubuntu 18.04 with root permission in the same way. Ubuntu outputs the following warning but continues to run the app:
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
The failing platform is CentOS 8.1. The XWindows is wayland.
Now, the workaround is to log in GUI with root user name. But I still prefer logging in as normal user then run app in sudo mode.
I appreciate if anyone gives some advice.
Kevin

I found the solution already. Just run this:
xhost +SI:localuser:root
Thanks
Kevin
]]></description><link>https://forum.qt.io/topic/118527/qtcreator-and-qt-apps-fail-to-launch-in-centos-with-root-privilege</link><guid isPermaLink="true">https://forum.qt.io/topic/118527/qtcreator-and-qt-apps-fail-to-launch-in-centos-with-root-privilege</guid><dc:creator><![CDATA[kevinguo]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>