summarylogtreecommitdiffstats
path: root/pipewire.install
blob: 10d28ad19d156892243aac38c066bed95c4ee393 (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.r46.ge340a44a-2) < 0)); then
    systemctl --global enable pipewire-media-session.service
  fi
}

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