Changeset 309 for trunk/server.py


Ignore:
Timestamp:
08/03/09 11:06:45 (9 years ago)
Author:
marc
Message:

Improved spec file, removed unused images from installation, fixed a bug with secure images not being shown in ntotifications, bumped changelog, and improved debian/rules build on converting images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server.py

    r287 r309  
    480480        if self.configuration['server']['notify'] and self.itaka_globals.notify_available: 
    481481            import pynotify 
     482 
    482483            # 48x48 image by default looks bad in Ubuntu 
    483             uri = "file://" + (os.path.join(self.itaka_globals.image_dir, "itaka-take.png"))  
     484            if self.configuration['server']['authentication']: 
     485                uri = "file://" + (os.path.join(self.itaka_globals.image_dir, "itaka-secure-take.png"))  
     486            else: 
     487                uri = "file://" + (os.path.join(self.itaka_globals.image_dir, "itaka-take.png"))  
    484488             
    485489            n = pynotify.Notification(_('Screenshot taken'), _('%s captured the screen' % (self.ip)), uri) 
     
    494498            winsound.PlaySound(os.path.join(self.itaka_globals.sound_dir, "snap.wav"), winsound.SND_FILENAME|winsound.SND_ASYNC) 
    495499        elif self.itaka_globals.platform == 'Linux': 
     500                """ 
    496501               from wave import open as waveOpen 
    497502               from ossaudiodev import open as ossOpen 
     
    511516               dsp.write(data) 
    512517               dsp.close() 
    513  
     518               """ 
    514519         
    515520        self.gui.update_gui(self.counter, self.ip, self.time) 
Note: See TracChangeset for help on using the changeset viewer.