rpm-recordmydesktop/recordmydesktop-var-tmp.patch

36 lines
1.4 KiB
Diff

--- src/rmd_initialize_data.c.orig 2015-04-03 10:40:24.785080213 +0100
+++ src/rmd_initialize_data.c 2015-04-03 10:41:04.064554483 +0100
@@ -239,8 +239,8 @@
args->device = (char *) malloc(strlen(DEFAULT_AUDIO_DEVICE) + 1);
strcpy(args->device, DEFAULT_AUDIO_DEVICE);
- args->workdir = (char *) malloc(5);
- strcpy(args->workdir, "/tmp");
+ args->workdir = (char *) malloc(9);
+ strcpy(args->workdir, "/var/tmp");
args->pause_shortcut = (char *) malloc(15);
strcpy(args->pause_shortcut, "Control+Mod1+p");
--- src/rmd_parseargs.c.orig 2015-04-03 10:43:47.311369535 +0100
+++ src/rmd_parseargs.c 2015-04-03 10:44:02.364168064 +0100
@@ -123,7 +123,7 @@
"\t--compress-cache\tImage data are cached with light compression.\n"
"\t--workdir DIR\t\tLocation where a temporary directory"
- " will be created to hold project files(default $HOME).\n"
+ " will be created to hold project files(default /var/tmp).\n"
"\t--delay n[H|h|M|m]\tNumber of secs(default),minutes or hours"
" before capture starts(number can be float)\n"
--- doc/recordmydesktop.1.orig 2015-04-03 10:45:20.907116818 +0100
+++ doc/recordmydesktop.1 2015-04-03 10:45:33.132953184 +0100
@@ -419,7 +419,7 @@
.TP
.B
\-\-workdir DIR
- Location where a temporary directory will be created to hold project files(default /tmp).
+ Location where a temporary directory will be created to hold project files(default /var/tmp).
.br
.TP
.B