File cairo-dock-plugins-wifi-iwconfig.patch of Package cairo-dock-plugins
From: Adam 'etamPL' Mizerski <adam@mizerski.pl>
Date: 2013-12-07 16:08:06 +0100
Subject: fix call to 'iwconfig'
In openSUSE iwconfig is in /usr/sbin, which isn't in PATH.
Therefore absolute path is required.
diff -rupN cairo-dock-plugins-3.3.2/wifi/src/applet-init.c cairo-dock-plugins-3.3.2_mod/wifi/src/applet-init.c
--- cairo-dock-plugins-3.3.2/wifi/src/applet-init.c 2013-10-03 13:04:33.000000000 +0200
+++ cairo-dock-plugins-3.3.2_mod/wifi/src/applet-init.c 2013-12-07 16:07:16.187863628 +0100
@@ -98,7 +98,7 @@ static void _set_iwconfig_path (GldiModu
{
g_free (cResult);
// if '/sbin' is not in $PATH
- myData.cIWConfigPath = g_strdup ("/sbin/iwconfig");
+ myData.cIWConfigPath = g_strdup ("/usr/sbin/iwconfig");
}
}