Skip to content

Commit

Permalink
Updater|Unix: Run xdg-open on the downloaded package
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 7, 2012
1 parent e7498b5 commit 902a40b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions doomsday/engine/portable/src/updater.cpp
Expand Up @@ -301,16 +301,22 @@ struct Updater::Instance
installerCommand->append("osascript");
installerCommand->append(scriptPath);
atexit(runInstallerCommand);
Sys_Quit();
#endif

#ifdef WIN32
#elif defined(WIN32)
// The distribution package is an installer executable, we can just run it.
installerCommand = new de::CommandLine;
installerCommand->append(distribPackagePath);
atexit(runInstallerCommand);
Sys_Quit();

#else
// Open the package with the default handler.
installerCommand = new de::CommandLine;
installerCommand->append("xdg-open");
installerCommand->append(distribPackagePath);
atexit(runInstallerCommand);
#endif

Sys_Quit();
}
};

Expand Down

0 comments on commit 902a40b

Please sign in to comment.