Skip to content

Commit

Permalink
set wineprefix path from js (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
plata authored Aug 19, 2017
1 parent a4431b2 commit 12eaf4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Engines/Wine/Engine/Object/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ include(["Utils", "Functions", "Net", "Resource"]);

LATEST_STABLE_VERSION = "2.0.2";

WINE_PREFIX_DIR = "wineprefix"


/**
* Wine main prototype
* @constructor
*/
function Wine() {
this._wineWebServiceUrl = Bean("propertyReader").getProperty("webservice.wine.url");
this._wineEnginesDirectory = Bean("propertyReader").getProperty("application.user.engines") + "/wine";
this._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.wineprefix");
this._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR;
this._configFactory = Bean("compatibleConfigFileFormatFactory");
this._OperatingSystemFetcher = Bean("operatingSystemFetcher");
this._wineDebug = "-all";
Expand Down
2 changes: 1 addition & 1 deletion Engines/Wine/Shortcuts/Reader/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var _WineShortcutReader = function(shortcut) {
that._shortcutManager = Bean("shortcutManager");
that._libraryManager = Bean("libraryManager");
that._uiQuestionFactory = Bean("uiQuestionFactory");
that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.wineprefix");
that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR;

this.shortcut = shortcut;

Expand Down
4 changes: 3 additions & 1 deletion Engines/Wine/Shortcuts/Wine/script.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
include(["Engines", "Wine", "Engine", "Object"]);

var WineShortcut = function () {
var that = this;
that._shortcutManager = Bean("shortcutManager");
that._appsManager = Bean("repositoryManager");
that._fileSearcher = Bean("fileSearcher");
that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.wineprefix");
that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR;

that._category = "Other";
that._description = "";
Expand Down

0 comments on commit 12eaf4d

Please sign in to comment.