78 lines
3 KiB
Diff
78 lines
3 KiB
Diff
--- a/panels/color/cc-color-panel.c
|
|
+++ b/panels/color/cc-color-panel.c
|
|
@@ -599,7 +599,7 @@
|
|
|
|
/* run with modal set */
|
|
argv = g_ptr_array_new_with_free_func (g_free);
|
|
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-calibrate", NULL));
|
|
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-calibrate", NULL));
|
|
g_ptr_array_add (argv, g_strdup ("--device"));
|
|
g_ptr_array_add (argv, g_strdup (cd_device_get_id (prefs->current_device)));
|
|
g_ptr_array_add (argv, g_strdup ("--parent-window"));
|
|
@@ -1038,7 +1038,7 @@
|
|
|
|
/* open up gcm-viewer as a info pane */
|
|
argv = g_ptr_array_new_with_free_func (g_free);
|
|
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-viewer", NULL));
|
|
+ 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"));
|
|
@@ -1288,15 +1288,12 @@
|
|
static void
|
|
gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device)
|
|
{
|
|
- g_autofree gchar *s = NULL;
|
|
-
|
|
/* get profile */
|
|
g_debug ("selected profile = %s",
|
|
cd_profile_get_filename (profile));
|
|
|
|
/* 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)
|
|
gtk_widget_set_sensitive (prefs->toolbutton_profile_view, TRUE);
|
|
else
|
|
gtk_widget_set_sensitive (prefs->toolbutton_profile_view, FALSE);
|
|
--- a/panels/datetime/tz.h
|
|
+++ b/panels/datetime/tz.h
|
|
@@ -27,11 +27,7 @@
|
|
|
|
#include <glib.h>
|
|
|
|
-#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;
|
|
--- a/panels/region/cc-region-panel.c
|
|
+++ b/panels/region/cc-region-panel.c
|
|
@@ -1265,10 +1265,10 @@
|
|
}
|
|
|
|
if (variant && 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, 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);
|
|
--- a/tests/datetime/test-endianess.c
|
|
+++ b/tests/datetime/test-endianess.c
|
|
@@ -26,7 +26,7 @@
|
|
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 */
|