vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.49k stars 96 forks source link

Does not work when 2 user accounts on machine run it #570

Closed richardARPANET closed 1 year ago

richardARPANET commented 1 year ago

Problem:

Login to user account A on linux machine, run the app Switch to user account B on same machine, run the app, won't start

Must sudo pkill electron-mail to start it.

vladimiry commented 1 year ago

The app by design enforces single instance use. If it's already executed, then on new start it should activate and focus its window.

richardARPANET commented 1 year ago

Why? When you could just store all state for the application in the $HOME dir and run multiple instances on 1 machine?

vladimiry commented 1 year ago

Easier implementation and very rare need. If for some reason you need to run several app instances with the individual state, you can run for example deb/pacman+flatpak apps (flaptak keeps state in ~/.var/.com.github.vladimiry.ElectronMail).