Basic development of the Gnome platform

I am trying to write a C ++ application in Gnome / Ubuntu as my first non-academic programming exercise, and I had problems running it. I cannot find information about the various header files that I need to include in order to access the functions in the Gnome API. I looked at the Gnome developer site and found some sample programs containing strings

#include <glib-object.h>
#include <gtkmm.h>
#include "config.h"

However, these are just examples of the use of these specific headers and do not tell me what functionality they provide in general. I found the Gnome API documentation, but it just contains a list of all the available functions without any context.

The specific problem I'm trying to solve is getting the passwords stored in Gnome Keyring. Here is an example code example that details how to store and retrieve passwords, but these are just snippets from larger programs and don't tell me how to start writing one.

There are two things that I am looking for here:

  • Most importantly, learn about the available Gnome headers. Where can I find out what is, what functionality they provide and what packages I need to install in order to be able to use them.

  • It doesn’t matter if the above is sorted, but if it isn’t, then a complete sample program that extracts the password from Gnome Keyring and saves it as a variable will help me get a start.

+3
source share
1

developer.gnome.org.

, pkg-config, include library. Gnome Keyring :

user@home:~$ pkg-config gnome-keyring-1 --libs
-L/usr/lib/i386-linux-gnu -lgnome-keyring -lglib-2.0  

user@home:~$ pkg-config gnome-keyring-1 --cflags
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gnome-keyring-1  
0

All Articles