Skip to content

Commit 590ec21

Browse files
committed
extension: don't trust D-Bus activation
Manually ensure the app is running before calling its actions. Both dbus-daemon and dbus-broker are somewhat broken: - https://gitlab.freedesktop.org/dbus/dbus/-/issues/458 - bus1/dbus-broker#314 Fixes #433
1 parent 9595c6c commit 590ec21

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ddterm/shell/extension.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,14 @@ function activate() {
416416
if (!window_manager.current_window)
417417
window_manager.update_monitor_index();
418418

419-
if (window_manager.current_window)
419+
if (window_manager.current_window) {
420420
Main.activateWindow(window_manager.current_window);
421-
else
421+
} else {
422+
if (!app_dbus.available)
423+
spawn_app();
424+
422425
app_dbus.action_group.activate_action('show', null);
426+
}
423427
}
424428

425429
function set_skip_taskbar() {

0 commit comments

Comments
 (0)