Skip to content

Commit

Permalink
Revert "Port root authentication from AppImage/AppImageKit#364"
Browse files Browse the repository at this point in the history
This reverts commit 1ffe5aa.
  • Loading branch information
TheAssassin committed Apr 2, 2017
1 parent 5e40513 commit b233886
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ static HeaderBar header_bar; // Too new to assume it is there?

static string selected_file;

static string root(){

var a = Posix.system("pkexec --disable-internal-agent echo hello to appimages");
if (a == 32256){
return "false";
}
else{
return "true";
}

}
static void root_run(){
if(root() == "false"){
Posix.exit(0);
}
}

/* Open file */
static void open_file(string filename) {
selected_file = filename;
Expand Down Expand Up @@ -63,7 +46,6 @@ static void on_about_clicked() {
}

static void main (string[] args) {
root_run();
init (ref args);
if(args.length > 1){
open_file(args[1]);
Expand Down

0 comments on commit b233886

Please sign in to comment.