I am trying to start django with a Desktop Entry file and open a chromium browser in kiosk mode to show a locally served website which shows some weather reports for my area etc ...
I put some sleep seconds before starting up the browser because I want to wait for django to start up etc ...
Working:
[Desktop Entry]
Type=Application
Name=ChromeBrowser for weatherdata
Exec=/bin/bash -c "sleep 20 && chromium-browser --kiosk "127.0.0.1:8001" --start-fullscreen"
not working (starting django):
[Desktop Entry]
Type=Application
Name=Django Server
Exec=/bin/bash -c "python3 /home/me/app manage.py runserver 8001"
Terminal=true
I just never see an open terminal or can find a running python instance with htop. What am I missing? I also find no errors of the desktop entry process when running journalctl.
I tried to create my file using this answer. Reading the specification did not bring enlightment.
So I have two questions:
- what am I missing here?
- where would I find a log of whats happening?
- (is the only way to make this work to write an sh script that executes my django command?)
app manage.py. Besides this, it makes more sense to configure and start such background processes with systemd. – Marco May 25 '23 at 07:54/home/me/app manage.py->/home/me/app/manage.pyand now it works. Please post as answer, I will accept it. Also: Do you know anything about the logs? And why is systemd the better approach to the problem? – xtlc May 25 '23 at 07:59