[Portland] xdg-utils patch: execute bit on .desktop files

Damjan Jovanovic damjan.jov at gmail.com
Fri Jun 4 07:02:33 PDT 2010


Hi

xdg-desktop-icon doesn't set the execute bit on .desktop files in
copies into ~/Desktop, so the file doesn't work (wrong icon,
double-click complains about untrusted application launcher).

The attached patch makes xdg-desktop-icon set the execute bit.

By the way, where is the right place to send patches?

Thank you
Damjan Jovanovic
-------------- next part --------------
Index: xdg-desktop-icon
===================================================================
RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-desktop-icon,v
retrieving revision 1.23
diff -u -r1.23 xdg-desktop-icon
--- xdg-desktop-icon	1 Mar 2010 06:55:00 -0000	1.23
+++ xdg-desktop-icon	4 Jun 2010 14:01:52 -0000
@@ -532,6 +532,7 @@
         for x in $desktop_dir ; do
             mkdir -p $x
             eval 'cp $desktop_file $x/$basefile'$xdg_redirect_output
+            chmod u+x $x/$basefile
         done
 
         umask $save_umask
Index: xdg-desktop-icon.in
===================================================================
RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-desktop-icon.in,v
retrieving revision 1.10
diff -u -r1.10 xdg-desktop-icon.in
--- xdg-desktop-icon.in	23 Feb 2010 14:39:04 -0000	1.10
+++ xdg-desktop-icon.in	4 Jun 2010 14:01:52 -0000
@@ -133,6 +133,7 @@
         for x in $desktop_dir ; do
             mkdir -p $x
             eval 'cp $desktop_file $x/$basefile'$xdg_redirect_output
+            chmod u+x $x/$basefile
         done
 
         umask $save_umask


More information about the Portland mailing list