未验证 提交 39532626 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #63716 from Kedstar99/master

Fixed checkForSnapUpdate in updateService.linux.ts to correctly identify snap version
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册