summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-08-27 02:17:17 +0200
committerportix <none@none>2012-08-27 02:17:17 +0200
commit1cf1686b8c65050aa4785bb80b3ee6b3c1f14108 (patch)
tree1647e2e5c7cbfe8ae4a2e85b4c4e083684458f57 /src
parent7fbea9b18e8f644a17cb2f5faefaeb7695002f4e (diff)
downloaddwb-1cf1686b8c65050aa4785bb80b3ee6b3c1f14108.zip
More information in dwb_version
Diffstat (limited to 'src')
-rw-r--r--src/application.c7
-rw-r--r--src/dwb.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/src/application.c b/src/application.c
index 6de46750..bc705de8 100644
--- a/src/application.c
+++ b/src/application.c
@@ -165,9 +165,6 @@ dwb_application_local_command_line(GApplication *app, gchar ***argv, gint *exit_
if (m_opt_exe != NULL)
argc_exe = g_strv_length(m_opt_exe);
- dwb_init_vars();
- dwb_init_files();
- dwb_init_settings();
if (m_opt_list_sessions) {
session_list();
return true;
@@ -176,6 +173,10 @@ dwb_application_local_command_line(GApplication *app, gchar ***argv, gint *exit_
dwb_version();
return true;
}
+ dwb_init_vars();
+ dwb_init_files();
+ dwb_init_settings();
+
single_instance = GET_BOOL("single-instance");
if (m_opt_single || !single_instance) {
g_application_set_flags(app, G_APPLICATION_NON_UNIQUE);
diff --git a/src/dwb.c b/src/dwb.c
index 1e5134c1..bc19f642 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -4081,7 +4081,11 @@ dwb_parse_commands(const char *line) {
void
dwb_version() {
- printf("%s %s, %s\n", NAME, VERSION, COPYRIGHT);
+ fprintf(stderr, " This is : "NAME"\n"
+ " Version : "VERSION"\n"
+ " Built : "__DATE__" "__TIME__"\n"
+ " Copyright : "COPYRIGHT"\n"
+ " License : "LICENSE"\n");
}
/* MAIN {{{*/
int