Open current tint2 config automatically when started from tint2

This commit is contained in:
o9000
2017-04-22 19:07:49 +02:00
parent affac4cfa6
commit 701b57e113
17 changed files with 98 additions and 113 deletions

View File

@@ -340,6 +340,10 @@ int main(int argc, char **argv)
if (argc > 0) {
load_specific_themes(argv, argc);
g_timeout_add(SNAPSHOT_TICK, edit_theme, NULL);
} else if (getenv("TINT2_CONFIG")) {
char *themes[2] = {getenv("TINT2_CONFIG"), NULL};
load_specific_themes(themes, 1);
g_timeout_add(SNAPSHOT_TICK, edit_theme, NULL);
}
gtk_widget_show_all(g_window);