Mailing List Archive

Need a script to switch mythfrontend between 2 Mythtv backends.
Has anyone come up with a shell script to launch mythfrontend and switch
between 2 different backends; both on the same Mythtv version.

Jim A
Re: Need a script to switch mythfrontend between 2 Mythtv backends. [ In reply to ]
On 8/9/23 09:24, James Abernathy wrote:
> Has anyone come up with a shell script to launch mythfrontend and
> switch between 2 different backends; both on the same Mythtv version.
>
> Jim A
>
Hi Jim

The deb-light packaging comes with a set of utilities that let you do
this and much more. You can install multiple versions of MythTV in
different directories and switch between versions as needed.

https://github.com/MythTV/packaging/blob/master/deb-light/Readme.rst#developing-and-testing

You can set up two shortnames for the same version and have them point
to different backend servers.

Peter


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Need a script to switch mythfrontend between 2 Mythtv backends. [ In reply to ]
On Wed, Aug 9, 2023 at 9:47?AM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> On 8/9/23 09:24, James Abernathy wrote:
> > Has anyone come up with a shell script to launch mythfrontend and
> > switch between 2 different backends; both on the same Mythtv version.
> >
> > Jim A
> >
> Hi Jim
>
> The deb-light packaging comes with a set of utilities that let you do
> this and much more. You can install multiple versions of MythTV in
> different directories and switch between versions as needed.
>
>
> https://github.com/MythTV/packaging/blob/master/deb-light/Readme.rst#developing-and-testing
>
> You can set up two shortnames for the same version and have them point
> to different backend servers.
>
> Peter
>

I'm installing via the ppa so not sure these would work for me??

What I ended up with turned out to be simple.

I created 2 scripts: mythtv-kubuntu.sh and mythtv-debian.sh. These just
move the config.xml files around. Then I create KDE menu items for each and
put them in my favorites.

cat mythtv-kubuntu.sh
#!/bin/bash
cp /home/jim/.mythtv/config.xml.kubuntu /home/jim/.mythtv/config.xml
mythfrontend --platform xcb --noupnp -O libCECEnabled=0

cat mythtv-debian.sh
#!/bin/bash
cp /home/jim/.mythtv/config.xml.debian /home/jim/.mythtv/config.xml
mythfrontend --platform xcb --noupnp -O libCECEnabled=0

FYI the --platform option is needed because the TV is UHD 4K and the PC is
running Wayland.

Jim A