mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +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 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) {
|
||||
// return true
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue