aurora / rmate

Remote TextMate 2 implemented as shell script
GNU General Public License v3.0
887 stars 123 forks source link

Use $TMPDIR instead of /tmp #78

Closed ungive closed 3 years ago

ungive commented 3 years ago

Hey there,

I've tried to use rmate on Termux (Terminal Emulator for Android) but I ran into the problem that the /tmp folder is not writable for the default user (not using a rooted phone). However $TMPDIR is set and appears to be the default environment variable to hold the name of the system's temporary directory. That said, I modified the code to use that and - if not set - fall back to /tmp.

Hope that's okay. :)

aurora commented 3 years ago

Cool - thanks!