Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I am using Cinnamon desktop on the top of arch linux. I wanted to load a python script at desktop login which informs me about battery stats, so I created a batterymonitor.desktop entry under ~/.config/autostart. The contents of batterymonitor.desktop are:
But the problem is that the script is not loading at cinnamon login. I have also confirmed that the script is executable.
Can you help to load this script at cinnamon login?
Regards
The only autostart user job in ~/.config I have is as follows:-
Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=SpiderOak
GenericName=File Backup and Synchronizer
Comment=Privately sync, backup, and share your data across your computers.
Comment[en_US]=Privately sync, backup, and share your data across your computers.
Icon=SpiderOak
Exec=SpiderOak
Terminal=false
Categories=Network;Archiving;Utility;
PS. PowerTop is showing that the process is running, but its not working like it used to do when I launch it from terminal.
This is just a guess...
It might be that your python script runs BEFORE there are enough desktop parts active to support it correctly. For example, the desktop is an X-Windows DISPLAY. If your script's shell cannot learn the active DISPLAY or if your script cannot get proper access, the the script will not be able to create and open an on-desktop window.
SUGGESTIONS:
There are ways for your script to wait until needed resources are available.
There are ways to impose a sequence on the various login-time applications.
If all else fails, you could insert a run-time delay (consider adding a WAIT=nn script parameter) to allow for some time passage and those resources to be active.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.