source: trunk/mkGnomeIcon.py @ 1251

Last change on this file since 1251 was 1241, checked in by toby, 7 years ago

add linux install files

  • Property svn:eol-style set to native
File size: 1023 bytes
Line 
1if os.path.exists(os.path.expanduser('~/Desktop/')):
2    os.chmod(gsaspath + "/expgui/expgui", 
3             stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 
4    open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write('''
5[Desktop Entry]
6Encoding=UTF-8
7Version=1.0
8Type=Application
9Terminal=false
10Exec=%s/expgui/expgui
11Name=EXPGUI
12Icon=%s/EXPGUI.png
13''' % (gsaspath,gsaspath))
14    os.chmod(os.path.expanduser('~/Desktop/EXPGUI.desktop'),
15              stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 
16    open(os.path.expanduser('~/Desktop/GSAS.desktop'),'w').write('''
17[Desktop Entry]
18Encoding=UTF-8
19Version=1.0
20Type=Application
21Terminal=true
22Exec=%s/GSAS
23Name=GSAS
24Icon=%s/GSAS.png
25''' % (gsaspath,gsaspath))
26    os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'),
27             stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 
28else:
29    print 'No Desktop directory found, are you running this as root?'
Note: See TracBrowser for help on using the repository browser.