You are not logged in.

#1 2014-08-01 18:55:48

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Popcorn-Time XScreenSaver Issue

Hello all.

There is anyway to stop xscreensaver while a watching movies using Popcorn-Time?

Thanks.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#2 2014-08-02 13:26:11

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Popcorn-Time XScreenSaver Issue

I think the app itself has to support xscreensaver.  For example, for mplayer you can add something to .mplayer/config to disable it (it's in the xscreensaver FAQ)

If you don't find anything for popcorn-time, I think you'd have to write a wrapper script to do the same thing

Offline

#3 2014-08-03 05:03:13

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

I find this: https://bbs.archlinux.org/viewtopic.php?pid=1436609
I will try tonight.

Thanks.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#4 2014-08-03 05:07:29

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Popcorn-Time XScreenSaver Issue

Why is this program even allowed in AUR?

https://wiki.archlinux.org/index.php/Fo … e#Legality

Popcorn time steams movies from torrents regardless of copyright infringement.

Really, just want a clarification why it hasn't been deleted yet?

Last edited by headkase (2014-08-03 05:07:37)

Offline

#5 2014-08-03 05:20:06

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Popcorn-Time XScreenSaver Issue

Here is a background article on Popcorn Time: http://torrentfreak.com/mpaa-pulls-popc … ub-140711/

Popcorn Time's source repository is moving from shifty server to shifty server since that article mentioned it was removed from Github.

Offline

#6 2014-08-03 08:05:33

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

headkase wrote:

Why is this program even allowed in AUR?

https://wiki.archlinux.org/index.php/Fo … e#Legality

Popcorn time steams movies from torrents regardless of copyright infringement.

Really, just want a clarification why it hasn't been deleted yet?

From the comments in link you have passed:

I enjoy watching the MPAA desperately fight the hydra. It amuses me. Theyre like the bully on the block who realizes the end of their glory days is near.

And this: http://en.wikipedia.org/wiki/Streisand_effect

BTW, job done.
popcorn-detect.sh:

#!/bin/sh
pgrep Popcorn-Time > /dev/null
if [ $? -eq 0 ]; then
  xscreensaver-command -deactivate
fi

Crontab:

*/2 * * * * /path/to/script/popcorn-detect.sh > /dev/null 2>&1

P.S.:
This generates a very large conflict of opinions(a.k.a. Flames).
I do not share your philosophy, please do not misunderstand me.
My question was technical, not ethical.

Last edited by sistematico (2014-08-03 08:30:07)


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#7 2015-05-21 05:09:00

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

nvm...

/usr/bin/popcorntime:

#!/bin/sh

XSS="xscreensaver"
PC="/opt/popcorntime/Popcorn-Time"

pgrep $XSS > /dev/null

if [ $? -eq 0 ]; then
	killall $XSS
	($PC && $XSS -no-splash)
else
	$PC
fi

Very, very, very better workaround...

Last edited by sistematico (2015-05-21 05:52:54)


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#8 2015-05-21 11:45:52

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: Popcorn-Time XScreenSaver Issue

headkase wrote:

Really, just want a clarification why it hasn't been deleted yet?

Well, nobody filed a deletion request yet. See also: https://wiki.archlinux.org/index.php/Ar … the_AUR.3F

If unsure, ask on the aur-general mailing list first.

Last edited by Alad (2015-05-21 11:48:34)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#9 2015-05-21 12:05:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Popcorn-Time XScreenSaver Issue

RE: legality and deletion.  These issues have come up in regard to popcorn time previously - I believe when the first PKGBUILDs were being made.  It seems the legality of the use depends to a great extent on the country it is used in*.  The ethics of it's use - to me personally - seem pretty cut and dry: it's wrong.

The non-legal precedent on these forums was that the threads for creating the PKGBUILDs were closed to avoid any of the cases where it could be considered illegal.  The AUR is, however, maintained and moderated by a different set of community members.  Perhaps they have not been made aware of the potential legal concerns, or they have decided to err on the other side.  Feel free to file the appropriate request via the AUR interface or on aur-general to raise the issue.

As this thread isn't specifically about how to run this software, but rather how to control a screensaver when the software is running, I think there is much less concern with this thread itself: there is nothing illegal in helping someone control their screensaver in any jurisdiction.  Any discussion of legality of it being in the AUR needs to happen through the AUR channels.

That said, I'll simply highlight that if you use this software, you should take time to consider it's legality in your country - you may be unwittingly breaking laws.

* Edit / disclaimer: this was the result of a handful of mods/admins doing our best to read a few webpages.  I don't know that any one involved has nearly the necessary legal training to make a properly informed assessment.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2015-05-21 19:55:38

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

As stated, the script for more than one player, just change the location.

Thanks for the perspective.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#11 2016-09-08 06:48:19

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

Quick update, maybe a more "elegant" approach:

/usr/bin/popcorntime

#!/bin/sh

savers=( "mate-screensaver" "xscreensaver" )

for saver in ${savers[@]} 
do
	ps=$(ps -ef | grep $saver | egrep -v grep)
    if [ "$ps" ]; then
        killall -9 $saver
    fi
done

if [ "$DESKTOP_SESSION" == "mate" ]; then
	rs="mate-screensaver"
else 
	rs="xscreensaver -no-splash"
fi

/opt/popcorntime/Popcorn-Time && $rs

Last edited by sistematico (2016-09-08 06:48:53)


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#12 2016-09-08 11:02:03

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: Popcorn-Time XScreenSaver Issue

ps=$(ps -ef | grep $saver | egrep -v grep)

hmm

Use pgrep. Also, don't store arguments in a single variable; use an array instead.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#13 2016-09-08 19:03:51

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Popcorn-Time XScreenSaver Issue

Alad wrote:
ps=$(ps -ef | grep $saver | egrep -v grep)

hmm

Use pgrep. Also, don't store arguments in a single variable; use an array instead.

Thank you Alad.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

Board footer

Powered by FluxBB