File: 20_change_gpl_location.patch

package info (click to toggle)
geany 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,300 kB
  • sloc: ansic: 168,600; cpp: 77,562; sh: 5,344; makefile: 1,694; cs: 1,233; javascript: 1,024; python: 580; f90: 537; vhdl: 504; sql: 503; lisp: 436; fortran: 389; php: 278; ada: 201; ruby: 163; java: 131; asm: 131; perl: 119; cobol: 88; tcl: 77; erlang: 73; xml: 66; ml: 27; sed: 16; pascal: 15; haskell: 6
file content (22 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?Dami=C3=A1n_Viano?= <des@debian.org>
Date: Wed, 25 Oct 2023 11:04:58 +0800
Subject: Small patch to use common-licenses

===================================================================
---
 src/about.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/about.c b/src/about.c
index d257e46..5d1d4cc 100644
--- a/src/about.c
+++ b/src/about.c
@@ -452,7 +452,7 @@ static GtkWidget *create_dialog(void)
 	label = gtk_label_new(_("License"));
 	gtk_widget_show(label);
 
-	g_snprintf(buffer, sizeof(buffer), "%s" G_DIR_SEPARATOR_S "GPL-2", app->datadir);
+	g_snprintf(buffer, sizeof(buffer), "/usr/share/common-licenses/GPL-2");
 
 	g_file_get_contents(buffer, &license_text, NULL, NULL);
 	if (license_text == NULL)