~teejee2008/timeshift/trunk

« back to all changes in this revision

Viewing changes to src/Core/Main.vala

  • Committer: Tony George
  • Date: 2017-01-08 05:43:45 UTC
  • Revision ID: tony.george.kol@gmail.com-20170108054345-mrw7f7kuwgc4d3kh
Uninstall Timeshift BTRFS if installed; Renamed application from 'Timeshift RSYNC' to 'Timeshift'

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        public Main(string[] args, bool gui_mode){
151
151
 
152
152
                parse_some_arguments(args);
153
 
 
 
153
        
154
154
                if (gui_mode){
155
155
                        app_mode = "";
156
156
                        parent_window = new Gtk.Window(); // dummy
164
164
                        log_debug("");
165
165
                }
166
166
 
 
167
                check_and_remove_timeshift_btrfs();
 
168
                
167
169
                // init log ------------------
168
170
 
169
171
                try {
321
323
                }
322
324
        }
323
325
 
 
326
        public void check_and_remove_timeshift_btrfs(){
 
327
                if (cmd_exists("timeshift-btrfs")){
 
328
                        string std_out, std_err;
 
329
                        exec_sync("timeshift-btrfs-uninstall", out std_out, out std_err);
 
330
                        log_msg(_("** Uninstalled Timeshift BTRFS **"));
 
331
                }
 
332
        }
 
333
        
324
334
        public bool check_btrfs_layout_system(Gtk.Window? win = null){
325
335
 
326
336
                log_debug("check_btrfs_layout_system()");
2811
2821
            }
2812
2822
 
2813
2823
            if ((app_mode == "")||(LOG_DEBUG)){
2814
 
                        log_msg(_("App config saved") + ": '%s'".printf(this.app_conf_path));
 
2824
                        log_msg(_("App config saved") + ": %s".printf(this.app_conf_path));
2815
2825
                }
2816
2826
        }
2817
2827
 
2909
2919
                }
2910
2920
 
2911
2921
                if ((app_mode == "")||(LOG_DEBUG)){
2912
 
                        log_msg(_("App config loaded") + ": '%s'".printf(this.app_conf_path));
 
2922
                        log_msg(_("App config loaded") + ": %s".printf(this.app_conf_path));
2913
2923
                }
2914
2924
        }
2915
2925