Codebase list guitarix / 55496e8
Imported Debian patch 0.10.0-2 Roland Stigge authored 13 years ago Ross Gammon committed 8 years ago
3 changed file(s) with 33 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 guitarix (0.10.0-2) unstable; urgency=low
1
2 * Add patch to create rc file on startup, backport from upstream's 0.11.0 for
3 squeeze's 0.10.0 line (Closes: #592227)
4
5 -- Roland Stigge <stigge@antcom.de> Sun, 08 Aug 2010 20:38:28 +0200
6
07 guitarix (0.10.0-1) unstable; urgency=low
18
29 * First revision in Debian (Closes: #543923)
0 Description: Create rc file on startup
1 This patch makes guitarix create the necessary rc file on startup. Otherwise,
2 presets don't work. It is a backport from upstream's 0.11.0 where the issue is
3 already fixed.
4 Author: Roland Stigge <stigge@antcom.de>
5 Bug-Debian: http://bugs.debian.org/592227
6
7 --- guitarix-0.10.0.orig/src/gx_system.cpp
8 +++ guitarix-0.10.0/src/gx_system.cpp
9 @@ -1242,6 +1242,15 @@ bool gx_version_check()
10 cim = string("echo 'guitarix-") + string(GX_VERSION) + "' >";
11 (void)gx_system_call(cim.c_str(), tmpstr.c_str(), false);
12
13 + // create empty preset file
14 + tmpstr = gx_user_dir + string("guitarixpre_rc");
15 + ofstream nfile(tmpstr.c_str());
16 + JsonWriter jw(nfile);
17 + jw.begin_array();
18 + writeHeader(jw);
19 + jw.end_array(true);
20 + jw.close();
21 + nfile.close();
22
23 }
24
0 fix-rcfile-on-startup.patch