Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
I am trying to get gmail notifier to run at startup. I went to my /home/mike/.kde/autostart folder and created a new test file called notifier.py. Then in that file I typed the following lines.
When I login instead of the script running it just opens the text file. I googled for the answer to this undeniably simple question, but so far I can't find it. Would someone please point me in the direction? Thanks so much for any assistance.
Mike
Note: I am running Mandriva Linux 2008.1 with KDE. Thanks!
Oh, one more thing, is /usr/share an appropriate place to put the gmail-notify folder? I don't know I am a newb.
Last edited by mpmackenna; 07-17-2008 at 10:46 PM.
Is notifier.py executable? Just because it's a python script doesn't make it executable. You have to set the executable bit: as root,
chmod u+x /usr/share/gmail-notify/notifier.py
Is notifier.py executable? Just because it's a python script doesn't make it executable. You have to set the executable bit: as root,
chmod u+x /usr/share/gmail-notify/notifier.py
Still no dice... I think it was set as executable already. User mike has rwx rights to begin with and I ran that command as well. Still cant double click on my notifier.py shortcut and have the program launch.
Thanks for the response.
The safe way : make a script (in e.g. /usr/local/bin)
and make the "script.sh" an entry in Autostart.
Regards
Same issue, I put a text file named notify.sh in ~/.kde/Autostart/ and when I login it just opens KWrite with the text of the script instead of running the commands.
I used your script with the following statements.
Code:
#!/bin/sh
cd /usr/share/gmail-notify/
exec python notifier.py
In my experience stuff in ~/.kde/Autostart has to be a .desktop entry. You can just stick scripts in to ~/.kde/shutdown though which strikes me as rather inconsistent, but there you go.
Anyway, try this: In ~/.kde/Autostart make a file called gmailnotifyer.desktop that contains the following:
In my experience stuff in ~/.kde/Autostart has to be a .desktop entry. You can just stick scripts in to ~/.kde/shutdown though which strikes me as rather inconsistent, but there you go.
Anyway, try this: In ~/.kde/Autostart make a file called gmailnotifyer.desktop that contains the following:
I put in $!/usr/bin/python, which should have been #!/usr/bin/python
I run some bash scripts in my autostart; I do not think it HAS to be a .desktop file.
Yeah I caught your typo and corrected it for the test. It seems odd to me too that it would need to be a .desktop file, but that is the only thing that seems to be working for me at the moment. Thanks.
Time has passed. On Kde5 one can do:
Start -> Search: autostart
In the 'Script File' section click on 'Add Script...' -> 'Shell script path:' -> OK -> 'Run On': default is 'Startup'.
That's it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.