Thanks for your comments. The f/ph type was quickly solved..... (thanks!).
But then it still does not work. After a couple of days experimenting and
googling I get lost. I know most systemd commend by heart now.... ;-). Now
I get the error: ac.service is not loaded properly. Error: invalid
argument. My service is now:
[Unit]
Description ....
After = graphical.target
[Service]
Type = idle
Environment="DISPLAY=:0"
XAUTHORITY *{no arguments needed?}*
ExecStart = /home/debian/eme {*etc to run Python script and make log file}*
[Install]
WantedBy=default.target
I do hope you can get me going.
Thanks in advance,
Harke
PS: I considered using autostart that works perfect on my two year old
Debian on another system with LXDE. Now LXQT is used and I can not find
this anymore.
On 15 August 2017 at 09:25, 'Roberts Maria' via BeagleBoard <
[email protected]> wrote:
>
> --------------------------------------------
> On Tue, 8/15/17, Przemek Klosowski <[email protected]> wrote:
>
> Subject: Re: [beagleboard] "no display name and no $display environment
> variable"
> To: [email protected]
> Date: Tuesday, August 15, 2017, 5:04 AM
>
>
>
> On Mon,
> Aug 14, 2017 at 6:23 AM, Harke Smits <[email protected]>
> wrote:
> Thank you
> very much, I keep on learning. My application now runs fine
> manually from XTerminal. Now I want to run the application
> on boot. I figured out a systemd service is problably the
> way to go. I managed to define that (ac.service) and run it
> on boot up. I wrote:[Unit]After =
> grafical.target[Service]Type =
> idleExecStart = /home/debian/eme {etc to run
> Python script and make log
> file}[Install]WantedBy=multi-user.target
> This sort of works but the
> application does not start: the log file gives the famous
> $DISPLAY error. I try to start my application last, so after
> the X server has been started. Maybe the
> "WantedBy" statement is wrong?
> The default setup
> in systemd starts the graphical target (btw, graphical not
> grafical), and runs the login manager which then runs
> graphical desktop manager which allows you to run your
> app.The simplest way to handle it is to use the
> 'autostart' feature of the display
> manager. You can replace the whole setup in
> systemd by doing what you are doing, but you have to take
> out the display/login manager. You will also
> need to
> addEnvironment="DISPLAY=:0" and
> maybe XAUTHORITY to the [Service}
> section
>
>
>
> --
>
> For more options, visit http://beagleboard.org/discuss
>
> ---
>
> You received this message because you are subscribed to the
> Google Groups "BeagleBoard" group.
>
> To unsubscribe from this group and stop receiving emails
> from it, send an email to [email protected].
>
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/CAC%3D1GgHE3pQKSpH4gq1V2N_PJWiZVoZMFtgT0FjOUdGP_GtebQ%
> 40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.
> n numele unei asa-zise ascutiri a luptei de clasa a organizarii si
> manifestarii dictaturiiproletariatului din teoria marxist leninista au
> fost incalcate brutal drepturi si libertati democratice elementare ale
> oamenilor. Orice forma de opozitie a fost reprimata violent. Sub acuzatia
> imaginara de tradare sabotaj sau agenti ai imperialismului a fost
> profund afectat tot corpul de elita al vietii politice si culturale
> interbelice. intre 1947-1952 au fost inscenate numeroase procese politice
> ca cel impotriva liderilor Partidului National taranesc - luliu Maniu si
> Ion Mihalache si altele ce s-au soldat cu pedepse grele la inchisoare sau
> lagare de munca unde au pierit multi adversari ai comunistilor. Au fost
> lichidate cu brutalitate incercarile de rezistenta armata din zona
> muntilor Bucegi Fagaras. S-a manifestat totusi desi firav o rezistenta
> militara la instaurarea regimului comunist. Au actionat astfel grupuri
> inarmate ca de exemplu in Banat -Tanase lonescu Blanaru Spiru in
> Oltenia -maiorul Dumitriu in Arges - Traian Marinescu Fagaras - general
> Arsanescu si fratii Arnautoiu. in cadrul constituirii noului aparat de
> stat intre 1948-1949 s-au creat Securitatea si Militia populara.
> Securitatea a devenit un instrument de teroare si represiune indreptat
> impotriva oricarui opozant al noului regim. Ea era coordonata de generali
> dintre care unii erau agenti ai serviciilor de spionaj ca A. Nikolski P.
> Bodnarenko. in 1952 si-a inceput activitatea de reprimare Alexandru
> Draghici devenit ulterior ministru de interne.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/beagleboard/s5Qhhc75e1c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/1440902704.1887955.1502781916661%40mail.yahoo.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/CAHmciaYOdZu9RVuOtpy97OiYqbKrTMjWjafdCyKsSNBU6o1tHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.