Closed av8ta closed 2 years ago
Issue raised at create-desktop-shortcuts
In the log the filePath looked fine but in the object it's a string inside a string. Unsurprisingly, that doesn't work!
{
linux: {
filePath: '"/usr/bin/agregore.AppImage"',
outputPath: '/home/av8ta/Downloads',
name: "Mauve's Blog - Home",
comment: 'Agregore Browser - hyper://94f0cab7f60fcc2a711df11c85db5e0594d11e8a3efd04a06f46a3c34d03c418/',
description: 'Agregore Browser - hyper://94f0cab7f60fcc2a711df11c85db5e0594d11e8a3efd04a06f46a3c34d03c418/',
arguments: 'hyper://94f0cab7f60fcc2a711df11c85db5e0594d11e8a3efd04a06f46a3c34d03c418/',
type: 'Application'
},
verbose: true,
onlyCurrentOS: true
}
It's not related to this is it? https://github.com/AgregoreWeb/agregore-browser/issues/165 Being open that issue likely hasn't been implemented though.
The offending line: https://github.com/AgregoreWeb/agregore-browser/blob/550eadb038be0140fd4639f660197d63a9a3a365/app/actions.js#L197
Was this done for windows and their silly-paths-with-spaces-in-them? Safe on other platforms if I set a normal string here @RangerMauve ?
Oh nice, yeah. A PR which updates the dependency once it gets built in quotes and changing that line would be great1
Ty for looking into this
Done and pushed to master :pray:
Sweet, ty for fixing this up!
So it looks like an appimage is considered a folder. I thought they were zip files? Anywhoo, the problem is here:
https://github.com/nwutils/create-desktop-shortcuts/blob/fa3fd0f99d1b728f2e265dc475d3b6087c10cfba/src/validation.js#L231
With these two lines:
removed bookmarks are created successfully and open correctly too. I'll raise an issue in the dependency github.