Find the answer to your Linux question:
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 ...
  1. #1
    Linux Newbie SagaciousKJB's Avatar
    Join Date
    Aug 2007
    Location
    Yakima, WA
    Posts
    162

    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.

    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
    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:
    konqy=$(dcopstart konqueror)
                    konqy_win=$(dcop $konqy KonquerorIface getWindows| head -1)
                    konqy_fullscreen=$(dcop $konqy_win action fullscreen)
                    dcop $konqy_fullscreen activate
    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.

    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.

  2. #2
    Linux 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.

  3. #3
    Linux Newbie SagaciousKJB's Avatar
    Join Date
    Aug 2007
    Location
    Yakima, WA
    Posts
    162
    Quote Originally Posted by bigtomrodney View Post
    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.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...