Beginner documentation on writing extensions
Ankur Sinha <[email protected]> Sat, 20 Jun 2015 23:24:11 +0100
| Newsgroups | gmane.comp.gnome.love |
|---|---|
| Message-ID | <[email protected]> |
--===============5271482293646331477== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-v8TpfF05rYhl+rI6TW1y" --=-v8TpfF05rYhl+rI6TW1y Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I was looking into writing a gnome shell extension. Since the "do not disturb" switch got lost with the new notification UI update, I was hoping to write an extension that would add it to the top panel or the user panel.=20 I've never written an extension before, and I've been looking around for docs on how to get started with this. I've found this https://wiki.gnome.org/Projects/GnomeShell/Extensions/StepByStepTutoria l and while it does give me a basic understanding of the process, it doesn't contain any information on how to make dbus calls (?) and so on. Could someone please direct me to some more docs? This does what the extension should do from the command line: gdbus call --session --dest org.gnome.SessionManager \ --object-path /org/gnome/SessionManager/Presence \ --method org.gnome.SessionManager.Presence.SetStatus 2 I was already pointed to this source file: https://github.com/GNOME/gnome -shell/blob/master/js/misc/gnomeSession.js but I really don't know where to look on how the interface defined there and so on are to be used. --=20 Thanks, Regards, Ankur Sinha "FranciscoD" http://fedoraproject.org/wiki/User:Ankursinha --=-v8TpfF05rYhl+rI6TW1y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJVhegLAAoJEPjYwL66yJi9QK0IAIPpdqf/YSCVnf9sNS/NvSKP JV2rJzbdgGXb/T9fcitqxgqjef+yIj9sImE7M/+t6DyZUAAWov2/XVZlD82DqwE8 Ldc1aIoc2QKSDFw0vvfg/6P+6n937aaRCiWi+WiOu32uwbZXtzTDN65/PG2excAK Nv7oowRpmCJ0kBEqzLjaDEetd5pz0Q8XJndGrPtOiRQFBQheMBse8BOVwIeJA74h 5XvKpnGFeCgYemEoAcvvcXpLrj20iFAbMIJe/AQAzlVOL8egogJ8JnIrR869tIlr DhRiH/p4FSP3SHeD8D3heXFcUt3Ld87Y87zFA65dmOcWi9Ydikc0zPQPEXAOUGk= =Mal3 -----END PGP SIGNATURE----- --=-v8TpfF05rYhl+rI6TW1y-- --===============5271482293646331477== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-love mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-love --===============5271482293646331477==--