Slightly improve application registration management
Although it would be better to make full use of GApplication and thus
let the registration process be handled internally after calling
g_application_run()
, this at least eliminates
GLib-WARNING/GIO-CRITICAL at startup when running xfce4-clipman
.
This also fixes a segmentation fault when trying to add clipman as panel plugin when it is already running as status icon.
Edited by Gaël Bonithon