Revision 6b30a3c4

b/py/scenic/application.py
56 56
    """
57 57
    Class attributes are default.
58 58
    """
59
    # Default values
60
    negotiation_port = 17446 # receiving TCP (SIC) messages on it.
61
    smtpserver = "smtp.sat.qc.ca"
62
    email_info = "scenic@sat.qc.ca"
63
    audio_source = "jackaudiosrc"
64
    audio_sink = "jackaudiosink"
65
    audio_codec = "raw"
66
    audio_channels = 2
67
    video_source = "v4l2src"
68
    video_device = "/dev/video0"
69
    video_deinterlace = False
70
    video_input = 0
71
    video_standard = "ntsc"
72
    video_sink = "xvimagesink"
73
    video_codec = "mpeg4"
74
    video_display = ":0.0"
75
    video_fullscreen = False
76
    video_capture_size = "640x480"
77
    #video_window_size = "640x480"
78
    video_aspect_ratio = "4:3" 
79
    confirm_quit = True
80
    theme = "Darklooks"
81
    #video_bitrate = 3000000
82
    video_bitrate = 3.0
83
    video_jitterbuffer = 75
84 59

  
85 60
    def __init__(self):
86
        config_file = 'scenic.cfg'
87
        config_dir = os.environ['HOME'] + '/.scenic'
61
        # Default values
62
        self.negotiation_port = 17446 # receiving TCP (SIC) messages on it.
63
        self.smtpserver = "smtp.sat.qc.ca"
64
        self.email_info = "scenic@sat.qc.ca"
65
        self.audio_source = "jackaudiosrc"
66
        self.audio_sink = "jackaudiosink"
67
        self.audio_codec = "raw"
68
        self.audio_channels = 2
69
        self.video_source = "v4l2src"
70
        self.video_device = "/dev/video0"
71
        self.video_deinterlace = False
72
        self.video_input = 0
73
        self.video_standard = "ntsc"
74
        self.video_sink = "xvimagesink"
75
        self.video_codec = "mpeg4"
76
        self.video_display = ":0.0"
77
        self.video_fullscreen = False
78
        self.video_capture_size = "640x480"
79
        #video_window_size = "640x480"
80
        self.video_aspect_ratio = "4:3" 
81
        self.confirm_quit = True
82
        self.theme = "Darklooks"
83
        self.video_bitrate = 3.0
84
        self.video_jitterbuffer = 75
85
        
86
        config_file = 'configuration.json'
87
        config_dir = os.path.expanduser("~/.scenic")
88 88
        config_file_path = os.path.join(config_dir, config_file)
89 89
        saving.ConfigStateSaving.__init__(self, config_file_path)
90 90

  
b/py/scenic/saving.py
21 21
"""
22 22
Custom state saving tools for Scenic.
23 23
"""
24

  
24
from scenic import configure
25 25
import os
26 26

  
27 27
# JSON import:
......
101 101
        The attributes of this object.
102 102
        """
103 103
        exclude_list = ["_config_path"] # some attributes not to save
104
        data = {"configuration": {}}
104
        data = {
105
            "configuration": {}, 
106
            "appname": configure.APPNAME, 
107
            "version": configure.VERSION
108
            }
105 109
        print("Saving config to %s" % (self._config_path))
106 110
        for key in sorted(self.__dict__.keys()): 
107 111
            value = self.__dict__[key]

Also available in: Unified diff