music controls: not spawn dupes if there's plasma integration

This commit is contained in:
end-4
2024-03-20 18:52:31 +07:00
parent 92ae514ca7
commit 85fc341617
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ export const hasFlatpak = !!exec(`bash -c 'command -v flatpak'`);
const LIGHTDARK_FILE_LOCATION = `${GLib.get_user_cache_dir()}/ags/user/colormode.txt`;
const colorMode = Utils.exec('bash -c "sed -n \'1p\' $HOME/.cache/ags/user/colormode.txt"');
export let darkMode = !(Utils.readFile(LIGHTDARK_FILE_LOCATION).trim() == 'light');
export const hasPlasmaIntegration = !!Utils.exec('bash -c "command -v plasma-browser-integration-host"');
export const getDistroIcon = () => {
// Arches