File: mozilla

package info (click to toggle)
gworkspace 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,124 kB
  • sloc: objc: 71,982; sh: 488; makefile: 43
file content (18 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ "$1" = "-GSFilePath" ] || [ "$1" = "-GSTempPath" ]; then
   URL="$2"
else
   URL="$1"
fi

mozilla -remote "openurl($URL,new-window)"

if [ $? -eq 0 ]; then
    echo contacted mozilla process
else
    echo starting mozilla
    mozilla $URL &
fi