Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed checkForSnapUpdate in updateService.linux.ts to use environment…
… variable to identify snap path
  • Loading branch information
Krish De Souza
Krish De Souza committed Nov 26, 2018
commit 908deefd7b179358549af6efa27c49bf5580f0ef
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class LinuxUpdateService extends AbstractUpdateService {
// If the application was installed as a snap, updates happen in the
// background automatically, we just need to check to see if an update
// has already happened.
realpath(`/snap/${product.applicationName}/current`, (err, resolvedCurrentSnapPath) => {
realpath(`${path.dirname(process.env.SNAP!)}/current`, (err, resolvedCurrentSnapPath) => {
if (err) {
this.logService.error('update#checkForSnapUpdate(): Could not get realpath of application.');
return;
Expand Down