all repos — tint2 @ d1b959818e95591d7884a5cdbfe65491ccedf5d5

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

tint2conf: Create snapshot file in /tmp
o9000 mrovi9000@gmail.com
commit

d1b959818e95591d7884a5cdbfe65491ccedf5d5

parent

219b24cbdba457f9a59aa80ddfa8812ddf5194de

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/tint2conf/theme_view.csrc/tint2conf/theme_view.c

@@ -184,8 +184,10 @@ gtk_tree_model_get(model, &iter,

COL_THEME_FILE, &path, -1); + char fname[128]; + sprintf(fname, "tint2-%d.jpg", (int)getpid()); - gchar *snap = g_build_filename(g_get_user_config_dir(), "tint2", "snap.jpg", NULL); + gchar *snap = g_build_filename(g_get_tmp_dir(), fname, NULL); g_remove(snap); gchar *cmd = g_strdup_printf("tint2 -c \'%s\' -s \'%s\' 1>/dev/null 2>/dev/null", path, snap);

@@ -197,6 +199,8 @@ printf("snapshot NULL : %s\n", cmd);

} } g_free(cmd); + + g_remove(snap); g_free(snap); g_free(path);