Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay44 authored Mar 10, 2017
1 parent 45c38c7 commit 9b22914
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static string selected_file;

static string root(){

var a = Posix.system("pkexec --disable-internal-agent echo hello to appimages");
var a = Posix.system("pkexec echo hello to appimages");
if (a == 32256){
return "false";
}
Expand All @@ -28,6 +28,7 @@ static void root_run(){
/* Open file */
static void open_file(string filename) {
selected_file = filename;
root_run();
new ProgressWindow(selected_file, {});
}

Expand Down Expand Up @@ -63,11 +64,12 @@ static void on_about_clicked() {
}

static void main (string[] args) {
root_run();

init (ref args);
if(args.length > 1){
open_file(args[1]);
Gtk.main();

Posix.exit(0);
}

Expand Down

0 comments on commit 9b22914

Please sign in to comment.