Reply To: Script to add or remove from Full or Base

Forum › Forums › antiX-development › Development › Script to add or remove from Full or Base › Reply To: Script to add or remove from Full or Base

#197337
Robin
Member

    and I will add the toggle_pipewire within the script , in the next version

    Wait for @anticapitalX, maybe he comes up with a better approach. All that is not chiselled in granite.

    You merely need to bother users with that when detecting the system is actually currently running on pipewire.
    simplest check in antiX for that is:

    if wpctl status >/dev/null 2>&1; then
        echo 'pipewire active'
        ... ‹do what you need to do here›
    else
        echo 'running on plain alsa'
        ... ‹do what you need to do here›
    fi

    which is what also Control Centre uses for pipewire status detection, and if I recollect correctly even inxi relies on that methid, I had talked with h2 when he had implemented the pipewire detection into inxi, and we came to the conclusion that this is the most reliable way.

    And then, when calling the toggle, make sure to inform users they are to actually deactivate that before proceeding, instead of just closing it with unchanged state. (You may recheck after the call whether now pipewire is actually inactive, and possibly give a warning if not. Another approach instead of calling the toggle could be to just inform the user that he is expected to take care of all that on his own before running the conversion script.)

    Windows is like a submarine. Open a window and serious problems will start.