D-Bus timeout after executing the command at least once
- Set a valid command, e.g.
/usr/bin/true
- Move the slider at least once
- Right click on the plugin to show the context menu
The menu does not appear, or rather it appears after the 25 seconds of D-Bus timeout, with this warning
xfce4-panel-wrapper-WARNING **: 11:55:34.686: ProviderSignal call failed: Timeout was reached
The reason seems to be the way to spawn processes. This fixes the problem for me, but maybe you want to do something else, complete, etc:
diff --git a/panel-plugin/generic-slider.c b/panel-plugin/generic-slider.c
index e5e4f3a..e847404 100644
--- a/panel-plugin/generic-slider.c
+++ b/panel-plugin/generic-slider.c
@@ -133,21 +133,7 @@ static gint timer_cb(Generic_Slider *generic_slider) {
}
static void execute_command(char *command) {
- pid_t pid;
- gchar **arglist;
-
- if (!g_shell_parse_argv(command, NULL, &arglist, NULL)) return;
-
- /* Forks */
-
- pid = fork();
- if (pid == 0) {
- g_strfreev(arglist);
- wait(NULL);
- } else {
- execvp(arglist[0], arglist);
- perror("execvp");
- }
+ g_spawn_command_line_sync(command, NULL, NULL, NULL, NULL);
}
static gint scroll_slider_cb(GtkWidget *widget, GdkEventScroll *event, GList *stupid_hack) {