File gummi-predictable-tmpfiles.patch of Package gummi.openSUSE_Leap_42.1_Update
Index: gummi-gtk3-0.7.1/src/editor.c
===================================================================
--- gummi-gtk3-0.7.1.orig/src/editor.c
+++ gummi-gtk3-0.7.1/src/editor.c
@@ -213,10 +213,9 @@ void editor_fileinfo_update(GuEditor* ec
gchar* base = g_path_get_basename(fname);
gchar* dir = g_path_get_dirname(fname);
ec->filename = g_strdup(fname);
- ec->basename = g_strdup_printf("%s%c.%s", dir, G_DIR_SEPARATOR, base);
- ec->workfile = g_strdup_printf("%s.swp", ec->basename);
- ec->pdffile = g_strdup_printf("%s%c.%s.pdf", C_TMPDIR,
- G_DIR_SEPARATOR, base);
+ ec->basename = g_strdup (ec->fdname);
+ ec->workfile = g_strdup (ec->fdname);
+ ec->pdffile = g_strdup_printf ("%s.pdf", ec->fdname);
g_free(fname);
g_free(base);
g_free(dir);
@@ -249,12 +248,9 @@ void editor_fileinfo_cleanup(GuEditor* e
if (ec->filename) {
gchar* dirname = g_path_get_dirname(ec->filename);
gchar* basename = g_path_get_basename(ec->filename);
- auxfile = g_strdup_printf("%s%c.%s.aux", C_TMPDIR,
- G_DIR_SEPARATOR, basename);
- logfile = g_strdup_printf("%s%c.%s.log", C_TMPDIR,
- G_DIR_SEPARATOR, basename);
- syncfile = g_strdup_printf("%s%c.%s.synctex.gz", C_TMPDIR,
- G_DIR_SEPARATOR, basename);
+ auxfile = g_strdup_printf ("%s.aux", ec->fdname);
+ logfile = g_strdup_printf ("%s.log", ec->fdname);
+ syncfile = g_strdup_printf ("%s.synctex.gz", ec->fdname);
g_free(basename);
g_free(dirname);
} else {