Open tobycm opened 2 weeks ago
The Relaunch option does work if I clone the repo and run it with pnpm run start
however.
Weirdly enough, running vesktop
in the Gnome terminal or launching Vesktop from the Applications view, the Relaunch option will malfunctioned, but it will work if I run vesktop
in the vscode terminal or if I run pnpm run start
in the Vesktop repo folder.
works for me using RPM on fedora. likely something wrong with your system
can anyone else using the deb package reproduce this?
Running deb release, used to work on Ubuntu 22.0.4, now any restart doesn't work anymore on Ubuntu 24.0.4
Running from a terminal (no special command option provided) gives the following output: vesktop.log
if simply updating your system broke it, it's not something we can fix
all vesktop does is use electron's apis to initiate a relaunch & exit https://www.electronjs.org/docs/latest/api/app#apprelaunchoptions
its either an issue with ubuntu or with electron
it would be very useful if one of you made a minimal electron reproduction example that demonstrates this bug and reports it to the electron repo. use this tool https://www.electronjs.org/fiddle and use the code sample from the above doc and see if it happens there too
Would appear to be related to electron updater.
They do already have a few issues about that, Vesktop might just need to update the dependency
the electron-updater log is unrelated, feel free to ignore it
Tried running the following with a bare Electron 33.2.0 project:
const electron = require("electron")
function createWindow() {
const mainWindow = new electron.BrowserWindow({
width: 800,
height: 600
});
}
electron.app.whenReady().then(() => {
createWindow()
electron.app.on('activate', () => {
if (electron.BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
})
electron.app.on('quit', () => {
electron.app.relaunch()
})
relaunch worked just fine, no issue with bare Electron restart on Ubuntu 24.
Additionally, I may mention that this Ubuntu is a fresh install, and not transitioned from any earlier version of Ubuntu, thus possibly containing broken packages/apps.
As such, either it is an active issue for Electron 33.0.2, but that has since been fixed, and thus would require Vesktop to upgrade Electron, or a pure Vesktop issue.
like i said, it's not possible for it to be a vesktop issue. the relaunch code has always been the same and simply follows what any other electron app also does.
it might be that this issue only happens once bundled to .deb ~ we use electron-builder to create the deb package
if you use this template https://github.com/electron-userland/electron-webpack-quick-start?tab=readme-ov-file#getting-started and run yarn dist
, it should build a deb package. your electron code would go in src/main/index.js
Discord Account
tobycm
Operating System
Ubuntu 24.04
Linux Only ~ Desktop Environment
Gnome on Wayland
Package Type
deb
What happens when the bug or crash occurs?
The option Restart in the Vesktop tray menu only stop Vesktop, but doesn't restart itself.
What is the expected behaviour?
It should start itself after closing.
How do you recreate this bug or crash?
Click the Restart option in the tray menu.
Debug Logs
Request Agreement