~vcs-imports/mintinstall/trunk

« back to all changes in this revision

Viewing changes to usr/bin/mintInstall

  • Committer: Clement Lefebvre
  • Date: 2009-07-27 10:34:25 UTC
  • Revision ID: git-v1:6b412dbbc6fb503d826b5a152f7a6fa698af6585
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import os
 
4
import sys
 
5
import commands 
 
6
 
 
7
launcher = commands.getoutput("/usr/bin/mint-which-launcher")
 
8
if len(sys.argv) > 1:
 
9
        mintfile = sys.argv[1]
 
10
        command = "%s /usr/lib/linuxmint/mintInstall/mintInstall.py %s %s %s" % (launcher, mintfile, os.getenv("USER"), os.getenv("HOME"))
 
11
        os.system(command)
 
12
else:
 
13
        os.system("%s /usr/lib/linuxmint/mintInstall/frontend.py %s" % (launcher, os.getenv("USER")))
 
14
 
 
15