Skip to content
Snippets Groups Projects
Commit 33787395 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

Make it clear daemon is no more available


By displaying a message in the daemon option is passed.

Signed-off-by: default avatarOlivier Fourdan <fourdan@xfce.org>
parent fa640cf4
No related branches found
No related tags found
No related merge requests found
......@@ -463,6 +463,16 @@ compositor_callback (const gchar *name,
}
#endif /* HAVE_COMPOSITOR */
static gboolean
daemon_callback (const gchar *name,
const gchar *value,
gpointer user_data,
GError **error)
{
g_warning ("Option 'daemon' is now removed and has no effect!");
return TRUE;
}
static int
initialize (gint compositor_mode, gboolean replace_wm)
{
......@@ -601,7 +611,6 @@ init_pango_cache (void)
int
main (int argc, char **argv)
{
gboolean daemon_mode = FALSE;
gboolean version = FALSE;
gboolean replace_wm = FALSE;
int status;
......@@ -613,7 +622,7 @@ main (int argc, char **argv)
#endif
GOptionEntry option_entries[] =
{
{ "daemon", '\0', 0, G_OPTION_ARG_NONE, &daemon_mode, N_("Fork to the background (not supported)"), NULL },
{ "daemon", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, daemon_callback, N_("Fork to the background (not supported)"), NULL },
#ifdef HAVE_COMPOSITOR
{ "compositor", '\0', 0, G_OPTION_ARG_CALLBACK, compositor_callback, N_("Set the compositor mode"), "on|off|auto" },
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment