Skip to content

Commit

Permalink
Изменено месторасположение временных файлов с /var/tmp на ~/.local/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Rirusha committed Dec 7, 2023
1 parent 62e59f8 commit 279c00e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/client/cachier/storager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ namespace CassetteClient.Cachier {
}

string home_dir = Environment.get_home_dir ();
string temp_dir;
string temp_dir = Environment.get_user_cache_dir ();

public string log_file_path { get; private set; }
public string cookies_file_path { get; private set; }
public string db_file_path { get; private set; }
Expand All @@ -152,12 +153,6 @@ namespace CassetteClient.Cachier {
}

construct {
if (File.new_for_path ("/var/tmp").query_exists ()) {
temp_dir = "/var/tmp";
} else {
temp_dir = Environment.get_tmp_dir ();
}

settings.bind ("cache-path", this, "cache-path", SettingsBindFlags.DEFAULT);
// temp_track_path = Path.build_filename (get_path ("cur", true), "track");
temp_track_path = Path.build_filename (temp_dir, "track");
Expand Down

0 comments on commit 279c00e

Please sign in to comment.