Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from brave/userDataDir-override
Browse files Browse the repository at this point in the history
--user-data-dir overrides
  • Loading branch information
bsclifton authored Sep 12, 2017
2 parents 69bb813 + 042b3c0 commit 516166b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/desktop.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% if (productName) { %>Name=<%= productName %>
<% } %><% if (description) { %>Comment=<%= description %>
<% } %><% if (genericName) { %>GenericName=<%= genericName %>
<% } %><% if (name) { %>Exec=sh -c "<%= name %> -- %U"
<% } %><% if (name) { %>Exec=sh -c "<%= name %> --user-data-dir=<%= userDataDir %> -- %U"
<% } %><% if (name) { %>Icon=<%= name %>
<% } %>Type=Application
StartupNotify=true
Expand Down
1 change: 1 addition & 0 deletions src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ var getDefaults = function (data, callback) {
description: pkg.description,
productDescription: pkg.productDescription || pkg.description,
isXFCE: false,
userDataDir: pkg.userDataDir || pkg.name,
// Use '~' on pre-releases for proper Debian version ordering.
// See https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
version: (pkg.version || '0.0.0').replace(/(\d)[_.+-]?((RC|rc|pre|dev|beta|alpha)[_.+-]?\d*)$/, '$1~$2'),
Expand Down

0 comments on commit 516166b

Please sign in to comment.