You are not logged in.
Pages: 1
I used to have this in Ubuntu, I use gnome-schedule GUI for cron and have some other cronjobs working fine. But amarok will not play (I like to use it as a wake-up alarm). I have:
15 7 * * * export DISPLAY=:0 && amarok -tBut it doesn't work. I've tried "amarok -t" in quotes, no go. When I hit amarok -t in a terminal it play/pauses fine. ![]()
Offline
cron is trying to run amarok as root so it mayby could not get to Xsession running from different user?
Check logfile /var/log/crond and /var/log/Xorg.0.log
Mayby set up local connections to allow:
/etc/X0.hosts:
local:Now root can display X11 apps on Xsession run by different user.
PS:
You can also try running amarok as your normal user using sudo:
sudo -u YOUR_USER DISPLAY=:0 amarok -t
or smth like:
su - USER --command="amarok -t"
There's also an amarok script call smth like "wake up", you can set up time when amarok should start playing.
Last edited by MAC!EK (2008-01-04 12:41:13)
Offline
This is from my testing the cronjob last night, from /var/log/crond:
04-Jan-2008 02:01 FILE /var/spool/cron/root USER root pid 32494 cmd /usr/sbin/run-cron /etc/cron.hourly
04-Jan-2008 02:02 FILE /var/spool/cron/bobby USER bobby pid 32635 cmd export DISPLAY=:0 && amarok -t >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:03 FILE /var/spool/cron/bobby USER bobby pid 309 cmd amarok -t >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:04 FILE /var/spool/cron/bobby USER bobby pid 461 cmd export DISPLAY=:0 & amarok -t >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:05 FILE /var/spool/cron/bobby USER bobby pid 647 cmd export DISPLAY=:0 && "amarok -t" >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:08 FILE /var/spool/cron/bobby USER bobby pid 1087 cmd export DISPLAY=:0 && amarok -p >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:12 FILE /var/spool/cron/bobby USER bobby pid 1612 cmd export DISPLAY=:0 && 'amarok -t' >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:13 FILE /var/spool/cron/bobby USER bobby pid 1749 cmd export DISPLAY=:0 && wxvlc >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:14 FILE /var/spool/cron/bobby USER bobby pid 1879 cmd export DISPLAY=:0 && amarokapp -t >/dev/null 2>&1 #JOB_ID_2
04-Jan-2008 02:16 FILE /var/spool/cron/bobby USER bobby pid 2155 cmd export DISPLAY=:0 && /opt/kde/bin/amarok -t >/dev/null 2>&1 #JOB_ID_2I don't understand how it can be a permission/user issue, as I tested cron with other apps like vlc, xine, openoffice, etc. and they all run as scheduled ??
Offline
remove ">/dev/null 2>&1 " and you will see what's wrong, a better way to set DISPLAY variable is:
DISPLAY=:0 /opt/kde/bin/amarok -tno need to export
Last edited by MAC!EK (2008-01-04 19:34:09)
Offline
Okay, I just used that and this popped up:

(And amarok is running)
EDIT: And I just added /opt/kde/bin to /etc/profile in path. Same thing.
Last edited by colbert (2008-01-04 19:45:27)
Offline
mayby try /opt/kde/bin/amarokapp -t?
Offline
Okay, that works, but it starts up another amarok. Doggonit!
Offline
OMG... so you have amarok running all the time?!
Use "weekalarm" script for amarok:
http://www.kde-apps.org/content/show.ph … tent=23160
Offline
Yeah, I had already tried that and when I hit Run in the amarok script manager I keep getting this:

Offline
Hmmm same here..
no more ideas ![]()
Offline
Maybe DCOP is a possibility ?
Offline
I have not attempted this and I am nowhere near my PC to try it, but since amarok is already running, why not just call a media file or a playlist and see what that does.
Guarantee does not cover shark bite, bear attack, or children under 5.
Offline
Solved! Pyqt was missing. Installed it and now she runs
![]()
Offline
Pages: 1