<html><head></head><body bgcolor="#FFFFFF" text="#000000" lang="en-US" style="background-color: rgb(255, 255, 255); line-height: initial;"> <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Seems to me that "from boot" means you need to set up systemd or whatever your OS does for init.</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">If you do some searches on embedded Linux, the procedure should show up. Basically you are setting up a service. Ideally it will start up claws if it crashes. ‎Some text refers to this as hardening, but that keyword will have many rabbit holes.</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; font-size: initial; text-align: initial; line-height: initial;"><br></span></div> <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div> <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"></div> <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"> <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;"> <div><b>From: </b>sue butler</div><div><b>Sent: </b>Sunday, April 16, 2017 10:29 AM</div><div><b>To: </b>users@lists.claws-mail.org</div><div><b>Subject: </b>[Users] Running Clawsmail from boot</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style="background-color: rgb(255, 255, 255);">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Helvetica, Arial, sans-serif" size="-1">Hi<br>
My aim is to run Claws from boot, and despite trying various
methods I just cant do it, I wonder whether anyone has any
suggestions....<br>
<br>
I am relatively new to the Raspberry Pi, Linux and Claws, but have
managed to work most things out. I now have Clawsmail with the
Python Plugin running on a Raspberry Pi. (Noobs setup) It runs
just fine, and I am really pleased with it. There are no issues
at all when I start it from the desktop screen. I have a Python
plugin script that runs when email arrives from specific accounts
. This too works fine.<br>
<br>
My problems arose when trying to start Clawsmail from boot...<br>
<br>
</font><font face="Helvetica, Arial, sans-serif" size="-1"><font face="Helvetica, Arial, sans-serif" size="-1">Initially I
thought the lack of success was my inability to use crontab
correctly, so downloaded the very simple Gnome Scheduler. In
this I have tried 3 different approaches:<br>
Running the python script mentioned below<br>
Using a shell script <br>
Just putting "claws-mail" <br>
At the moment I am trying to run these on an hourly schedule,
rather than on reboot, but none appear to work. (Other scripts,
not related to Claws, work fine.) <br>
<br>
</font> I have a simple Python3 script which is designed to check
the internet connection, and then start Claws. When it is run from
the command line it opens Claws, but with output:<br>
<br>
<i>** (claws-mail:4201): WARNING **: Trying to register gtype
'GtkCMUnit' as enum when in fact it is of type 'gint'</i><br>
<br>
in this case, the prompt line reappears once Claws is loaded and
the warning has been printed out. Claws appears to work normally.<br>
<br>
When I start Claws from the command line </font><font face="Helvetica, Arial, sans-serif" size="-1"><font face="Helvetica, Arial, sans-serif" size="-1">using<i> $
claws-mail</i></font> I get a similar response, but the
command line hangs until I use ^C although Claws starts up and
runs OK.<br>
If I receive mail that triggers the Python Plugin before hitting
^C then I get another line of output:</font><font face="Helvetica,
Arial, sans-serif" size="-1"><br>
<br>
<i>sys:1: Warning:
/build/glib2.0-tTvduh/glib2.0-2.42.1/./gobject/gsignal.c:2540:
handler '4014' of instance '0x603300' is not blocked </i><br>
<br>
Sometimes I am then unable to shut claws down normally, after
these messages, and even "killing" it takes a long time. BUT if I
close the command line window after </font><font face="Helvetica,
Arial, sans-serif" size="-1"><font face="Helvetica, Arial,
sans-serif" size="-1"><font face="Helvetica, Arial, sans-serif" size="-1"><i>$ claws-mail</i></font></font> then Claws closes
too.<br>
<br>
I suspect that this is the reason that my attempts to run any
programs to start Claws from boot result in no action at all -
.maybe Claws opens, but then immediately shuts down?<br>
<br>
Any advice gratefully received,<br>
<br>
Thank you,<br>
Sue<br>
<br>
<br>
</font><br>
<br>
<br>
<br>
<br>
<br><!--end of _originalContent --></div></body></html>