Damjan Jovanovic : winemenubuilder: Make desktop files executable.

Alexandre Julliard julliard at winehq.org
Thu May 6 11:13:22 CDT 2010


Module: wine
Branch: master
Commit: ac7a24ba3530264ceae03033e5ac96387fb73e8f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ac7a24ba3530264ceae03033e5ac96387fb73e8f

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Wed May  5 22:53:57 2010 +0200

winemenubuilder: Make desktop files executable.

---

 programs/winemenubuilder/winemenubuilder.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c
index 201f9ac..4884d7e 100644
--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
@@ -2334,6 +2334,8 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link, BOOL bWait )
         if (location)
         {
             r = !write_desktop_entry(NULL, location, lastEntry, escaped_path, escaped_args, escaped_description, work_dir, icon_name);
+            if (r == 0)
+                chmod(location, 0755);
             HeapFree(GetProcessHeap(), 0, location);
         }
     }
@@ -2425,6 +2427,8 @@ static BOOL InvokeShellLinkerForURL( IUniformResourceLocatorW *url, LPCWSTR link
         if (location)
         {
             r = !write_desktop_entry(NULL, location, lastEntry, "winebrowser", escaped_urlPath, NULL, NULL, NULL);
+            if (r == 0)
+                chmod(location, 0755);
             HeapFree(GetProcessHeap(), 0, location);
         }
     }




More information about the wine-cvs mailing list