keshavbhatt / whatsie

Feature rich WhatsApp Client for Desktop Linux
MIT License
1.98k stars 59 forks source link

when using alternative home for multi instances of whatsie cannot run 2 at the same time #176

Open RobVerduijn opened 5 months ago

RobVerduijn commented 5 months ago

Hello,

I have multiple whatsapp accounts, and to make use of multiple whatsie flatpak instances I use an alternative home. When staring the flatpak I simply set the env $HOME to an alternative path (usually a sub dir in my real HOME dir) That way flatpak creates all the dirs for that instance in the alternative path and I can run multiple instances of any flatpak app. It works great for signal, also for mimbero whatsapp.

However when starting the second instance of whatsie with an alternative home, it forces the first instance into focus.

env HOME=/home/rob/work /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=whatsie --file-forwarding com.ktechpit.whatsie @@u %u @@

This also happens the other way when I start alternative home whatsie first, then starting the original whatsie forces the alternative whatsie into focus.

Can I fix this by simply setting an alternative xdg var for this ?

Cheers