Results 1 to 3 of 3
I've been working on a script that will play a flash series I enjoy, but unfortunately the only Flash player that runs on my system is the one inside of ...
- 10-18-2007 #1
Starting Konqueror in fullscreen without using dcopstart.
I've been working on a script that will play a flash series I enjoy, but unfortunately the only Flash player that runs on my system is the one inside of Konqueror or FireFox. Since I'm usually using FireFox, I opted to use konqueror. It was only after this decision I realized I could make dcop calls to initialize the playback full-screened.
Now, the problem with the example above is that once konqueror is started, the next call to fullscreen will not be made until it is closed, which does not work for some reason. Altenratively, using "dcopstart konqueror" does permit the code beneath its call to be executed, such as in the examples below:Code:#!/bin/bash fullscreen() { /* Grab konquerors PID */ konqpid=`ps -eo "%p %c %a" | grep konqueror | grep ./bs | sed "s/\.\/bs[0-9][0-9]//g" | sed "s/[a-z]//g"` /* Use DCOP call to fullscreen konqueror */ konqy=konqueror-$konqpid konqy_win=$(dcop $konqy KonquerorIface getWindows| head -1) konqy_fullscreen=$(dcop $konqy_win action fullscreen) dcop $konqy_fullscreen activate } /*Starts playback on a particular episode of specified*/ if [ -z $1 ]; then inc=1 else inc=$1 fi /*Playback loop*/ while [ $inc -le 89 ]; do if [ $inc -le 9 ]; then konqueror ./bs0$inc.swf fullscreen elif [ $inc -gt 9 ]; then konqueror ./bs$inc.swf fullscreen fi let inc=inc+1 done
The problem with this example is that I'm using two xscreens, and no matter what, it always launches konqueror into the wrong xscreen. It also cannot find the file, if started by "dcop konqueror ./bs$inc.swf" but I think that could be solved by inserting the full path of the files. On the other hand, I still need a solution to "dcopstart konqueror" launching it in the wrong xscreen.Code:konqy=$(dcopstart konqueror) konqy_win=$(dcop $konqy KonquerorIface getWindows| head -1) konqy_fullscreen=$(dcop $konqy_win action fullscreen) dcop $konqy_fullscreen activate
I'm not familiar with the tools that come with xorg, so I'm wondering if there is a simple solution here that could enable me to simply launch in a specified xscreen, but so far I haven't found anything like this.
- 10-18-2007 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
I have to ask - why isn't flash running on Firefox for you? Ultimately Konqueror is only using the netscape/mozilla plugin that Firefox uses - it may just need to be copied somewhere.
- 10-19-2007 #3
Flash is running on FIrefox, I'm just not running it on FIreFox because I'm using it for web-browing purposes, all I want is to play my Flash video in a separate xscreen. Unfortunately, the flash players gnash and klash don't work, so I'm using the plugin that comes with Konqueror. Opening window after window in FireFox is a little taxing on the system--not to mention I don't know the switch to open a new window, as opposed to trying to launch the program twice, which results in telling me I need to close the instance that's already running.


Reply With Quote
