Pipewire-jack and Jack2 Conflict

  1 #!/bin/bash
  2 set -e
  3
  4 fix_jack2_confilict() {
  5     if pacman -Qq pipewire-jack &> /dev/null; then
  6         local jack2=false
  7         local jack2_dbus=false
  8         local lib32_jack=false
  9         pacman -Qq jack2 &> /dev/null && jack2=true
 10         pacman -Qq jack2-dbus &> /dev/null && jack2=true
 11         pacman -Qq lib32-jack2 &> /dev/null && lib32_jack=true
 12         if [ "$jack2" == true ] || [ "$jack2_dbus" == true ]; then
 13             echo -e "\n\033[1;33m-->\033[1;34m Addressing jack2  conflict..\033[0m" 
 14         fi
 15         if [ "$jack2_dbus" == true ]; then
 16             pacman -R jack2-dbus --noconfirm
 17         fi
 18         if [ "$jack2" == true ]; then
 19             pacman -Rdd jack2 --noconfirm
 20         fi
 21         if [ "$lib32_jack" == true ]; then
 22             # Most hacky thing I've ever done
 23             # Goal: Get pacman to properly install lib32-pipewire-
 24             SNAP_PAC_SKIP=y SKIP_AUTOSNAP= pacman --dbonly -U http
 25             pacman -Rdd lib32-jack2 --noconfirm
 26         fi
 27     fi
 28 }

Line 22: "Most hacky thing I've ever done"

:rofl: :laughing: :joy:

2 Likes

Seems there are missing chars? :thinking:

1 Like

:stuck_out_tongue_winking_eye: Good eye! I just copied and pasted but a piece was missing somehow (micro weirdness :man_shrugging: ).

Hey! Iā€™m not getting paid enough to implement proper fixes! Iā€™m not getting paid at all actuallyā€¦ I should ask for a raise xP

3 Likes

You deserve to be making a thousand times your current wage! Oh wait...:thinking:

Did you put together the new garuda-inxi script as well? That was brilliant putting in the piece that detects a Windows dual-boot! :clap:

2 Likes

Yep that was me :stuck_out_tongue:

7 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.