The linux snap configaration - autoStart already supported string as a value
- Electron-Builder Version: 23.0.3
- Node Version: 14.17.6
- Electron Version: 18.0.3
- Electron Type (current, beta, nightly): current
- Target: linux - snap
The linux snap configaration - autoStart shows that it must be a boolean value, but snap already supported string value as a auto launch desktop conf such as app-name.desktop.
autoStart = false Boolean - Whether or not the snap should automatically start on login.
Please check this link to get fully description.
{
...
"snap": {
"summary": "Shadowsocks GUI with cross-platform desktop support",
"autoStart": "shadowsocks-elecron.desktop",
"grade": "stable"
}
}
I tried it and the build task will failed with a warning:
⨯ Invalid configuration object. electron-builder 23.0.3 has been initialized using a configuration object that does not match the API schema.
- configuration.snap.autoStart should be a boolean.
-> Whether or not the snap should automatically start on login.
I did a test.
After installing a snap generated with the "autoStart": true, option, the snap.yaml file contained: autostart: packagename.desktop
You can find the snap.yaml at: /snap/packagename/current/meta/snap.yaml
For what it's worth, I still needed to create a ~/snap/packagename/current/.config/autostart/packagename.desktop file for autostart to work.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.