1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 11_fix_autostart_when_directory_does_not_exist.dpatch by Christopher James Halse Rogers <raof@ubuntu.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Pull patch from bzr lp:do r1272 to fix setting of autostart when the
6
## DP: ~/.config/autostart directory does not exist, such as when GNOME Do
7
## DP: is the first app to try to set user-local autostart.
10
=== modified file 'Do.Platform.Linux/src/Do.Platform/Do.Platform.Linux/SystemService.cs'
11
diff -urNad gnome-do-0.8.2~/Do.Platform.Linux/src/Do.Platform/Do.Platform.Linux/SystemService.cs gnome-do-0.8.2/Do.Platform.Linux/src/Do.Platform/Do.Platform.Linux/SystemService.cs
12
--- gnome-do-0.8.2~/Do.Platform.Linux/src/Do.Platform/Do.Platform.Linux/SystemService.cs 2009-06-24 03:12:20 +0000
13
+++ gnome-do-0.8.2/Do.Platform.Linux/src/Do.Platform/Do.Platform.Linux/SystemService.cs 2009-07-01 18:04:57 +0000
19
using System.Reflection;
23
autostartfile = DesktopItem.NewFromFile (System.IO.Path.Combine (AssemblyInfo.InstallData, "applications/gnome-do.desktop"),
24
DesktopItemLoadFlags.NoTranslations);
26
+ if (!Directory.Exists (AutoStartDir))
27
+ Directory.CreateDirectory (AutoStartDir);
29
autostartfile.Save (AutoStartUri, true);
30
autostartfile.Location = AutoStartUri;
31
} catch (Exception e) {