Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/swfactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'swfactivity.py')
-rwxr-xr-xswfactivity.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/swfactivity.py b/swfactivity.py
index 8205e3f..bfc2ff4 100755
--- a/swfactivity.py
+++ b/swfactivity.py
@@ -44,10 +44,19 @@ class SWFActivity(activity.Activity):
self.set_canvas(socket)
self.show_all()
- args = [
- 'gnash',
- '-x', str(socket.get_id()),
- os.path.join(activity.get_bundle_path(), SWFNAME)
- ]
- self._process = subprocess.Popen(args)
+ try:
+ args = [
+ os.path.join(activity.get_bundle_path(), 'bin', 'npplayer'),
+ '--xid', str(socket.get_id()),
+ 'src='+os.path.join(activity.get_bundle_path(), SWFNAME)
+ ]
+ self._process = subprocess.Popen(args)
+
+ except OSError:
+ args = [
+ 'gnash',
+ '-x', str(socket.get_id()),
+ os.path.join(activity.get_bundle_path(), SWFNAME)
+ ]
+ self._process = subprocess.Popen(args)