2019-03-03 19:23:25 +01:00
|
|
|
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index 603178efc..c363a6a5c 100644
|
2018-03-10 00:53:54 +01:00
|
|
|
--- a/panels/color/cc-color-panel.c
|
|
|
|
+++ b/panels/color/cc-color-panel.c
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -591,7 +591,7 @@ gcm_prefs_calibrate_cb (CcColorPanel *prefs)
|
2018-03-10 00:53:54 +01:00
|
|
|
|
|
|
|
/* run with modal set */
|
|
|
|
argv = g_ptr_array_new_with_free_func (g_free);
|
2021-03-21 06:15:46 +01:00
|
|
|
- g_ptr_array_add (argv, g_strdup ("gcm-calibrate"));
|
2018-03-10 00:53:54 +01:00
|
|
|
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-calibrate", NULL));
|
|
|
|
g_ptr_array_add (argv, g_strdup ("--device"));
|
2018-09-05 02:46:15 +02:00
|
|
|
g_ptr_array_add (argv, g_strdup (cd_device_get_id (prefs->current_device)));
|
2018-03-10 00:53:54 +01:00
|
|
|
g_ptr_array_add (argv, g_strdup ("--parent-window"));
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -1029,7 +1029,7 @@ gcm_prefs_profile_view (CcColorPanel *prefs, CdProfile *profile)
|
2018-03-10 00:53:54 +01:00
|
|
|
|
|
|
|
/* open up gcm-viewer as a info pane */
|
|
|
|
argv = g_ptr_array_new_with_free_func (g_free);
|
2021-03-21 06:15:46 +01:00
|
|
|
- g_ptr_array_add (argv, g_strdup ("gcm-viewer"));
|
2018-03-10 00:53:54 +01:00
|
|
|
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL));
|
|
|
|
g_ptr_array_add (argv, g_strdup ("--profile"));
|
|
|
|
g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile)));
|
|
|
|
g_ptr_array_add (argv, g_strdup ("--parent-window"));
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -1275,15 +1275,12 @@ gcm_prefs_device_clicked (CcColorPanel *prefs, CdDevice *device)
|
2018-09-05 02:46:15 +02:00
|
|
|
static void
|
2018-03-10 00:53:54 +01:00
|
|
|
gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device)
|
|
|
|
{
|
2018-09-05 02:46:15 +02:00
|
|
|
- g_autofree gchar *s = NULL;
|
|
|
|
-
|
2018-03-10 00:53:54 +01:00
|
|
|
/* get profile */
|
2018-09-05 02:46:15 +02:00
|
|
|
g_debug ("selected profile = %s",
|
|
|
|
cd_profile_get_filename (profile));
|
|
|
|
|
2018-03-10 00:53:54 +01:00
|
|
|
/* allow getting profile info */
|
|
|
|
- if (cd_profile_get_filename (profile) != NULL &&
|
|
|
|
- (s = g_find_program_in_path ("gcm-viewer")) != NULL)
|
|
|
|
+ if (cd_profile_get_filename (profile) != NULL)
|
2018-09-05 02:46:15 +02:00
|
|
|
gtk_widget_set_sensitive (prefs->toolbutton_profile_view, TRUE);
|
2018-03-10 00:53:54 +01:00
|
|
|
else
|
2018-09-05 02:46:15 +02:00
|
|
|
gtk_widget_set_sensitive (prefs->toolbutton_profile_view, FALSE);
|
2019-03-03 19:23:25 +01:00
|
|
|
diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h
|
2021-03-21 06:15:46 +01:00
|
|
|
index a2376f8a4..98769e08f 100644
|
2018-03-10 00:53:54 +01:00
|
|
|
--- a/panels/datetime/tz.h
|
|
|
|
+++ b/panels/datetime/tz.h
|
|
|
|
@@ -27,11 +27,7 @@
|
|
|
|
|
2021-03-21 06:15:46 +01:00
|
|
|
G_BEGIN_DECLS
|
2018-03-10 00:53:54 +01:00
|
|
|
|
|
|
|
-#ifndef __sun
|
|
|
|
-# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
|
|
|
|
-#else
|
|
|
|
-# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab"
|
|
|
|
-#endif
|
|
|
|
+#define TZ_DATA_FILE "@tzdata@/share/zoneinfo/zone.tab"
|
|
|
|
|
|
|
|
typedef struct _TzDB TzDB;
|
|
|
|
typedef struct _TzLocation TzLocation;
|
2020-02-09 01:35:52 +01:00
|
|
|
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index bd0e07762..0e71351f8 100644
|
2020-02-09 01:35:52 +01:00
|
|
|
--- a/panels/info-overview/cc-info-overview-panel.c
|
|
|
|
+++ b/panels/info-overview/cc-info-overview-panel.c
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -172,7 +172,7 @@ load_gnome_version (char **version,
|
2019-04-23 01:14:35 +02:00
|
|
|
gsize length;
|
|
|
|
g_autoptr(VersionData) data = NULL;
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2019-04-23 01:14:35 +02:00
|
|
|
- if (!g_file_get_contents (DATADIR "/gnome/gnome-version.xml",
|
|
|
|
+ if (!g_file_get_contents ("@gnome_desktop@/share/gnome/gnome-version.xml",
|
|
|
|
&contents,
|
|
|
|
&length,
|
|
|
|
&error))
|
2021-03-21 06:15:46 +01:00
|
|
|
diff --git a/panels/keyboard/cc-input-list-box.c b/panels/keyboard/cc-input-list-box.c
|
|
|
|
index 6c2cb5614..8f57159cc 100644
|
|
|
|
--- a/panels/keyboard/cc-input-list-box.c
|
|
|
|
+++ b/panels/keyboard/cc-input-list-box.c
|
|
|
|
@@ -223,10 +223,10 @@ row_layout_cb (CcInputListBox *self,
|
|
|
|
layout_variant = cc_input_source_get_layout_variant (source);
|
|
|
|
|
|
|
|
if (layout_variant && layout_variant[0])
|
|
|
|
- commandline = g_strdup_printf ("gkbd-keyboard-display -l \"%s\t%s\"",
|
|
|
|
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l \"%s\t%s\"",
|
|
|
|
layout, layout_variant);
|
|
|
|
else
|
|
|
|
- commandline = g_strdup_printf ("gkbd-keyboard-display -l %s",
|
|
|
|
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l %s",
|
|
|
|
layout);
|
|
|
|
|
|
|
|
g_spawn_command_line_async (commandline, NULL);
|
2019-03-03 19:23:25 +01:00
|
|
|
diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index 505b8ee25..62e94009f 100644
|
2019-03-03 19:23:25 +01:00
|
|
|
--- a/panels/network/connection-editor/net-connection-editor.c
|
|
|
|
+++ b/panels/network/connection-editor/net-connection-editor.c
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -267,9 +267,9 @@ net_connection_editor_do_fallback (NetConnectionEditor *self, const gchar *type)
|
2020-02-09 01:35:52 +01:00
|
|
|
g_autoptr(GError) error = NULL;
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
if (self->is_new_connection) {
|
2019-03-03 19:23:25 +01:00
|
|
|
- cmdline = g_strdup_printf ("nm-connection-editor --type='%s' --create", type);
|
|
|
|
+ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --type='%s' --create", type);
|
|
|
|
} else {
|
|
|
|
- cmdline = g_strdup_printf ("nm-connection-editor --edit='%s'",
|
|
|
|
+ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --edit='%s'",
|
2020-02-09 01:35:52 +01:00
|
|
|
nm_connection_get_uuid (self->connection));
|
2019-03-03 19:23:25 +01:00
|
|
|
}
|
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-bluetooth.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index 74dfb0e9a..5f53d1a20 100644
|
2020-02-09 01:35:52 +01:00
|
|
|
--- a/panels/network/net-device-bluetooth.c
|
|
|
|
+++ b/panels/network/net-device-bluetooth.c
|
|
|
|
@@ -90,7 +90,7 @@ nm_device_bluetooth_refresh_ui (NetDeviceBluetooth *self)
|
|
|
|
update_off_switch_from_device_state (self->device_off_switch, state, self);
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
/* set up the Options button */
|
|
|
|
- path = g_find_program_in_path ("nm-connection-editor");
|
|
|
|
+ path = g_find_program_in_path ("@networkmanagerapplet@/bin/nm-connection-editor");
|
|
|
|
gtk_widget_set_visible (GTK_WIDGET (self->options_button), state != NM_DEVICE_STATE_UNMANAGED && path != NULL);
|
|
|
|
}
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
@@ -141,7 +141,7 @@ options_button_clicked_cb (NetDeviceBluetooth *self)
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
connection = net_device_get_find_connection (self->client, self->device);
|
|
|
|
uuid = nm_connection_get_uuid (connection);
|
2019-03-03 19:23:25 +01:00
|
|
|
- cmdline = g_strdup_printf ("nm-connection-editor --edit %s", uuid);
|
|
|
|
+ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --edit %s", uuid);
|
|
|
|
g_debug ("Launching '%s'\n", cmdline);
|
2020-02-09 01:35:52 +01:00
|
|
|
if (!g_spawn_command_line_async (cmdline, &error))
|
2019-03-03 19:23:25 +01:00
|
|
|
g_warning ("Failed to launch nm-connection-editor: %s", error->message);
|
2020-02-09 01:35:52 +01:00
|
|
|
@@ -185,7 +185,7 @@ net_device_bluetooth_init (NetDeviceBluetooth *self)
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
gtk_widget_init_template (GTK_WIDGET (self));
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
- path = g_find_program_in_path ("nm-connection-editor");
|
|
|
|
+ path = g_find_program_in_path ("@networkmanagerapplet@/bin/nm-connection-editor");
|
|
|
|
gtk_widget_set_visible (GTK_WIDGET (self->options_button), path != NULL);
|
|
|
|
}
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index 34eb86241..50d0a2bed 100644
|
2020-02-09 01:35:52 +01:00
|
|
|
--- a/panels/network/net-device-mobile.c
|
|
|
|
+++ b/panels/network/net-device-mobile.c
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -508,7 +508,7 @@ options_button_clicked_cb (NetDeviceMobile *self)
|
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
connection = net_device_get_find_connection (self->client, self->device);
|
2019-03-03 19:23:25 +01:00
|
|
|
uuid = nm_connection_get_uuid (connection);
|
|
|
|
- cmdline = g_strdup_printf ("nm-connection-editor --edit %s", uuid);
|
|
|
|
+ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --edit %s", uuid);
|
|
|
|
g_debug ("Launching '%s'\n", cmdline);
|
2020-02-09 01:35:52 +01:00
|
|
|
if (!g_spawn_command_line_async (cmdline, &error))
|
2019-03-03 19:23:25 +01:00
|
|
|
g_warning ("Failed to launch nm-connection-editor: %s", error->message);
|
2021-03-21 06:15:46 +01:00
|
|
|
@@ -797,7 +797,7 @@ net_device_mobile_init (NetDeviceMobile *self)
|
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
self->cancellable = g_cancellable_new ();
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2020-02-09 01:35:52 +01:00
|
|
|
- path = g_find_program_in_path ("nm-connection-editor");
|
|
|
|
+ path = g_find_program_in_path ("@networkmanagerapplet@/bin/nm-connection-editor");
|
|
|
|
gtk_widget_set_visible (GTK_WIDGET (self->options_button), path != NULL);
|
|
|
|
}
|
2021-03-21 06:15:46 +01:00
|
|
|
|
2019-03-03 19:23:25 +01:00
|
|
|
diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index a31a606e3..ed5133d29 100644
|
2019-03-03 19:23:25 +01:00
|
|
|
--- a/panels/printers/pp-host.c
|
|
|
|
+++ b/panels/printers/pp-host.c
|
|
|
|
@@ -256,7 +256,7 @@ _pp_host_get_snmp_devices_thread (GTask *task,
|
2021-03-21 06:15:46 +01:00
|
|
|
devices = g_ptr_array_new_with_free_func (g_object_unref);
|
2019-03-03 19:23:25 +01:00
|
|
|
|
|
|
|
argv = g_new0 (gchar *, 3);
|
|
|
|
- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp");
|
|
|
|
+ argv[0] = g_strdup ("@cups@/lib/cups/backend/snmp");
|
|
|
|
argv[1] = g_strdup (priv->hostname);
|
|
|
|
|
|
|
|
/* Use SNMP to get printer's informations */
|
|
|
|
diff --git a/panels/user-accounts/run-passwd.c b/panels/user-accounts/run-passwd.c
|
2021-03-21 06:15:46 +01:00
|
|
|
index 86f53d4fc..0b052856f 100644
|
2019-03-03 19:23:25 +01:00
|
|
|
--- a/panels/user-accounts/run-passwd.c
|
|
|
|
+++ b/panels/user-accounts/run-passwd.c
|
|
|
|
@@ -150,7 +150,7 @@ spawn_passwd (PasswdHandler *passwd_handler, GError **error)
|
|
|
|
gchar **envp;
|
|
|
|
gint my_stdin, my_stdout, my_stderr;
|
|
|
|
|
|
|
|
- argv[0] = "/usr/bin/passwd"; /* Is it safe to rely on a hard-coded path? */
|
|
|
|
+ argv[0] = "/run/wrappers/bin/passwd"; /* Is it safe to rely on a hard-coded path? */
|
|
|
|
argv[1] = NULL;
|
|
|
|
|
|
|
|
envp = g_get_environ ();
|
|
|
|
diff --git a/tests/datetime/test-endianess.c b/tests/datetime/test-endianess.c
|
|
|
|
index 9cb92007a..84d2f0fa3 100644
|
2018-09-05 02:46:15 +02:00
|
|
|
--- a/tests/datetime/test-endianess.c
|
|
|
|
+++ b/tests/datetime/test-endianess.c
|
2019-03-03 19:23:25 +01:00
|
|
|
@@ -26,7 +26,7 @@ test_endianess (void)
|
2018-09-05 02:46:15 +02:00
|
|
|
g_autoptr(GDir) dir = NULL;
|
|
|
|
const char *name;
|
|
|
|
|
|
|
|
- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL);
|
|
|
|
+ dir = g_dir_open ("@glibc@/share/i18n/locales/", 0, NULL);
|
|
|
|
if (dir == NULL) {
|
|
|
|
/* Try with /usr/share/locale/
|
|
|
|
* https://bugzilla.gnome.org/show_bug.cgi?id=646780 */
|