<?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[QDesktopServices::openUrl() not working if app closes]]></title><description><![CDATA[<p dir="auto">Hello! I am making an app similar to the Window 7 Run Dialog. For that, the file/folder/website/other is opened and the window closes.</p>
<p dir="auto">I have noticed that opening the file/folder/website via QDesktopServices::openUrl() works fine until I want to close the application immediately after. If I do that, the item to open is never opened. I thought this was an issue with the application portal (which may open for some file types), as I have found that is attached to my app's process for whatever reason. However, even with file types with default applications, they don't open if the app is closed after calling openUrl().</p>
<p dir="auto">Is there anything I can do about this, such as waiting for the portal/process to properly start before closing the app? Thanks</p>
]]></description><link>https://forum.qt.io/topic/165258/qdesktopservices-openurl-not-working-if-app-closes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 22:30:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165258.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Nov 2026 13:33:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QDesktopServices::openUrl() not working if app closes on Tue, 10 Nov 2026 20:57:37 GMT]]></title><description><![CDATA[<p dir="auto">Qt v6.12.0-4, Linux (EndeavourOS, KDE Plasma)<br />
I've looked at possibly using QProcess::startDetached() instead, but I don't know if that would open a file/folder/website with its default app in an easy cross-platform way</p>
]]></description><link>https://forum.qt.io/post/840872</link><guid isPermaLink="true">https://forum.qt.io/post/840872</guid><dc:creator><![CDATA[jayrickaby]]></dc:creator><pubDate>Tue, 10 Nov 2026 20:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to QDesktopServices::openUrl() not working if app closes on Tue, 10 Nov 2026 19:29:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Which OS are you on ?<br />
Which Qt version are you using ?</p>
<p dir="auto">Note, as the <a href="https://doc.qt.io/qt-6/qdesktopservices.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">QDesktopServices details</a> show, there's no guarantee that the application starts.</p>
]]></description><link>https://forum.qt.io/post/840868</link><guid isPermaLink="true">https://forum.qt.io/post/840868</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 10 Nov 2026 19:29:13 GMT</pubDate></item></channel></rss>