diff options
author | Theo Linkspfeifer <lastonestanding@tutanota.com> | 2020-07-10 12:00:04 +0200 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2020-09-06 18:47:01 +0200 |
commit | 962c201964c3f7f47838b3a35b6e4c3a2cc26a87 (patch) | |
tree | c90cdfb50170eaa912ffb5154fd11f3d7472ff97 /exo-open | |
parent | b848a75ea1071087acc4f02f4c13a264a4ff1da4 (diff) | |
download | exo-962c201964c3f7f47838b3a35b6e4c3a2cc26a87.tar.gz |
exo-open: Change priority of command line parameters (Fixes #20)
Diffstat (limited to 'exo-open')
-rw-r--r-- | exo-open/main.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/exo-open/main.c b/exo-open/main.c index a140c11..1f99131 100644 --- a/exo-open/main.c +++ b/exo-open/main.c @@ -495,24 +495,7 @@ main (gint argc, gchar **argv) gtk_window_set_default_icon_name ("preferences-desktop-default-applications"); /* check what to do */ - if (G_UNLIKELY (opt_help)) - { - usage (); - } - else if (G_UNLIKELY (opt_version)) - { - g_print ("%s %s\n\n", g_get_prgname (), PACKAGE_VERSION); - g_print (_("Copyright (c) %s\n" - " os-cillation e.K. All rights reserved.\n\n" - "Written by Benedikt Meurer <benny@xfce.org>.\n\n"), - "2005-2007"); - g_print (_("%s comes with ABSOLUTELY NO WARRANTY,\n" - "You may redistribute copies of %s under the terms of\n" - "the GNU Lesser General Public License which can be found in the\n" - "%s source package.\n\n"), g_get_prgname (), g_get_prgname (), PACKAGE_TARNAME); - g_print (_("Please report bugs to <%s>.\n"), PACKAGE_BUGREPORT); - } - else if (G_LIKELY (opt_launch != NULL)) + if (G_LIKELY (opt_launch != NULL)) { if (argc > 1) { @@ -612,6 +595,23 @@ main (gint argc, gchar **argv) g_free (uri); } } + else if (G_UNLIKELY (opt_help)) + { + usage (); + } + else if (G_UNLIKELY (opt_version)) + { + g_print ("%s %s\n\n", g_get_prgname (), PACKAGE_VERSION); + g_print (_("Copyright (c) %s\n" + " os-cillation e.K. All rights reserved.\n\n" + "Written by Benedikt Meurer <benny@xfce.org>.\n\n"), + "2005-2007"); + g_print (_("%s comes with ABSOLUTELY NO WARRANTY,\n" + "You may redistribute copies of %s under the terms of\n" + "the GNU Lesser General Public License which can be found in the\n" + "%s source package.\n\n"), g_get_prgname (), g_get_prgname (), PACKAGE_TARNAME); + g_print (_("Please report bugs to <%s>.\n"), PACKAGE_BUGREPORT); + } else { result = EXIT_FAILURE; |