aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/easystroke/files
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/easystroke/files')
-rw-r--r--deskutils/easystroke/files/patch-Makefile14
-rw-r--r--deskutils/easystroke/files/patch-main.cc11
2 files changed, 25 insertions, 0 deletions
diff --git a/deskutils/easystroke/files/patch-Makefile b/deskutils/easystroke/files/patch-Makefile
new file mode 100644
index 000000000000..b3a0b083fd35
--- /dev/null
+++ b/deskutils/easystroke/files/patch-Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig 2013-02-14 11:04:30.880047783 +0100
++++ Makefile 2013-02-14 11:05:05.096047700 +0100
+@@ -78,9 +78,9 @@
+ easystroke.desktop: easystroke.desktop.in $(MOFILES)
+ intltool-merge po/ -d -u $< $@
+
+-desktop.c: easystroke.desktop
++desktop.c:
+ echo "const char *desktop_file = \"\\" > $@
+- sed 's/Exec=easystroke/Exec=%s/' $< | sed 's/"/\\"/g' | sed 's/.*/&\\n\\/' >> $@
++ sed 's/Exec=easystroke/Exec=%s/' easystroke.desktop | sed 's/"/\\"/g' | sed 's/.*/&\\n\\/' >> $@
+ echo "\";" >> $@
+
+ dbus-server.cc: dbus-server.h
diff --git a/deskutils/easystroke/files/patch-main.cc b/deskutils/easystroke/files/patch-main.cc
new file mode 100644
index 000000000000..443fb5665d92
--- /dev/null
+++ b/deskutils/easystroke/files/patch-main.cc
@@ -0,0 +1,11 @@
+--- main.cc~ 2012-10-06 08:07:11.000000000 +0200
++++ main.cc 2013-02-12 17:29:51.103190380 +0100
+@@ -1350,7 +1350,7 @@
+ config_dir += "/.easystroke";
+ }
+ struct stat st;
+- char *name = canonicalize_file_name(config_dir.c_str());
++ char *name = realpath(config_dir.c_str(), NULL);
+
+ // check if the directory does not exist
+ if (lstat(name, &st) == -1) {