This commit is contained in:
end-4
2024-02-08 02:20:31 +07:00
parent 7c0c61fb3e
commit 3cce919268
6 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -12,8 +12,8 @@ import { WWO_CODE, WEATHER_SYMBOL, NIGHT_WEATHER_SYMBOL } from '../../data/weath
const BATTERY_LOW = 20;
const WEATHER_CACHE_FOLDER = `${GLib.get_user_cache_dir()}/ags/weather`;
Utils.exec(`mkdir -p ${WEATHER_CACHE_FOLDER}`);
let WEATHER_CITY = '';
// try to read envvar AGS_WEATHER_CITY
try {
WEATHER_CITY = GLib.getenv('AGS_WEATHER_CITY');
} catch (e) {