Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When VLC is running, it prevents the computer from suspending.

I want it to allow suspend IF VLC is stopped (the media finished playing).

How can this be done?

share|improve this question

1 Answer

You could set up a DBus query to get the play state of VLC and kill the process when it's done playing. That should release its hold on suspend state.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.