Skip to content

File > Export PNG: File permissions = R/W for owner, but no access at all for all the other users

DEBUG INFO
Inkscape 1.2 (1:1.2+202206011327+fc4e4096c5) (from stable PPA)

    GLib version:     2.64.6
    GTK version:      3.24.20
    glibmm version:   2.64.2
    gtkmm version:    3.24.2
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4

    OS version:       Linux Mint 20.3 (all up-to-date: Cinnamon 5.2.7, nemo 5.2.4)
  • Preferences reset and new test files: done.
  • Bug reports search: done. (I am almost sure this bug is very recent, so i just took a quick look at all the recent bug reports, and i also did a quick bug tracker search with "Export" and "PNG" keywords...)

Issue:

When doing File > Export to PNG, the file permissions are set as -rw-------. So, in my Nemo file manager, i can read, write, do everything i want with this PNG, but when i logout/login from another account, i don't have any access, i can't even just take a look at the image.

Otherwise, the file permissions are the standards ones for Inkscape's SVG, as well as all my other applications: -rw-rw-r--. I also tested an Inkscape Export to JPEG, and these are okay too. And the GIMP export to PNG also works fine, with the standard file permissions.

Things were working fine before. This looks like a new issue with this new version of Inkscape. Of course, i can change those file permissions easily, but it is really cumbersome having to remember doing this for every exported PNG.

Screenshot_from_2022-06-03_12-58-54

Steps to reproduce:

  • Create a new Inkscape document
  • File> Export to PNG
  • In LinuxMint Nemo file browser, select this PNG file and go to File > Properties > Permissions, or type ls /PATH/TO/FILE.png -lh in your terminal to check the permissions. You will find you get -rw------- and this means that nobody can access this PNG except you...

Expected behavior: The other users and the public can open and see this PNG

Actual behavior: Access denied for everyone except me. I can't share this PNG with anyone.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information