LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2006, 07:13 PM   #1
dasbooter
Member
 
Registered: Mar 2005
Posts: 122

Rep: Reputation: 15
shutdown amarok gracefully?


I have searched pretty hard and I apologize if I missed the info but does amarok have a dcop call to shutdown itself

I use kalarm to call a script that starts amarok and very slowly fades the music in the morning to wake up to(it disables the replaygain at the beginning and enables the replaygain at the end). I would like to be able to call another script with kalarm to shutdown amarok.
Right now I am using code #killall amarokapp
but this seems to some times cause problems on start up and you can sort of tell this is not the best way to shutdown amarok as use dont have that nice fade out at the end .
Thanks for your time
 
Old 04-16-2006, 05:53 PM   #2
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
I'm not sure if any of these will give the desired effect but you can get a list of different signals you can use with killall using killall -l. Perhaps killall -s SEGV amarokapp will work. Anyway you can mess around with the different signals and see if any work.
HTH.
 
Old 04-16-2006, 08:00 PM   #3
dasbooter
Member
 
Registered: Mar 2005
Posts: 122

Original Poster
Rep: Reputation: 15
Hmm well I played around a little bit with the signals but I really didnt get the desired result.
I will try again with some of the less aggressive signals. Nonetheless amarok does seem to shutdown a little differently from other apps I have noticed. It has a nice little fade out of the music b4 it closes.Maybe I could get a clue by running it in a console. Still if anyone has a definitive answer that would be helpful as a post over in the amarok forum doesnt seem to be doing any good.
 
Old 04-16-2006, 09:32 PM   #4
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
Hmm this looks promising. I don't actually have amarok to test this but I found this http://docs.kde.org/development/en/e...e-options.html
maybe you can use amarok -s to stop the track normally and then kill amarok.
HTH.
 
Old 04-24-2006, 04:38 PM   #5
dasbooter
Member
 
Registered: Mar 2005
Posts: 122

Original Poster
Rep: Reputation: 15
answering my own question for thread completeness
Here is the script I use to close amarok the info was provided to me in the amarok forum I wish I could remember who to credit them sorry
#!/bin/bash
dcop amarok player stop
sleep 5
dcop amarok MainApplication-Interface quit
pkill amarok
exit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you gracefully interrupt Yum? tcurt Linux - Software 1 06-28-2006 01:17 PM
Gracefully restarting ProFTPD? bluelaguna Linux - Software 1 08-05-2005 12:42 AM
shutting down gracefully? pdmackenzie Linux - Hardware 2 10-30-2004 10:33 PM
How can I recover gracefully when xwindows dies? WarrenWright Linux - Newbie 7 02-04-2004 04:08 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration