Bug 103407 - when amarok is startet with -t (--play-pause) option it should start playing
Summary: when amarok is startet with -t (--play-pause) option it should start playing
Status: RESOLVED INTENTIONAL
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.2.3
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 09:44 UTC by Bernhard Breinbauer
Modified: 2006-07-28 15:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Breinbauer 2005-04-07 09:44:38 UTC
Version:           1.2.3 (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 
OS:                Linux

At the moment amarok starts paused when it is started with the -t option and it was playing while quitting. I think when amarok isn't actually running, it would be better to start playing.
My scenario: I have assigned 'amarok -t' to my Play/Pause button on my keyboard, when I press the button while amarok is not running I expect amarok starts playing, while when amarok is running and I press the button it should pause.
But with the actual behaviour I have to press the button twice to get amarok playing.
Comment 1 illogic-al 2005-05-07 07:22:03 UTC
What about if you have amaroK setup to continue playback on startup and decide you want to start it up paused? 
A better solution would be to configure KDE to use your multimedia keys then amaroK can use the Play/Pause button to do exactly that, while using some other key combination to start amaroK. 
That way, when amaroK isn't running the keycombo will start it and when it is running play/pause will do its thing.

For those who haven't guessed I'm casting my vote _against_ this wish :-)
Comment 2 Bernhard Breinbauer 2005-05-09 15:52:41 UTC
I don't think, that it is very common to start amarok and want it to pause, but well that's a decision the developers have to make.
If really someone want to do this, it is possible to start amarok with --pause option. IMO when someone starts amarok, she/he wants it to play music :-) , especially when the option "continue playback on startup" is set.

Comment 3 Seb Ruiz 2006-07-28 15:10:42 UTC
This wish isn't really necessary, imo. It just adds more to the code.  It would be very easy to implement a little script instead, such as:

if ( dcop amarok ) //its running
 amarok -t
else
 amarok