Public feed #722064

Someone

public text v1 · immutable
Raw Edit
·published 2007-10-01 18:50 UTC
rendered paste body
#include <xfsm-util.h>
#include <xfsm-legacy.h>

int main(void) {
        XfceRc *rc;
        gchar  *sessionName;
        char *path = "~/.config/xfce4-session/xfce4-session.rc";

        rc = xfce_rc_simple_open(path, 0);
        if (rc == NULL) {
            printf("Cannot find '%s'\n", path);
            return 1;
        }

        sessionName = xfce_rc_read_entry(rc, sessionName, "Default");
        xfce_rc_close(rc);

        printf("Using session name '%s'\n", sessionName);
        return 0;
}