[Bug 105233] JJ: kdeinit -v does not provide version information
Jaime Torres
jtamate at gmail.com
Tue Sep 30 13:07:33 CEST 2008
http://bugs.kde.org/show_bug.cgi?id=105233
Jaime Torres jtamate gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jtamate at gmail.com
--- Comment #3 from Jaime Torres <jtamate gmail com> 2008-09-30 13:07:28 ---
Are the following patches enought?, or are them supposed to use kcmdlineargs?
--- kinit.cpp 2008-09-30 10:23:58.000000000 +0200
+++ kinit.cpp 2008-09-30 12:39:52.000000000 +0200
@@ -1742,6 +1742,16 @@
d.suicide = true;
if (strcmp(safe_argv[i], "--exit") == 0)
keep_running = 0;
+ if (strcmp(safe_argv[i], "--version") == 0)
+ {
+#define PROGRAM_NAME "kdeinit4"
+#define PROGRAM_VERSION "4.1.2"
+
+ printf("Qt: %s\n",qVersion());
+ printf("KDE: %s\n", KDE_VERSION_STRING);
+ printf("%s: %s\n",PROGRAM_NAME,PROGRAM_VERSION);
+ exit(0);
+ }
if (strcmp(safe_argv[i], "--help") == 0)
{
printf("Usage: kdeinit4 [options]\n");
@@ -1755,6 +1765,7 @@
printf(" --no-kded Do not start kded\n");
printf(" --suicide Terminate when no KDE applications are
left running\n");
// printf(" --exit Terminate when kded has run\n");
+ printf(" --version Show version information\n");
exit(0);
}
}
--- kinit_win.cpp 2008-09-30 12:52:52.000000000 +0200
+++ kinit_win.cpp 2008-09-30 12:55:45.000000000 +0200
@@ -337,6 +337,16 @@
#endif
if (strcmp(safe_argv[i], "--verbose") == 0)
verbose = 1;
+ if (strcmp(safe_argv[i], "--version") == 0)
+ {
+#define PROGRAM_NAME "kdeinit4"
+#define PROGRAM_VERSION "4.1.2"
+
+ printf("Qt: %s\n",qVersion());
+ printf("KDE: %s\n", KDE_VERSION_STRING);
+ printf("%s: %s\n",PROGRAM_NAME,PROGRAM_VERSION);
+ exit(0);
+ }
if (strcmp(safe_argv[i], "--help") == 0)
{
printf("Usage: kdeinit4 [options]\n");
@@ -357,6 +367,7 @@
#endif
printf(" --terminate hard kill of *all* running
kde processes\n");
printf(" --verbose print verbose messages\n");
+ printf(" --version Show version information\n");
exit(0);
}
if (strcmp(safe_argv[i], "--list") == 0)
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdelibs-bugs
mailing list