Electron 电子托盘:libappindicator警告:使用'/tmp&x27;快照环境中的路径将导致无法读取的资源

Electron 电子托盘:libappindicator警告:使用'/tmp&x27;快照环境中的路径将导致无法读取的资源,electron,Electron,我有一个简单的电子应用程序,应该在托盘生活。但在运行它时,我得到以下警告: (electron:5080): libappindicator-WARNING **: 23:21:11.078: Using '/tmp' paths in SNAP environment will lead to unreadable resources 此警告可能是由于按我的方式使用或配置了iconPath此警告^是什么意思?需要执行哪些操作才能删除它? 这是我的应用程序的来源: const { app, T

我有一个简单的电子应用程序,应该在托盘生活。但在运行它时,我得到以下警告:

(electron:5080): libappindicator-WARNING **: 23:21:11.078: Using '/tmp' paths in SNAP environment will lead to unreadable resources
此警告可能是由于按我的方式使用或配置了
iconPath
此警告^是什么意思?需要执行哪些操作才能删除它?

这是我的应用程序的来源:

const { app, Tray, Notification, Menu, nativeImage } = require('electron');
const path = require('path');

const iconPath = path.join(__dirname, 'assets/icons/iconTemplate.png');

let tray = null;

app.whenReady().then(() => {
    try {
        console.log(iconPath);
        tray = new Tray(nativeImage.createFromPath(iconPath));
        tray.setToolTip('Electron app');
    } catch (e) {
        console.log(e);
    }
})