summaryrefslogtreecommitdiff
path: root/services/players.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/players.ts')
-rw-r--r--services/players.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/players.ts b/services/players.ts
index 2a32960..3313595 100644
--- a/services/players.ts
+++ b/services/players.ts
@@ -1,4 +1,4 @@
-import { execAsync, GLib, GObject, property, readFile, register, writeFileAsync } from "astal";
+import { GLib, GObject, property, readFile, register, writeFileAsync } from "astal";
import AstalMpris from "gi://AstalMpris";
import { CACHE_DIR } from "../utils/constants";
import { isRealPlayer } from "../utils/mpris";
@@ -89,9 +89,7 @@ export default class Players extends GObject.Object {
}
#save() {
- execAsync(`mkdir -p ${CACHE_DIR}`)
- .then(() => writeFileAsync(this.#path, this.#players.map(p => p.busName).join("\n")).catch(console.error))
- .catch(console.error);
+ writeFileAsync(this.#path, this.#players.map(p => p.busName).join("\n")).catch(console.error);
}
#connectPlayerSignals(player: AstalMpris.Player) {