<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 11:29 AM, Reindl Harald <span dir="ltr"><<a href="mailto:h.reindl@thelounge.net" target="_blank">h.reindl@thelounge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Any ideas why the terminal exit code is 0 from another terminal, but when systemd spawns it, it is 255?<br>
</blockquote>
<br></span>
that's a question for gnome developers and i din't touch anything from them until i am forced so, they probalby don't gasp the 0 is the default return code on unix/linux</blockquote><div><br></div><div>Hmmm... the return code is 0 when I start the mate-terminal from another mate-terminal. ???</div><div><br></div><div>Oh, well.</div><div><br></div><div>Thanks for the help. It works like a charm:</div><div><br></div><div><div>Oct 31 11:32:22 eruke systemd[1274]: Starting download-photos@SAMSUNG_SAMSUNG_Android_17b765cc.service...</div><div>Oct 31 11:32:25 eruke systemd[1274]: Started download-photos@SAMSUNG_SAMSUNG_Android_17b765cc.service.</div></div><div><br></div><div>and the unit for posterity:</div><div><br></div><div><div>cat ~/.config/systemd/user/download-photos@.service</div><div>[Service]</div><div>Type=oneshot</div><div>ExecStart=/usr/bin/mate-terminal --maximize --command '/usr/bin/imagdo --config-file %h/.imagdo/%I.yaml'</div><div>SuccessExitStatus=0 255</div></div><div><br></div><div>Cheers!</div><div><br></div><div>-m <br></div></div></div><div class="gmail_extra"><br></div></div>