/[pkg-gnome]/packages/experimental/update-notifier/debian/patches/05_call_updatem_synaptic_with_gksu.diff
ViewVC logotype

Contents of /packages/experimental/update-notifier/debian/patches/05_call_updatem_synaptic_with_gksu.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11710 - (show annotations) (download)
Thu Jun 28 00:21:06 2007 UTC (5 years, 11 months ago) by kov
File size: 1690 byte(s)
improve patch to not use full path to update-manager
1 diff -urpN update-notifier-0.57.1.orig/src/update.c update-notifier-0.57.1/src/update.c
2 --- update-notifier-0.57.1.orig/src/update.c 2007-06-20 09:06:54.000000000 +0330
3 +++ update-notifier-0.57.1/src/update.c 2007-06-20 09:07:45.000000000 +0330
4 @@ -13,14 +13,14 @@
5
6 // command, description, desktopfile, needs_gksu
7 char* actions[][4] = {
8 - { "/usr/bin/update-manager", N_("Show updates"),
9 + { "gksu update-manager", N_("Show updates"),
10 "/usr/share/applications/update-manager.desktop", FALSE },
11
12 - { "/usr/sbin/synaptic --dist-upgrade-mode --non-interactive --hide-main-window -o Synaptic::AskRelated=true",
13 + { "gksu /usr/sbin/synaptic --dist-upgrade-mode --non-interactive --hide-main-window -o Synaptic::AskRelated=true",
14 N_("Install all updates"), "/usr/share/applications/synaptic.desktop", TRUE
15 },
16 - { "/usr/sbin/synaptic --update-at-startup --non-interactive --hide-main-window", N_("Check for updates"), "/usr/share/applications/synaptic.desktop", TRUE },
17 - { "/usr/sbin/synaptic", N_("Start package manager"),
18 + { "gksu /usr/sbin/synaptic --update-at-startup --non-interactive --hide-main-window", N_("Check for updates"), "/usr/share/applications/synaptic.desktop", TRUE },
19 + { "gksu /usr/sbin/synaptic", N_("Start package manager"),
20 "/usr/share/applications/synaptic.desktop", TRUE},
21 { NULL, NULL, NULL }
22 };
23 @@ -146,7 +146,7 @@ cb_action(GObject *self, void *user_data
24 void
25 cb_preferences(GObject *self, void *user_data)
26 {
27 - invoke_with_gksu("/usr/bin/software-properties-gtk",
28 + invoke_with_gksu("gksu /usr/bin/software-properties-gtk",
29 "/usr/share/applications/software-properties.desktop",
30 FALSE);
31 }

  ViewVC Help
Powered by ViewVC 1.1.5