Reply to topic

Kcron and Task Scheduler

User avatar google01103
Manager
Posts
4958
Karma
17
OS

Re: Kcron and Task Scheduler

Fri Nov 30, 2012 4:36 pm
but does it launch properly in Konsole using DISPLAY? do other gui apps run properly from Kcron? is Kcron or Ktorrent the problem?

have you tried using a command alarm in Kalarm for this, works for me

need to go but will test Kcron later


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar michelmassoud
Registered Member
Posts
20
Karma
0
OS

Re: Kcron and Task Scheduler

Fri Nov 30, 2012 7:13 pm
google01103 wrote:but does it launch properly in Konsole using DISPLAY?
yes

do other gui apps run properly from Kcron?
No Kcron seems to be the problem

have you tried using a command alarm in Kalarm for this, works for me
yes it works but I need to remember to run Kalarm, also Kcrom was working fine and I also would like to know why moving to 64 caused this problem.

Thanks,

Michel
User avatar google01103
Manager
Posts
4958
Karma
17
OS

Re: Kcron and Task Scheduler

Fri Nov 30, 2012 7:37 pm
Kalarm has a repetition tab so just set it and forget it

Kcron seems to run Ktorrent fine for me but it doesn't show in the task bar, it starts minimized to the system tray and it is one of the hidden icons


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar michelmassoud
Registered Member
Posts
20
Karma
0
OS

Re: Kcron and Task Scheduler

Fri Nov 30, 2012 8:17 pm
I tried running it again but I get nothing. Not in the tray and not hidden. I guess I will have to use Kalarm (although I would have liked to uncover the problem)

Thank you for your help.

Michel
User avatar michelmassoud
Registered Member
Posts
20
Karma
0
OS

Re: Kcron and Task Scheduler

Sat Dec 01, 2012 11:38 am
This morning my Kernel was upgraded from 3.2.0-33 to 3.2.0-34 and that seems to have solved the problem. Ktorrent will now launch with
Code: Select all
env DISPLAY=:0 ktorrent
but not with
Code: Select all
usr/bin/ktorrent
as it used to before this whole saga.

Should someone report a bug or something?

Thanks,

Michel
User avatar google01103
Manager
Posts
4958
Karma
17
OS

Re: Kcron and Task Scheduler

Sat Dec 01, 2012 12:12 pm
michelmassoud wrote:This morning my Kernel was upgraded from 3.2.0-33 to 3.2.0-34 and that seems to have solved the problem. Ktorrent will now launch with
Code: Select all
env DISPLAY=:0 ktorrent
but not with
Code: Select all
usr/bin/ktorrent
as it used to before this whole saga.

Should someone report a bug or something?

Thanks,

Michel


you mean "/usr/bin/ktorrent" not "usr/bin/ktorrent" - the preceding / is critical


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar michelmassoud
Registered Member
Posts
20
Karma
0
OS

Re: Kcron and Task Scheduler

Sun Dec 02, 2012 5:05 pm
Yes /usr/bin/ktorrent.

Michel
User avatar bcooksley
Administrator
Posts
18577
Karma
83
OS

Re: Kcron and Task Scheduler  Topic is solved

Sat Dec 08, 2012 7:52 am
As KCron is an interface to crontab - this is not really a bug as it is behaviour of the underlying system - and it cannot really be corrected unfortunately, without introducing other unexpected issues (If another user is logged in when the cronjob runs then either the command will fail or the other user will be given control over an application running under your user account - allowing access to your data, and potentially execution of other applications as you, with the possibility of escalation to root if you have sudo access).

There are also other risks - such as the application not being started with the appropriate session environment (so it looks out of place) or other consequences. I would suggest starting it using the following command instead, which will ask your KDE session to run KTorrent:
Code: Select all
qdbus org.kde.klauncher /KLauncher exec_blind ktorrent --


System Settings and Device Actions KCM maintainer
Image
User avatar michelmassoud
Registered Member
Posts
20
Karma
0
OS

Re: Kcron and Task Scheduler

Mon Dec 10, 2012 11:57 pm
Thanks a lot.

Things are running well now and I have no one else using my computer but I will certainly try this new command.

Michel

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Artmessiah, Baidu [Spider], Bing [Bot], bjoernbalazs, blue_bullet, Charblaze, dniitall, edmael, Exabot [Bot], franku, GentooSimon, Google [Bot], google01103, jensreuterberg, jgrulich, jitseniesen, ken300, koriun, Kver, La Ninje, lazyit, lucyandfatty, Majestic-12 [Bot], Mamarok, MiceAreVeryNice, odysseus-art, okias, robinh, Steve Guilford, urgo, wes33, Yahoo [Bot]