[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - PC shutdown after stop playing
Page 1 of 2

PC shutdown after stop playing

PostPosted: Mon Mar 26, 2012 8:01 am
by the waiter
Is here in SM any possibilty to shut down PC after watching movie? I was looking among properties and I can not find it.

Re: PC shutdown after stop playing

PostPosted: Mon Mar 26, 2012 12:06 pm
by rvm
No, there is no option for that.

Re: PC shutdown after stop playing

PostPosted: Mon Mar 26, 2012 8:42 pm
by the waiter
I see. Do you plan this feature in the future? It is useful I think

Re: PC shutdown after stop playing

PostPosted: Mon Mar 26, 2012 9:41 pm
by rvm
Unless someone else sends a patch which implements it, no.

Re: PC shutdown after stop playing

PostPosted: Mon Mar 18, 2013 2:43 am
by mastah'
This would be also a great improvement in this program for me. Often watching movies before sleeping.
Actually this is one of the first features that I'm looking for when choosing a right player for me. SMPlayer is unfortunately having all the important features apart from this one..
Hope this will change soon!
Cheers!

Re: PC shutdown after stop playing

PostPosted: Fri Aug 30, 2013 9:25 pm
by antonio

Re: PC shutdown after stop playing

PostPosted: Fri Sep 27, 2013 9:25 pm
by CommonSense
So... KMPlayer,PotPlayer, GOM Player, Media Player Classic are stupid for having this option, and you are smart not having it???
Why you don't just make it? It's a basic thing...

Re: PC shutdown after stop playing

PostPosted: Fri Sep 27, 2013 10:51 pm
by rvm
It's not so easy as it seems. SMPlayer runs in linux and windows and then this option should be implemented on both operating systems, which will require different code. And in linux a regular application doesn't have permission to turn off the computer.

Re: PC shutdown after stop playing

PostPosted: Sat Sep 28, 2013 4:24 pm
by anonymous_user
If you could detect whether a Linux distro was using ConsoleKit or systemd, then shutting down as a user should be possible. I forgot the ConsoleKit commands (though I remember them being long) and for systemd you can simply use systemctl poweroff. And if neither is detected then simply disable the option for shutdown.

Edit: or perhaps you can let people enter a custom command. Some people may have removed the password require for the shutdown command and wish to use that.

Re: PC shutdown after stop playing

PostPosted: Wed Nov 20, 2013 3:59 pm
by Common Sense
@Admin

For example qBitTorrent is able to shutdown Linux after downloads completes, why SMPlayer could do it to?