summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/debian-copying.diff22
-rw-r--r--debian/patches/series1
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/debian-copying.diff b/debian/patches/debian-copying.diff
new file mode 100644
index 00000000..fd1f8ac8
--- /dev/null
+++ b/debian/patches/debian-copying.diff
@@ -0,0 +1,22 @@
+Description: Use Debian's licence path
+Author: Mateusz Łukasik <mati75@linuxmint.pl>
+--- a/plugins/gtkui/callbacks.c
++++ b/plugins/gtkui/callbacks.c
+@@ -376,7 +376,7 @@ on_gpl1_activate (
+ gpointer user_data)
+ {
+ char fname[PATH_MAX];
+- snprintf (fname, sizeof (fname), "%s/%s", deadbeef->get_doc_dir (), "COPYING.GPLv2");
++ snprintf (fname, sizeof (fname), "%s", "/usr/share/common-licenses/GPL-2");
+ gtkui_show_info_window (fname, "GNU GENERAL PUBLIC LICENSE Version 2", &gplwindow);
+ }
+
+@@ -387,7 +387,7 @@ on_lgpl1_activate (
+ gpointer user_data)
+ {
+ char fname[PATH_MAX];
+- snprintf (fname, sizeof (fname), "%s/%s", deadbeef->get_doc_dir (), "COPYING.LGPLv2.1");
++ snprintf (fname, sizeof (fname), "%s", "/usr/share/common-licenses/LGPL-2.1");
+ gtkui_show_info_window (fname, "GNU LESSER GENERAL PUBLIC LICENSE Version 2.1", &lgplwindow);
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index e476505e..870bc28d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ mp4ff-spelling-psychedelic.diff
gtkui-grammar-allows-setting.diff
gtkui-grammar-allows-setting-2.diff
desktop-keywords.diff
+debian-copying.diff