Until a few days ago unsion-gtk worked from within su, if the
appropriate rights were set, e.g. by issuing xhost -. Now, however,
this no longer works:
root@samd:~# DISPLAY=:0 unison-gtk backupmirror
No protocol specified
Uncaught exception Gtk.Error("GtkMain.init: initialization failed\nml_gtk_init: initialization failed")
Raised by primitive operation at file "gtkMain.ml", line 42, characters 1-14
Fatal error: exception File "/build/unison-jG3Alb/unison-2.48.4/uigtk2.ml", line 144, characters 14-20: Assertion failed
Raised at file "/build/unison-jG3Alb/unison-2.48.4/uigtk2.ml", line 144, characters 14-26
Called from file "/build/unison-jG3Alb/unison-2.48.4/uigtk2.ml", line 677, characters 27-46
Called from file "/build/unison-jG3Alb/unison-2.48.4/main.ml", line 241, characters 2-257
Called from file "/build/unison-jG3Alb/unison-2.48.4/linkgtk2.ml", line 19, characters 18-40
Plain unison, i.e. with -gtk, still works, however, is not
very user-friendly if lots of changes occured.