22 #include "kdepim-version.h"
25 #include <KUniqueApplication>
26 #include <kcmdlineargs.h>
27 #include <kaboutdata.h>
29 #include <kxerrorhandler.h>
33 #include <X11/Xatom.h>
41 int main(
int argc,
char *argv[] )
43 KAboutData aboutData(
"knotes",
48 KAboutData::License_GPL,
49 ki18n(
"Copyright © 1997–2014 KNotes authors" ) );
53 KCmdLineArgs::init( argc, argv, &aboutData );
59 KUniqueApplication::addCmdLineOptions();
61 if ( !Application::start() ) {
62 qDebug()<<
" knotes already started";
81 unsigned long nitems = 0;
82 unsigned long extra = 0;
83 unsigned char *data = 0;
86 char *atom_names[ 2 ] = { (
char * )
"WM_CLIENT_LEADER",
87 (
char * )
"SM_CLIENT_ID" };
92 KXErrorHandler handler;
94 10000,
false, XA_WINDOW, &type, &format, &nitems,
97 if ( ( status == Success ) && !handler.error(
false ) ) {
98 if ( data && ( nitems > 0 ) ) {
99 Window leader = * ( ( Window * ) data );
109 aboutData.addAuthor( ki18n(
"Laurent Montel" ),
110 ki18n(
"Maintainer" ),
112 aboutData.addAuthor( ki18n(
"Guillermo Antonio Amaral Bastidas" ),
113 ki18n(
"Previous Maintainer" ),
114 "me@guillermoamaral.com" );
115 aboutData.addAuthor( ki18n(
"Michael Brade" ),
116 ki18n(
"Previous Maintainer" ),
118 aboutData.addAuthor( ki18n(
"Bernd Johannes Wuebben" ),
119 ki18n(
"Original KNotes Author" ),
121 aboutData.addAuthor( ki18n(
"Wynn Wilkes" ),
122 ki18n(
"Ported KNotes to KDE 2" ),
123 "wynnw@calderasystems.com" );
124 aboutData.addAuthor( ki18n(
"Daniel Martin" ),
125 ki18n(
"Network Interface" ),
126 "daniel.martin@pirack.com" );
127 aboutData.addAuthor( ki18n(
"Bo Thorsen" ),
128 ki18n(
"Started KDE Resource Framework Integration" ),
130 aboutData.addCredit( ki18n(
"Bera Debajyoti" ),
131 ki18n(
"Idea and initial code for the new look & feel" ),
132 "debajyotibera@gmail.com" );
133 aboutData.addCredit( ki18n(
"Matthias Ettrich" ),
136 aboutData.addCredit( ki18n(
"David Faure" ),
139 aboutData.addCredit( ki18n(
"Matthias Kiefer" ),
142 aboutData.addCredit( ki18n(
"Luboš Luňák" ),
145 aboutData.addCredit( ki18n(
"Dirk A. Mueller" ),
148 aboutData.addCredit( ki18n(
"Carsten Pfeiffer" ),
150 "pfeiffer@kde.org" );
151 aboutData.addCredit( ki18n(
"Harri Porten" ),
154 aboutData.addCredit( ki18n(
"Espen Sand" ),
KCmdLineOptions knotesOptions()
void knotesAuthors(KAboutData &aboutData)
void remove_sm_from_client_leader()
int main(int argc, char *argv[])