Blob Blame History Raw
diff -up gnome-applets-2.21.4/cpufreq/src/cpufreq-utils.c.cpufreq gnome-applets-2.21.4/cpufreq/src/cpufreq-utils.c
--- gnome-applets-2.21.4/cpufreq/src/cpufreq-utils.c.cpufreq	2008-01-03 15:36:29.000000000 -0500
+++ gnome-applets-2.21.4/cpufreq/src/cpufreq-utils.c	2008-01-16 01:28:07.000000000 -0500
@@ -109,6 +109,9 @@ cpufreq_utils_selector_is_available (voi
 	if (!path)
 		return FALSE;
 
+	g_free (path);
+	return TRUE;
+
 	if (geteuid () == 0) {
 		g_free (path);
 		return TRUE;
diff -up gnome-applets-2.21.4/cpufreq/src/cpufreq-popup.c.cpufreq gnome-applets-2.21.4/cpufreq/src/cpufreq-popup.c
--- gnome-applets-2.21.4/cpufreq/src/cpufreq-popup.c.cpufreq	2008-01-03 15:36:29.000000000 -0500
+++ gnome-applets-2.21.4/cpufreq/src/cpufreq-popup.c	2008-01-16 01:27:14.000000000 -0500
@@ -176,20 +176,13 @@ static void
 cpufreq_popup_run_selector (CPUFreqPopup *popup,
 			    const gchar  *params)
 {
-	gchar  *path;
 	guint   cpu;
 	gchar  *command;
 	GError *error = NULL;
 
-	path = g_find_program_in_path ("cpufreq-selector");
-
-	if (!path)
-		return;
-
 	cpu = cpufreq_monitor_get_cpu (popup->priv->monitor);
 
-	command = g_strdup_printf ("%s -c %d %s", path, cpu, params);
-	g_free (path);
+	command = g_strdup_printf ("/usr/bin/cpufreq-selector -c %d %s", cpu, params);
 
 	g_spawn_command_line_async (command, &error);
 	g_free (command);