--===============1657820521== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-IkwW/I3TtsrSXmgSAo1C" --=-IkwW/I3TtsrSXmgSAo1C Content-Type: text/plain Content-Transfer-Encoding: quoted-printable ahh, I accidently sent the mail to your address -- I got used to the ReplyT= o: beeing the mailinglist, sorry Am Donnerstag, den 03.09.2009, 17:40 -0700 schrieb James Richard Tyrer: > Christopher Roy Bratusek wrote: > > Hi all, > >=20 > > I'm working on a KDE-Integration module for sawfish and need to now som= e > > things: > >=20 > > - Is there an environment variable notifying us that KDE is running? >=20 > This is not a simple question. :-| It depends on what you mean by KDE=20 > is running. That is, KDE is only a collection of programs. >=20 > Perhaps: "KDE_SESSION_UID" being set to the current USER will indicate=20 > that a KDE session has been started. >=20 > > - How to get the KSM session-prefix/session-id via command-line/getenv? > Not sure exactly what you mean here. There is no process named ksm.=20 > There is ksmserver. However, the process at the root of the process=20 > tree for a KDE4 session is: kdeinit4. However, the command: kdeinit4=20 > can also be running when a KDE session does not exist. Usually sawfish get the sesision-prefix/id via the --sm-client-id and --sm-prefix. I just wanted to know, if KDE4 behaves the same way. Both beeing used to connect to the Sessionmanager. > The command line: >=20 > pidof >=20 > will get the process id of KDM which you should be able to use with the=20 > function: getsid() to find the session-id. Perhaps it would help to=20 > look at the source for "pidof". >=20 > > - What command is used as help-browser (khelpcenter?) >=20 > yes, the shell command is khelpcenter >=20 > > - What command is used as control-center (kcontrol?) >=20 > No, name changed to systemsettings. >=20 > > - What command is used to pop-up the "About KDE-Dialog" (if any)? >=20 > AFAIK, you would have to use a KDE library function for that. nothing self-praising like `gnome-about'? > > - What command is used to pop-up the KDE Logout-Dialog? $ qdbus org.kde.ksmserver /KSMServer \ org.kde.KSMServerInterface.logout 1 -1 -1 something like this? > The dialog that pops up when you right click the desktop and select:=20 > "Leave"? That is probably hardcoded somewhere in Plasma. Perhaps a=20 > D-Bus message? If there is documentation for this stuff, I would really=20 > like to know where it is. >=20 > > - What options is used to make shutdown/logout pre-selected in the > > Logout-Dialog? > >=20 > it would be in ../share/config/ksmserverrc >=20 > If this is the system default, there won't be anything anywhere, but if=20 > it was changed either in the $KDEDIR or $KDEHOME it will be: >=20 > [General] >=20 > shutdownType=3D >=20 > This is a digit rather than a string so you will have to try it to see=20 > which is which. IIUC, the default is "0" which is "End current session". >=20 > > All for KDE4, please. > >=20 > I have to say that some these are rather elementary questions, some=20 > basic familiarity with KDE would probably be of some help to your project= . I have basic familiarity with KDE ... KDE3. Hadn't had the time testing v4.x Thanks, Chris --=-IkwW/I3TtsrSXmgSAo1C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10rc1 (GNU/Linux) iEYEABECAAYFAkqgnU4ACgkQRj2imCJFWJXm4wCeIyK1FETZnQR3RS1Zu/Ni0ug2 ZKIAoKK420EWTUGvt0XhGMsker/gT/IG =W+oU -----END PGP SIGNATURE----- --=-IkwW/I3TtsrSXmgSAo1C-- --===============1657820521== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1657820521==--