[Meson] Prepare

This commit is contained in:
2025-04-25 18:14:42 +02:00
parent 99a7a59cf7
commit 3e5136fdbb
9 changed files with 2866 additions and 95 deletions

View File

@@ -1,4 +1,4 @@
import { bind, readFile, Variable, writeFile } from "astal";
import { bind, readFile, writeFile } from "astal";
import { Gtk } from "astal/gtk4";
import AstalBluetooth from "gi://AstalBluetooth";
import BTDevice from "./Device";
@@ -74,7 +74,7 @@ const openBTPicker = () => {
};
const BluetoothPickerList = () => {
let btEnableState = readFile("./btconf") === "true" ? true : false;
let btEnableState = readFile(`${DATADIR}./btconf`) === "true" ? true : false;
bt.adapter.set_powered(btEnableState);
const updateState = () => {