Menu

#944 Automatic shutdown the computer not work

stable
open
nobody
None
5
2019-12-31
2019-12-31
sub-zero
No

FreeBSD
Smplayer does't shutdown the computer after finish the movie,
It closeds only his own process.

Discussion

  • Ricardo Villalba

    What desktop environment are you using?

     

    Last edit: Ricardo Villalba 2019-12-31
  • sub-zero

    sub-zero - 2019-12-31

    Hi,
    In my FreeBSD, I use 'Lumina'-desktop environment with Display manager 'Slim' if this is matters.
    I looked at the source script and found the file 'shutdown.cpp' and wondered if , if I added that lines it would not work in FreeBSD as well.

    void Shutdown::shutdown() {
    ifdef Q_OS_FreeBSD QProcess::startDetached("xterm -T Shutdown -e sudo shutdown -p now"); //OR THIS -> shutdown -p now
    endif

     

Log in to post a comment.