Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdgdesktopfile: Avoid freeze for DBusActivatable apps #182

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

palinek
Copy link
Contributor

@palinek palinek commented Apr 9, 2019

For case when the DBusActivatable application is unresponsive the
startDetached() can block for a long time (the Qt default 25s DBus
timeout). Blocking can't be avoided while using QDBusInterface, because
the object can block directly in its contructor.

So we use the generated interface class and set the timeout for the DBus
call to 1500ms (can be overriden env variable QTXDG_DBUSACTIVATE_TIMEOUT).

See also: https://bugreports.qt.io/browse/QTBUG-75016

fixes #181

For case when the DBusActivatable application is unresponsive the
startDetached() can block for a long time (the Qt default 25s DBus
timeout). Blocking can't be avoided while using QDBusInterface, because
the object can block directly in its contructor.

So we use the generated interface class and set the timeout for the DBus
call to 1500ms (can be overriden env variable QTXDG_DBUSACTIVATE_TIMEOUT).

See also: https://bugreports.qt.io/browse/QTBUG-75016
@palinek
Copy link
Contributor Author

palinek commented Apr 9, 2019

@luis-pereira please, take a look into the cmake part

@@ -1,3 +1,5 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With lxqt/lxqt-build-tools#46 it's not needed anymore.
But it doesn't hurts if it gets merged before lxqt/lxqt-build-tools#46. It can be removed later on.

@damianatorrpm
Copy link

Works amazing. Panel freezes only for QTXDG_DBUSACTIVATE_TIMEOUT amount of time and doesn't crash, in the background 25 sec later

error sending Activate message to application: Timeout was reached

@agaida
Copy link
Member

agaida commented Apr 10, 2019

GTM

@agaida agaida merged commit 7a0a262 into master Apr 10, 2019
@agaida agaida deleted the dbus_activate_introspec branch April 10, 2019 16:14
@agaida
Copy link
Member

agaida commented May 11, 2019

unblocked for debian buster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

launching app, crashes lxqt-panel
4 participants