as_root-start_pipewire_gdm.sh 425 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # fail if any commands fails
  3. #set -e
  4. # debug log
  5. #set -x
  6. if [ ! -f /etc/xdg/autostart/pipewire.desktop ]; then
  7. {
  8. echo "[Desktop Entry]"
  9. echo "Type=Application"
  10. echo "Name=Pipewire"
  11. echo "Exec=/usr/local/bin/startpipewire"
  12. }>/etc/xdg/autostart/pipewire.desktop
  13. cat /etc/xdg/autostart/pipewire.desktop
  14. fi
  15. if [ ! -f /usr/local/bin/startpipewire ]; then
  16. cp startpipewire /usr/local/bin/
  17. fi