svg2shenzhen icon indicating copy to clipboard operation
svg2shenzhen copied to clipboard

/tmp/ is not normally writable on linux

Open kasbah opened this issue 7 years ago • 1 comments

I set the temporary "cache" directory to /tmp/ when the svg hasn't been saved yet. This isn't normally writable by the user so it results in asking for a root password.

kasbah avatar Oct 06 '18 00:10 kasbah

That is quite far from the truth.

Most Linux distributions have a user-writable /tmp, and in most cases, the directory has the sticky bit set, so only the user that created a file or directory in /tmp can remove it.

It's a bit unfortunate thate the FHS does not mandate a particular setup for /tmp, but it does recommend its existence as a place for programs to write temporary data: http://refspecs.linuxbase.org/FHS_3.0/fhs/ch03s18.html

onitake avatar Jun 16 '19 15:06 onitake