summarylogtreecommitdiffstats
path: root/pipewire.install
blob: d0db966071747f3866e30e2dfdbe8ba337d1a31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  # Enable socket by default
  systemctl --global enable pipewire.socket
  systemctl --global enable pipewire-media-session.service
}

post_upgrade() {
  if (( $(vercmp $2 0.1.6-2) < 0)); then
    systemctl --global enable pipewire.socket
  fi

  if (( $(vercmp $2 0.3.22.r61.g7cf07da3-999) < 0)); then
    systemctl --global enable pipewire-media-session.service
  fi
}

pre_remove() {
  systemctl --global disable pipewire.socket
  systemctl --global disable pipewire-media-session.service
}