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

With zenity >= 3.90.0 xxx is not responding window no longer shows #755

Open
bobby285271 opened this issue May 6, 2023 · 0 comments
Open

Comments

@bobby285271
Copy link
Contributor

bobby285271 commented May 6, 2023

Expected behaviour

Support zenity >= 3.90.0

Actual behaviour

Not supporting zenity >= 3.90.0

Or e.g. when a program freeze the xxx is not responding window no longer shows, but I expect everything that uses zenity are probably affected but I haven't tried all of them.

Steps to reproduce the behaviour

  1. Have zenity >= 3.90.0 in PATH - repology shows openSUSE Tumbleweed and Fedora 38 should have this
  2. Build and run the following program:
#include <gtk/gtk.h>

static void on_activate (GtkApplication *app) {
  GtkWidget *window = gtk_application_window_new (app);
  GtkWidget *button = gtk_button_new_with_label ("Hello, World!");
  g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_close), window);
  gtk_window_set_child (GTK_WINDOW (window), button);
  gtk_window_present (GTK_WINDOW (window));
  // Yeah we add an inf loop here
  while(1);
}

int main (int argc, char *argv[]) {
  GtkApplication *app = gtk_application_new ("com.example.GtkApplication",
                                             G_APPLICATION_FLAGS_NONE);
  g_signal_connect (app, "activate", G_CALLBACK (on_activate), NULL);
  return g_application_run (G_APPLICATION (app), argc, argv);
}
  1. Keep trying to close the app by constantly clicking the close button in the headerbar, this app should freeze when closing, this is expected
  2. Check journal journalctl -r and see This option is not available. Please see --help for all possible usages.

In zenity 3.44.x there should be a dialog like this but you don't see it with zenity >= 3.90.0:

MATE general version

1.26

Package version

1.26.2 but I guess this is not fixed on master also

Linux Distribution

NixOS unstable

Link to bugreport of your Distribution (requirement)

Hmmm, I package the recent zenity and mate updates in NixOS?


Here are some copy paste from linuxmint/muffin#666:

In util.c we use zenity to show dialogs in command-line:

argvl[i++] = "zenity";

With zenity >= 3.90.0 some of the options used are removed/deprecated, and we probably want to get rid of it.

Examples are:

argvl[i++] = "--class";

--class no longer working: zenity --info --class "marco-dialog" shows This option is not available. Please see --help for all possible usages.

See also

User of meta_show_dialog: https://github.com/search?q=org%3Amate-desktop%20meta_show_dialog&type=code, e.g. the xxx is not responding window:

meta_show_dialog ("--question",

Edit: ah also meta_show_entry_dialog: https://github.com/search?q=org%3Amate-desktop+meta_show_entry_dialog&type=code

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

No branches or pull requests

1 participant