summaryrefslogtreecommitdiff
path: root/mut/bin/desktop-open-pipe
blob: 0ef1901ad9c971f4edef38540a2c3cc327ab3fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
name="$HOME/.cache/desktop-open.pipe"
while true; do
  {
  /nix/store/zcw13r2mmpzlnv2yvfl13mcpky3hivq1-system-path/bin/xdg-open "$(cat "$name")"
} >/dev/null 2>&1
done

finish () {
  rm -vf "$name"
}

trap finish EXIT