blob: 31b8645948353052c997ab0a8d9b0157d0eceee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <config.h>
#include <glib.h>
#include "application.h"
#include "gsm_gnomesu.h"
#include "util.h"
gboolean (*gnomesu_exec)(const char *commandline);
static void
load_gnomesu(void)
{
static gboolean init;
if (init)
return;
init = TRUE;
load_symbols("libgnomesu.so.0",
"gnomesu_exec", &gnomesu_exec,
NULL);
}
gboolean
gsm_gnomesu_create_root_password_dialog(const char *command)
{
return gnomesu_exec(command);
}
gboolean
procman_has_gnomesu(void)
{
load_gnomesu();
return gnomesu_exec != NULL;
}
|