Skip to content

Commit 7df5759

Browse files
yetistraveit65
authored andcommitted
Only show application name when run with --version
Run with --version, only show the application name and version, not show the path of program.
1 parent f96eb6b commit 7df5759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎mate-session/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ int main(int argc, char** argv)
616616

617617
if (show_version)
618618
{
619-
g_print("%s %s\n", argv [0], VERSION);
619+
g_print("%s %s\n", g_get_application_name(), VERSION);
620620
exit(1);
621621
}
622622

0 commit comments

Comments
 (0)