[Users] switching claws-mail offline with a script run by root

Boffi Daniele 3daniele03 at gmail.com
Mon Oct 31 20:26:58 UTC 2022


Thanks Paul,
I tried to investigate about the sockets associated with the two
instances of claws-mail (one created by me and the duplicate instance
created by the script).

1. the first instance shows up in /run/users/myid/...
2. the second one doesn't show up in /run/
3. both instances show up in /proc/pid_of_process/... in two different
folders because they are associated with two different numbers

Is there any way I can use the info under /proc when I run the script?
Thanks!

On Mon, Oct 31, 2022 at 12:50 PM Paul <paul at claws-mail.org> wrote:
>
> On Mon, 31 Oct 2022 10:57:31 +0300
> Boffi Daniele <3daniele03 at gmail.com> wrote:
>
> > 1. the command "claws-mail --offline" has the expected effect of
> > switching offline my active instance of claws-mail.
> >
> > 2. If I run the same command from the command line (as user), instead
> > of acting on the active claws-mail, it opens a new (offline)
> > claws-mail as if the other instance was not existing.
> >
> > 3, The same as in 2. if I run the script as root (that is "sudo sudo
> > -c myusername ..."). A new offline claws-mail pops up.
> >
> > Any hint of what changed after the upgrade?
>
> Nothing changed on this side. Claws Mail uses a socket, by checking for this
> socket Claws Mail prevents running more than one user instance at the same
> time.
>
> Ubuntu 22 must have changed how these sockets work and where they are stored.
>
> with regards
>
> Paul
> _______________________________________________
> Users mailing list
> Users at lists.claws-mail.org
> https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list