This bug is avoided if you choose the option No restart required in the Edit Command dialog. You can verify this in the file /etc/gdm/gdm.conf At the end of the file, you should see something like CustomCommandNoRestart0=true