2

How can I make them modal? With modal I mean: The dialog should block the desktop so the user has only two options: Either cancel the dialog or enter text into it. (I want this basically because new windows might popup and can steal focus and additionally that other programs can access configuration files inside that container)

Background: I want to ask a passphrase after login for an encfs container. So either entering a pass, or continue with cancellation of this dialog.

Note: This is not a duplicate of modal dialog popup alarm, as I am interested especially in a solution to Zenity dialogs.

math
  • 2,693

1 Answers1

0

Assuming Linux since encfs is mentioned:

If by "login" you mean "graphical login" (which os reasonable since zenity is Gtk+ based), then one could put the test in ~/.xinitrc (or equivalent depending on window/login manager) without sending it to the background before the window manager is started. This would halt the process until the test has returned.