Codebase list policykit-1-gnome / 3b517c7
Imported Upstream version 0.6 Michael Biebl 14 years ago
10 changed file(s) with 198 addition(s) and 59 deletion(s). Raw diff Collapse all Expand all
0 SUBDIRS = data src examples po
0 SUBDIRS = data src po
1
2 if BUILD_EXAMPLES
3 SUBDIRS += examples
4 endif
15
26 EXTRA_DIST = \
37 autogen.sh \
3030 POST_UNINSTALL = :
3131 build_triplet = @build@
3232 host_triplet = @host@
33 @BUILD_EXAMPLES_TRUE@am__append_1 = examples
3334 subdir = .
3435 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3536 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
5758 distclean-recursive maintainer-clean-recursive
5859 ETAGS = etags
5960 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DIST_SUBDIRS = data src po examples
6162 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6263 distdir = $(PACKAGE)-$(VERSION)
6364 top_distdir = $(distdir)
231232 target_alias = @target_alias@
232233 top_builddir = @top_builddir@
233234 top_srcdir = @top_srcdir@
234 SUBDIRS = data src examples po
235 SUBDIRS = data src po $(am__append_1)
235236 EXTRA_DIST = \
236237 autogen.sh \
237238 intltool-extract.in \
0 ==========
1 PolicyKit-gnome 0.6
2 ==========
3
4 Released on October 11th 2007.
5
6 This is the fourth release of PolicyKit-gnome. This release should be
7 compatible with the PolicyKit-gnome 0.5 release.
8
9 David Zeuthen (9):
10 post-release version bump
11 Revert "post-release version bump"
12 removed bogus aclocal.m4 file from repository
13 build example by default
14 post release bump to 0.6
15 fix heuristics for localizing PAM strings and support thinkfinger better
16 fix danish translations
17 exit authentication daemon after 30 seconds of inactivity
18 add a --no-exit option to polkit-gnome-manager
19
20 Michael Biebl (1):
21 make it possible to build without the demo application
22
23 Requirements for PolicyKit-gnome 0.6
24
25 - PolicyKit == 0.6
26 - GTK+ >= 2.11 (2.10 will do if you don't build the demos)
27 - dbus >= 1.0
28 - dbus-glib >= 0.71
29 - libgnome >= 2.14.0
30 - libgnome-ui >= 2.14.0
31
032 ==========
133 PolicyKit-gnome 0.5
234 ==========
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for PolicyKit-gnome 0.5.
2 # Generated by GNU Autoconf 2.61 for PolicyKit-gnome 0.6.
33 #
44 # Report bugs to <mailto:david@fubar.dk>.
55 #
727727 # Identity of this package.
728728 PACKAGE_NAME='PolicyKit-gnome'
729729 PACKAGE_TARNAME='PolicyKit-gnome'
730 PACKAGE_VERSION='0.5'
731 PACKAGE_STRING='PolicyKit-gnome 0.5'
730 PACKAGE_VERSION='0.6'
731 PACKAGE_STRING='PolicyKit-gnome 0.6'
732732 PACKAGE_BUGREPORT='mailto:david@fubar.dk'
733733
734734 ac_unique_file="src"
886886 DISABLE_DEPRECATED
887887 POLKIT_GNOME_CFLAGS
888888 POLKIT_GNOME_LIBS
889 BUILD_EXAMPLES_TRUE
890 BUILD_EXAMPLES_FALSE
889891 POLKIT_POLICY_FILE_VALIDATE
890892 INTLTOOL_DESKTOP_RULE
891893 INTLTOOL_DIRECTORY_RULE
14551457 # Omit some internal or obsolete options to make the list less imposing.
14561458 # This message is too long to be a string in the A/UX 3.1 sh.
14571459 cat <<_ACEOF
1458 \`configure' configures PolicyKit-gnome 0.5 to adapt to many kinds of systems.
1460 \`configure' configures PolicyKit-gnome 0.6 to adapt to many kinds of systems.
14591461
14601462 Usage: $0 [OPTION]... [VAR=VALUE]...
14611463
15251527
15261528 if test -n "$ac_init_help"; then
15271529 case $ac_init_help in
1528 short | recursive ) echo "Configuration of PolicyKit-gnome 0.5:";;
1530 short | recursive ) echo "Configuration of PolicyKit-gnome 0.6:";;
15291531 esac
15301532 cat <<\_ACEOF
15311533
15461548 --enable-compile-warnings=[no/minimum/yes/maximum/error]
15471549 Turn on compiler warnings
15481550 --enable-iso-c Try to warn if code is not ISO C
1551 --enable-examples Build the example programs
15491552
15501553 Optional Packages:
15511554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
16431646 test -n "$ac_init_help" && exit $ac_status
16441647 if $ac_init_version; then
16451648 cat <<\_ACEOF
1646 PolicyKit-gnome configure 0.5
1649 PolicyKit-gnome configure 0.6
16471650 generated by GNU Autoconf 2.61
16481651
16491652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16571660 This file contains any messages produced by compilers while
16581661 running configure, to aid debugging if configure makes a mistake.
16591662
1660 It was created by PolicyKit-gnome $as_me 0.5, which was
1663 It was created by PolicyKit-gnome $as_me 0.6, which was
16611664 generated by GNU Autoconf 2.61. Invocation command line was
16621665
16631666 $ $0 $@
23482351
23492352 # Define the identity of the package.
23502353 PACKAGE='PolicyKit-gnome'
2351 VERSION='0.5'
2354 VERSION='0.6'
23522355
23532356
23542357 cat >>confdefs.h <<_ACEOF
49074910 ;;
49084911 *-*-irix6*)
49094912 # Find out which ABI we are using.
4910 echo '#line 4911 "configure"' > conftest.$ac_ext
4913 echo '#line 4914 "configure"' > conftest.$ac_ext
49114914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49124915 (eval $ac_compile) 2>&5
49134916 ac_status=$?
72457248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
72467249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
72477250 -e 's:$: $lt_compiler_flag:'`
7248 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7251 (eval echo "\"\$as_me:7252: $lt_compile\"" >&5)
72497252 (eval "$lt_compile" 2>conftest.err)
72507253 ac_status=$?
72517254 cat conftest.err >&5
7252 echo "$as_me:7253: \$? = $ac_status" >&5
7255 echo "$as_me:7256: \$? = $ac_status" >&5
72537256 if (exit $ac_status) && test -s "$ac_outfile"; then
72547257 # The compiler can only warn and ignore the option if not recognized
72557258 # So say no if there are warnings other than the usual output.
75357538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75367539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
75377540 -e 's:$: $lt_compiler_flag:'`
7538 (eval echo "\"\$as_me:7539: $lt_compile\"" >&5)
7541 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5)
75397542 (eval "$lt_compile" 2>conftest.err)
75407543 ac_status=$?
75417544 cat conftest.err >&5
7542 echo "$as_me:7543: \$? = $ac_status" >&5
7545 echo "$as_me:7546: \$? = $ac_status" >&5
75437546 if (exit $ac_status) && test -s "$ac_outfile"; then
75447547 # The compiler can only warn and ignore the option if not recognized
75457548 # So say no if there are warnings other than the usual output.
76397642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76407643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76417644 -e 's:$: $lt_compiler_flag:'`
7642 (eval echo "\"\$as_me:7643: $lt_compile\"" >&5)
7645 (eval echo "\"\$as_me:7646: $lt_compile\"" >&5)
76437646 (eval "$lt_compile" 2>out/conftest.err)
76447647 ac_status=$?
76457648 cat out/conftest.err >&5
7646 echo "$as_me:7647: \$? = $ac_status" >&5
7649 echo "$as_me:7650: \$? = $ac_status" >&5
76477650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
76487651 then
76497652 # The compiler can only warn and ignore the option if not recognized
99909993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
99919994 lt_status=$lt_dlunknown
99929995 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9996 #line 9997 "configure"
99949997 #include "confdefs.h"
99959998
99969999 #if HAVE_DLFCN_H
1009010093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1009110094 lt_status=$lt_dlunknown
1009210095 cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10096 #line 10097 "configure"
1009410097 #include "confdefs.h"
1009510098
1009610099 #if HAVE_DLFCN_H
1251012513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1251112514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1251212515 -e 's:$: $lt_compiler_flag:'`
12513 (eval echo "\"\$as_me:12514: $lt_compile\"" >&5)
12516 (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
1251412517 (eval "$lt_compile" 2>conftest.err)
1251512518 ac_status=$?
1251612519 cat conftest.err >&5
12517 echo "$as_me:12518: \$? = $ac_status" >&5
12520 echo "$as_me:12521: \$? = $ac_status" >&5
1251812521 if (exit $ac_status) && test -s "$ac_outfile"; then
1251912522 # The compiler can only warn and ignore the option if not recognized
1252012523 # So say no if there are warnings other than the usual output.
1261412617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1261512618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1261612619 -e 's:$: $lt_compiler_flag:'`
12617 (eval echo "\"\$as_me:12618: $lt_compile\"" >&5)
12620 (eval echo "\"\$as_me:12621: $lt_compile\"" >&5)
1261812621 (eval "$lt_compile" 2>out/conftest.err)
1261912622 ac_status=$?
1262012623 cat out/conftest.err >&5
12621 echo "$as_me:12622: \$? = $ac_status" >&5
12624 echo "$as_me:12625: \$? = $ac_status" >&5
1262212625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1262312626 then
1262412627 # The compiler can only warn and ignore the option if not recognized
1417814181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1417914182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1418014183 -e 's:$: $lt_compiler_flag:'`
14181 (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
14184 (eval echo "\"\$as_me:14185: $lt_compile\"" >&5)
1418214185 (eval "$lt_compile" 2>conftest.err)
1418314186 ac_status=$?
1418414187 cat conftest.err >&5
14185 echo "$as_me:14186: \$? = $ac_status" >&5
14188 echo "$as_me:14189: \$? = $ac_status" >&5
1418614189 if (exit $ac_status) && test -s "$ac_outfile"; then
1418714190 # The compiler can only warn and ignore the option if not recognized
1418814191 # So say no if there are warnings other than the usual output.
1428214285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1428314286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1428414287 -e 's:$: $lt_compiler_flag:'`
14285 (eval echo "\"\$as_me:14286: $lt_compile\"" >&5)
14288 (eval echo "\"\$as_me:14289: $lt_compile\"" >&5)
1428614289 (eval "$lt_compile" 2>out/conftest.err)
1428714290 ac_status=$?
1428814291 cat out/conftest.err >&5
14289 echo "$as_me:14290: \$? = $ac_status" >&5
14292 echo "$as_me:14293: \$? = $ac_status" >&5
1429014293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1429114294 then
1429214295 # The compiler can only warn and ignore the option if not recognized
1647116474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1647216475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1647316476 -e 's:$: $lt_compiler_flag:'`
16474 (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
16477 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
1647516478 (eval "$lt_compile" 2>conftest.err)
1647616479 ac_status=$?
1647716480 cat conftest.err >&5
16478 echo "$as_me:16479: \$? = $ac_status" >&5
16481 echo "$as_me:16482: \$? = $ac_status" >&5
1647916482 if (exit $ac_status) && test -s "$ac_outfile"; then
1648016483 # The compiler can only warn and ignore the option if not recognized
1648116484 # So say no if there are warnings other than the usual output.
1676116764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1676216765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1676316766 -e 's:$: $lt_compiler_flag:'`
16764 (eval echo "\"\$as_me:16765: $lt_compile\"" >&5)
16767 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
1676516768 (eval "$lt_compile" 2>conftest.err)
1676616769 ac_status=$?
1676716770 cat conftest.err >&5
16768 echo "$as_me:16769: \$? = $ac_status" >&5
16771 echo "$as_me:16772: \$? = $ac_status" >&5
1676916772 if (exit $ac_status) && test -s "$ac_outfile"; then
1677016773 # The compiler can only warn and ignore the option if not recognized
1677116774 # So say no if there are warnings other than the usual output.
1686516868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1686616869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1686716870 -e 's:$: $lt_compiler_flag:'`
16868 (eval echo "\"\$as_me:16869: $lt_compile\"" >&5)
16871 (eval echo "\"\$as_me:16872: $lt_compile\"" >&5)
1686916872 (eval "$lt_compile" 2>out/conftest.err)
1687016873 ac_status=$?
1687116874 cat out/conftest.err >&5
16872 echo "$as_me:16873: \$? = $ac_status" >&5
16875 echo "$as_me:16876: \$? = $ac_status" >&5
1687316876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1687416877 then
1687516878 # The compiler can only warn and ignore the option if not recognized
2006920072 :
2007020073 fi
2007120074
20072 # Extract the first word of "polkit-policy-file-validate", so it can be a program name with args.
20075 # Check whether --enable-examples was given.
20076 if test "${enable_examples+set}" = set; then
20077 enableval=$enable_examples;
20078 else
20079 enable_examples=yes
20080 fi
20081
20082
20083 if test "x$enable_examples" = "xyes"; then
20084 BUILD_EXAMPLES_TRUE=
20085 BUILD_EXAMPLES_FALSE='#'
20086 else
20087 BUILD_EXAMPLES_TRUE='#'
20088 BUILD_EXAMPLES_FALSE=
20089 fi
20090
20091
20092 if test "x$enable_examples" = "xyes"; then
20093 # Extract the first word of "polkit-policy-file-validate", so it can be a program name with args.
2007320094 set dummy polkit-policy-file-validate; ac_word=$2
2007420095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007520096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010620127 fi
2010720128
2010820129
20109 if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
20110 { { echo "$as_me:$LINENO: error: polkit-policy-file-validate not found" >&5
20130 if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
20131 { { echo "$as_me:$LINENO: error: polkit-policy-file-validate not found" >&5
2011120132 echo "$as_me: error: polkit-policy-file-validate not found" >&2;}
2011220133 { (exit 1); exit 1; }; }
20134 fi
2011320135 fi
2011420136
2011520137 # ********************
2209122113 Usually this means the macro was only invoked conditionally." >&2;}
2209222114 { (exit 1); exit 1; }; }
2209322115 fi
22116 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
22117 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
22118 Usually this means the macro was only invoked conditionally." >&5
22119 echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
22120 Usually this means the macro was only invoked conditionally." >&2;}
22121 { (exit 1); exit 1; }; }
22122 fi
2209422123
2209522124 ac_config_commands="$ac_config_commands po/stamp-it"
2209622125
2239522424 # report actual input values of CONFIG_FILES etc. instead of their
2239622425 # values after options handling.
2239722426 ac_log="
22398 This file was extended by PolicyKit-gnome $as_me 0.5, which was
22427 This file was extended by PolicyKit-gnome $as_me 0.6, which was
2239922428 generated by GNU Autoconf 2.61. Invocation command line was
2240022429
2240122430 CONFIG_FILES = $CONFIG_FILES
2244822477 _ACEOF
2244922478 cat >>$CONFIG_STATUS <<_ACEOF
2245022479 ac_cs_version="\\
22451 PolicyKit-gnome config.status 0.5
22480 PolicyKit-gnome config.status 0.6
2245222481 configured by $0, generated by GNU Autoconf 2.61,
2245322482 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2245422483
2279722826 DISABLE_DEPRECATED!$DISABLE_DEPRECATED$ac_delim
2279822827 POLKIT_GNOME_CFLAGS!$POLKIT_GNOME_CFLAGS$ac_delim
2279922828 POLKIT_GNOME_LIBS!$POLKIT_GNOME_LIBS$ac_delim
22829 BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim
22830 BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim
2280022831 POLKIT_POLICY_FILE_VALIDATE!$POLKIT_POLICY_FILE_VALIDATE$ac_delim
2280122832 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
2280222833 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
2284722878 LTLIBOBJS!$LTLIBOBJS$ac_delim
2284822879 _ACEOF
2284922880
22850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
22881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
2285122882 break
2285222883 elif $ac_last_try; then
2285322884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
0 AC_INIT([PolicyKit-gnome],[0.5],[mailto:david@fubar.dk],[PolicyKit-gnome])
0 AC_INIT([PolicyKit-gnome],[0.6],[mailto:david@fubar.dk],[PolicyKit-gnome])
11
22 AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
33
4040 polkit-dbus >= $POLKIT_DBUS_REQUIRED
4141 polkit-grant >= $POLKIT_GRANT_REQUIRED)
4242
43 AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
44 [polkit-policy-file-validate], [polkit-policy-file-validate])
45 if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
46 AC_MSG_ERROR([polkit-policy-file-validate not found])
43 AC_ARG_ENABLE([examples],
44 AC_HELP_STRING([--enable-examples], [Build the example programs]),,
45 [enable_examples=yes])
46
47 AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes")
48
49 if test "x$enable_examples" = "xyes"; then
50 AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
51 [polkit-policy-file-validate], [polkit-policy-file-validate])
52 if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
53 AC_MSG_ERROR([polkit-policy-file-validate not found])
54 fi
4755 fi
4856
4957 # ********************
77 msgstr ""
88 "Project-Id-Version: PolicyKit-gnome\n"
99 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2007-08-31 16:01-0400\n"
10 "POT-Creation-Date: 2007-09-28 14:03-0400\n"
1111 "PO-Revision-Date: 2007-07-31 17:43-0400\n"
1212 "Last-Translator: David Zeuthen <davidz@redhat.com>\n"
1313 "Language-Team: LANGUAGE <LL@li.org>\n"
218218 msgstr "Aut_orisering"
219219
220220 #: ../src/polkit-gnome-auth-dialog.c:505 ../src/polkit-gnome-manager.c:587
221 #: ../src/polkit-gnome-manager.c:634
221 #: ../src/polkit-gnome-manager.c:635
222222 msgid "_Password:"
223223 msgstr "_Kodeord:"
224224
242242 msgid "Authenticate"
243243 msgstr "Autorisering"
244244
245 #: ../src/polkit-gnome-manager.c:629
245 #: ../src/polkit-gnome-manager.c:630
246246 #, c-format
247247 msgid "_Password for %s:"
248248 msgstr "_Kodeord for %s:"
249249
250 #: ../src/polkit-gnome-manager.c:631
250 #: ../src/polkit-gnome-manager.c:632
251251 msgid "_Password for root:"
252252 msgstr "_Kodeord for root:"
253
254 #: ../src/polkit-gnome-manager.c:640
255 #, c-format
256 msgid "_Password or swipe finger for %s:"
257 msgstr "_Kodeord eller finger for %s:"
258
259 #: ../src/polkit-gnome-manager.c:643
260 msgid "_Password or swipe finger for root:"
261 msgstr "_Kodeord eller finger for root:"
262
263 #: ../src/polkit-gnome-manager.c:646
264 msgid "_Password or swipe finger:"
265 msgstr "_Kodeord eller finger:"
135135 DBusGProxy *bus_proxy;
136136 DBusGConnection *connection;
137137 int ret;
138
139 static gboolean debug = FALSE;
140 static gboolean no_daemon = FALSE;
138 static gboolean no_exit = FALSE;
141139 static GOptionEntry entries [] = {
142 { "debug", 0, 0, G_OPTION_ARG_NONE, &debug, N_("Enable debugging code"), NULL },
143 { "no-daemon", 0, 0, G_OPTION_ARG_NONE, &no_daemon, N_("Don't become a daemon"), NULL },
140 { "no-exit", 0, 0, G_OPTION_ARG_NONE, &no_exit, N_("Don't exit after 30 seconds of inactivity"), NULL },
144141 { NULL }
145142 };
146143
176173
177174 g_debug (_("Starting PolicyKit GNOME session daemon version %s"), VERSION);
178175
179 manager = polkit_gnome_manager_new ();
176 manager = polkit_gnome_manager_new (no_exit);
180177
181178 if (manager == NULL) {
182179 goto out;
5252 #endif /* !G_ENABLE_DEBUG */
5353
5454
55 /* NONE:STRING,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.XE8PXT:1) */
55 /* NONE:STRING,UINT,POINTER (/tmp/dbus-binding-tool-c-marshallers.JI9WYT:1) */
5656 extern void dbus_glib_marshal_polkit_gnome_manager_VOID__STRING_UINT_POINTER (GClosure *closure,
5757 GValue *return_value,
5858 guint n_param_values,
4949
5050 static void do_cancel_auth (void);
5151
52
53 static guint kill_timer_id = 0;
54
55 static gboolean kill_timer_no_exit = FALSE;
56
57 static gboolean
58 kill_timer_exit (gpointer user_data)
59 {
60 g_debug ("Exiting because of kill timer.");
61 exit (0);
62 return FALSE;
63 }
64
65 static void
66 kill_timer_stop (void)
67 {
68
69 if (kill_timer_id > 0) {
70 g_debug ("Removing kill timer.");
71 g_source_remove (kill_timer_id);
72 kill_timer_id = 0;
73 }
74 }
75
76 static void
77 kill_timer_start (void)
78 {
79 if (kill_timer_no_exit)
80 return;
81
82 kill_timer_stop ();
83 g_debug ("Setting kill timer to 30 seconds.");
84 kill_timer_id = g_timeout_add (30 * 1000, kill_timer_exit, NULL);
85 }
86
5287 static gboolean
5388 do_polkit_auth (PolKitContext *pk_context,
5489 DBusConnection *system_bus_connection,
293328
294329
295330 PolKitGnomeManager *
296 polkit_gnome_manager_new (void)
331 polkit_gnome_manager_new (gboolean no_exit)
297332 {
298333 GObject *object;
299334 gboolean res;
305340 g_object_unref (object);
306341 return NULL;
307342 }
343
344 kill_timer_no_exit = no_exit;
345 kill_timer_start ();
308346
309347 return POLKIT_GNOME_MANAGER (object);
310348 }
352390 char *caller_exe;
353391 gboolean gained_privilege;
354392 GError *error;
393
394 kill_timer_stop ();
355395
356396 if (wc->manager->priv->auth_in_progress) {
357397 error = g_error_new (POLKIT_GNOME_MANAGER_ERROR,
415455 g_free (wc->manager->priv->session_bus_unique_name_of_client);
416456 wc->manager->priv->session_bus_unique_name_of_client = NULL;
417457 out:
458 kill_timer_start ();
418459 g_free (wc->action_id);
419460 g_free (wc);
420461 return FALSE;
622663 g_debug ("in conversation_pam_prompt, request='%s', echo_on=%d", request, echo_on);
623664
624665 /* Fix up, and localize, password prompt if it's password auth */
625 if (g_ascii_strncasecmp (request, "password", 8) == 0) {
666 printf ("request: '%s'\n", request);
667 if (g_ascii_strncasecmp (request, "password:", 9) == 0) {
626668 if (ud->requires_admin) {
627669 if (ud->admin_user_selected != NULL) {
628670 request2 = g_strdup_printf (_("_Password for %s:"), ud->admin_user_selected);
631673 }
632674 } else {
633675 request2 = g_strdup (_("_Password:"));
676 }
677 } else if (g_ascii_strncasecmp (request, "password or swipe finger:", 25) == 0) {
678 if (ud->requires_admin) {
679 if (ud->admin_user_selected != NULL) {
680 request2 = g_strdup_printf (_("_Password or swipe finger for %s:"),
681 ud->admin_user_selected);
682 } else {
683 request2 = g_strdup (_("_Password or swipe finger for root:"));
684 }
685 } else {
686 request2 = g_strdup (_("_Password or swipe finger:"));
634687 }
635688 } else {
636689 request2 = g_strdup (request);
5555
5656 GQuark polkit_gnome_manager_error_quark (void);
5757 GType polkit_gnome_manager_get_type (void);
58 PolKitGnomeManager *polkit_gnome_manager_new (void);
58 PolKitGnomeManager *polkit_gnome_manager_new (gboolean no_exit);
5959
6060 /* exported methods */
6161 gboolean polkit_gnome_manager_show_dialog (PolKitGnomeManager *manager,