mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
media controls: actually detect if plasma browser integration is installed
This commit is contained in:
parent
a08a39b620
commit
a5ffb0e021
1 changed files with 9 additions and 1 deletions
|
|
@ -25,7 +25,15 @@ Scope {
|
||||||
property real artRounding: Appearance.rounding.verysmall
|
property real artRounding: Appearance.rounding.verysmall
|
||||||
property list<real> visualizerPoints: []
|
property list<real> visualizerPoints: []
|
||||||
|
|
||||||
property bool hasPlasmaIntegration: false
|
property bool hasPlasmaIntegration: true
|
||||||
|
Process {
|
||||||
|
id: plasmaIntegrationAvailabilityCheckProc
|
||||||
|
running: true
|
||||||
|
command: ["bash", "-c", "command -v plasma-browser-integration-host"]
|
||||||
|
onExited: (exitCode, exitStatus) => {
|
||||||
|
root.hasPlasmaIntegration = (exitCode === 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
function isRealPlayer(player) {
|
function isRealPlayer(player) {
|
||||||
// return true
|
// return true
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue