From 88a6c10d2862d677cc76175837644f5c32894eb5 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 5 Jan 2016 19:08:10 +1100 Subject: [PATCH] Windows XP path fix --- fetch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.sh b/fetch.sh index 63d1adce..0bbcb328 100755 --- a/fetch.sh +++ b/fetch.sh @@ -622,7 +622,8 @@ getwallpaper () { "Windows") case "$distro" in "Windows XP") - img="/cygdrive/c/Documents and Settings/${USER}/Local Settings/Application Data/Microsoft/Wallpaper1.bmp" + path="C:\\Documents and Settings\\${USER}\\Local Settings\\Application Data\\Microsoft\\Wallpaper1.bmp" + img="$(cygpath -u "${path}")" ;; "Windows"*)