Skip to content

Commit

Permalink
v 0.2.7-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
drlight17 authored Sep 22, 2024
1 parent 1ab8319 commit 0e68123
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,23 @@ try {


//const icon = './icon.png';

// set run at startup
if (store.get('run_at_startup')) {

app.setLoginItemSettings({
openAtLogin: true,
name: app.getName() + " v."+app.getVersion()
})
if (isLinux) {
let executable = "talk-electron";
if (process.env.APPIMAGE) {
executable = process.env.APPIMAGE;
} else {
executable = app.getPath('exe');
}
let shortcut_contents = `[Desktop Entry]
Categories=Utility;
Comment=Talk web embedded app
Exec=talk-electron %U
Exec="`+executable+`"
Icon=talk-electron
Name=NC Talk Electron
StartupWMClass=NC Talk Electron
Expand Down

0 comments on commit 0e68123

Please sign in to comment.