~donadigo/power-installer/power-installer-legacy

« back to all changes in this revision

Viewing changes to src/Main.vala

  • Committer: donadigo
  • Date: 2014-12-25 20:06:51 UTC
  • Revision ID: donadigos159@gmail.com-20141225200651-au1ereqidbfaexct
Port from bash to python complete; FIXED: generated scripts failed due to no TERM variable was exported; NEW FEATURE: writing logs when task fails

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
namespace PowerInstaller {
29
29
 
 
30
    private void begin_show() {
 
31
        execute_command_async(@"python $DATADIR/notification.py '' ''");
 
32
    }
 
33
 
30
34
    // resources
31
35
    private const string DATADIR = Constants.PKGDATADIR;
32
36
 
33
37
    // dont show window when API initialized
34
38
    private bool dont_show_window;
35
39
 
 
40
    private const string PROGRAM_NAME = "Power Installer";
 
41
 
36
42
    // main class (Granite.Application)
37
43
    public class PowerInstallerApp : Granite.Application {
38
 
        public const string PROGRAM_NAME = "Power Installer";
39
44
 
40
45
        construct {
41
46
            program_name = PROGRAM_NAME;
68
73
        }
69
74
 
70
75
        public PowerInstallerApp() {
71
 
            Logger.initialize(exec_name);
 
76
            Logger.initialize("PowerInstaller");
72
77
            Logger.DisplayLevel = LogLevel.DEBUG;
73
78
        }
74
79
 
94
99
 
95
100
                    // first argument is always the invocation of the program itself
96
101
                    if(file != args[0]) {
97
 
                        general_tab.execute(file, false, false, false, main_notify);
 
102
                        general_tab.execute_drag(file, false, false, false, main_notify);
98
103
                        main_run_stat = true;
99
104
                    } else {
100
105
                        continue;