tint2conf: Add mime type and full support for editing by path

This commit is contained in:
o9000
2017-04-22 19:31:59 +02:00
parent 5646dca8b7
commit 49b41667ad
4 changed files with 11 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ gboolean endswith(const char *str, const char *suffix)
// Returns TRUE if the theme file is in ~/.config.
gboolean theme_is_editable(const char *filepath)
{
return startswith(filepath, g_get_user_config_dir());
return access(filepath, W_OK) == 0;
}
// Returns TRUE if the theme file is ~/.config/tint2/tint2rc.