mb21/panwriter

Export problem with AppImage 0.8.4 on Linux Slackware

fhouweli opened this issue · 14 comments

Hi,
when trying to export my document to html, the pandoc command has an empty --to argument (and therefore --standalone is interpreted as a format.
Screenshot_2022-08-26_19-30-52

mb21 commented

I cannot reproduce... what's the exact input you were using?

mb21 commented

Changing the file format with the select box does not add an extension in the "Name" input field.

that's odd. because it does for me on macOS. are you on the latest PanWriter version?

can you reproduce on other linux distros?

I am on latest Panwriter and I can confirm same problem exists on Mint Linux 19.3.

mb21 commented

hm.. we're just using electron's dialog.showSaveDialog filters option.

you're saying only the default name is missing the html extension (that we could probably fix in PanWriter)? And when you switch to an other format in the dropdown the extension is added?

mb21 commented

uh, that seems like an Electron bug then, because all we get back is the filePath, so if that doesn't change when you change the dropdown, there's nothing we can do in PanWriter to fix it...

I'll try to update to the newest Electron version soonish... maybe they have fixed it already...

hwpf commented

got exactly the same issue with panwriter 0.8.4 freshly installed at Manjaro Linux ... none of the formats can be exported. Will it be posted here, when a fix is available?

Same here.

Debian 12 bookworm with Appimage 0.8.6 and pandoc 2.17.1.1 (Debian source)

Screenshot_2024-07-11_19-25-29

mb21 commented

Okay, I found the relevant Electron issue. Apparently, that's just not something Electron supports on Linux, which is a bummer.

But from above in this thread:

Changing the file format with the select box does not add an extension in the "Name" input field. Pressing "Export" causes the error. HOWEVER, if I
manually add ".html" to the filename, the export succeeds!

That's still a viable workaround, right? So perhaps we should just remove the selector dropdown on Linux to avoid confusion?

mb21 commented

I implemented this approach in a draft PR: #166

Can anybody test this on Linux? Check out that branch and see https://github.com/mb21/panwriter/#develop

mb21 commented

I've merged this to the master branch. But apparently my friend's Apple Developer Certificate is expired so I cannot make a release. Perhaps the day has come I'll have to fork over 100.- to Apple 🙄

Anyway, for now, here's the Linux AppImage.

First of all thank you for reacting.

Now I have both appimages here on my Debian 12.

0.8.7 is working now and I can convert a *.md to *.odt

Screenshot_2024-07-14_13-05-25

But here a screenshot with 0.8.6 with a possibility to select the file extension

Screenshot_2024-07-14_12-58-18

and now 0.8.7, where that possibilty is missing.

Screenshot_2024-07-14_13-00-32

br Karl

mb21 commented

@Merga189 thanks, yes. On Linux that electron-provided dropdown apparently isn't working correctly (that's the linked issue), so the only thing I could think of was to remove it. Instead, you just have to write the filename including extension (e.g. .odt).