Export dialog silently fails writing to places where it has no permissions to write to

Steps to reproduce:

  • open Inkscape
  • Open the Export dialog (Ctrl+Shift+E)
  • Switch to batch export (optional)
  • change the directory to /root or somewhere you don't have permissions to write to
  • Export

What happened?

  • No error message but exporting time is still spent.
  • In terminal Moving resource /tmp/ink_ext_CUOVK1 to /root/bitmap_Layer 1.png failed: Error moving file /tmp/ink_ext_CUOVK1: Permission denied

What should have happened?

  • Error message.
  • Ideally before render begins (or if it can only be done after, maybe provide some way not to lose the exported png).

Version info

  • Inkscape 1.3-dev (02f46d0877, 2022-04-23)
  • Inkscape 1.3-dev (7be81833ad, 2022-04-11) Linux Mint 20
  • Inkscape 1.2-beta (0d9a0fea06, 2022-04-08) Linux Mint 20
  • Forgot to mention, not replicated in 1.1.x, which has an error dialog saying "Could not export to filename /root/bananas.png"
Edited by Nathan Lee