Re: Web-based application invoking process on client machine

From: Frank Wein (mcsmurfREMOVEMICH_at_gmx.de)
Date: 04/17/04

  • Next message: Morten Gulbrandsen: "libqt.so.2 T-DSL SpeedManager for Linux, Version 1.53"
    Date: Sat, 17 Apr 2004 11:49:26 +0200
    
    

    Pif Paf wrote:

    > I'm writing a web-based application which will run on a network of
    > Linux boxes.
    > (I'll be using Mozilla as the web browser).
    >
    > Is there any way to get Mozilla to invoke a process on a client
    > machine? So, for example, when I press a button on a web page, it
    > could cause a GUI-based program to run. (Obviously I can cause
    > programs to run on the web server, but that isn't what I want).

    I've done something simililar. I first got the environment variable PATH
    and checked if the application can be found there and stored the path to
    it then. And then i took the code from
    http://groups.google.de/groups?q=runCommandLine(cmd)&hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=38aa326e.0301010815.55aa869e%40posting.google.com&rnum=1
    and modified it a bit. And then you can execute the program with some
    arguments if needed. Of course your web app needs then special
    privileges you get via netscape.security.PrivilegeManager.enablePrivilege(
      "UniversalXPConnect"); This will ask the user if he wants to gain
    these privileges to the web app. But there is a checkbox where you can
    make Mozilla remember this decision, so the user won't be asked every
    time he uses the web app.

    HTH
    Frank


  • Next message: Morten Gulbrandsen: "libqt.so.2 T-DSL SpeedManager for Linux, Version 1.53"