From 7f18c690ad18949227aad848382805fa89612cdc Mon Sep 17 00:00:00 2001 From: Mateusz Łukasik Date: Sat, 9 Aug 2014 17:01:42 +0200 Subject: Use Debian license paths --- debian/patches/debian-copying.diff | 22 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 23 insertions(+) create mode 100644 debian/patches/debian-copying.diff 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 +--- 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 -- cgit v1.2.3