[Patch] wineshelllink full implementation of KDE3 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Finished off KDE3 support for wineshelllink, note that
it checks for ~/.kde3/share/applnk instead of ~/.kde3
because not all distros read the menu from ~/.kde3
yet, so this makes it so that only distros that DO
read from ~/.kde3 use it and otherwise not...  this
also corrects a case where users have more than 1
version of kde installed, so that menu items get put
in the kde home for each version, not just the one
that is listed first...

-Dustin

P.S. Guess I should pay more attention to whether or
not I have attached the file ;)

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
--- wineshelllink	Tue May 14 18:20:45 2002
+++ wineshelllink.new	Wed May 22 08:58:25 2002
@@ -200,12 +200,37 @@
   if [ $mode = "menu" ]
   then
     gnome_entry > "$HOME/.kde2/share/applnk/Wine/$link.desktop"
-  elif [ -d "$HOME/Desktop" ]
+  else
+    if [ -d "$HOME/Desktop2" ]
+    then
+      gnome_entry > "$HOME/Desktop2/$link.desktop"
+    fi
+    if [ -d "$HOME/Desktop" ]
+    then
+      gnome_entry > "$HOME/Desktop/$link.desktop"
+    fi
+  fi
+fi
+
+if [ -d "$HOME/.kde3/share/applnk" ]
+then
+  copy_icon "$HOME/.kde3/share/applnk/Wine"
+  if [ $mode = "menu" ]
   then
-    gnome_entry > "$HOME/Desktop/$link.desktop"
-  elif [ -d "$HOME/Desktop2" ]
-  then
-    gnome_entry > "$HOME/Desktop2/$link.desktop"
+    gnome_entry > "$HOME/.kde3/share/applnk/Wine/$link.desktop"
+  else
+    if [ -d "$HOME/Desktop3" ]
+    then
+      gnome_entry > "$HOME/Desktop3/$link.desktop"
+    fi
+    if [ -d "$HOME/Desktop2" ]
+    then
+      gnome_entry > "$HOME/Desktop2/$link.desktop"
+    fi
+    if [ -d "$HOME/Desktop" ]
+    then
+      gnome_entry > "$HOME/Desktop/$link.desktop"
+    fi
   fi
 fi
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux