summaryrefslogtreecommitdiff
path: root/debian/patches/debian-copying.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian-copying.diff')
-rw-r--r--debian/patches/debian-copying.diff22
1 files changed, 22 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);
+ }
+