~klnavarro98/earth17/trunk

« back to all changes in this revision

Viewing changes to src/earth17.py

  • Committer: klnavarro
  • Date: 2008-11-12 23:54:16 UTC
  • Revision ID: mickey@bunny-20081112235416-5362364cd7d15784
Add desktop icon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
    earth17_desktop_content = open(os.path.join(earth17_confdir, "cfg", EARTH17_DESKTOP), 'r')
180
180
    earth17_desktop = open(os.path.join(earth17_confdir, EARTH17_DESKTOP), 'w')
181
181
    try:
182
 
        print >> earth17_desktop, earth17_desktop_content.read() % os.path.join(earth17_confdir, "earth17.py")
 
182
        print >> earth17_desktop, earth17_desktop_content.read() % (os.path.join(earth17_confdir, "earth17.py"), os.path.join(earth17_confdir, "cfg", "earth17.png"))
183
183
    finally:
184
184
        earth17_desktop_content.close()
185
185
        earth17_desktop.close()
190
190
                os.path.join(os.path.expanduser("~"), ".local", "share", "applications", EARTH17_DESKTOP))
191
191
 
192
192
    # Default background
193
 
    enlightenment_cmd = ENLIGHTENMENT_PROG + " -default-bg-set %s" % os.path.join(ENLIGHTENMENT_BACKGROUNDS, EARTH17_EDJ)
194
 
    if __debug__:
195
 
        print "Exec:", enlightenment_cmd
 
193
    #enlightenment_cmd = ENLIGHTENMENT_PROG + " -default-bg-set %s" % os.path.join(ENLIGHTENMENT_BACKGROUNDS, EARTH17_EDJ)
 
194
    #if __debug__:
 
195
    #    print "Exec:", enlightenment_cmd
196
196
 
197
197
    # Eterm background transparency
198
198
    setroot_cmd = ESETROOT_PROG + " " + os.path.join(earth17_confdir, "images", xplanet_img)
199
199
    if __debug__:
200
200
        print "Exec:", setroot_cmd
201
 
    
 
201
    os.system(setroot_cmd)
 
202
 
202
203
 
203
204
#
204
205
# Main entry point.