title: How can I set default umask in gnome on Debian-Stretch?
body: <p>I would like the permissions on files that I create with gnome apps (e.g., gedit and libreoffice) to respect the umask I set.</p>
  
  <p>I have set umask to 027 in ~/.profile and /etc/login.defs. I've also followed the directions from here by adding a line to /etc/pam.d/common-session: <a href="https://stackoverflow.com/questions/10220531/how-to-set-system-wide-umask">How to set system wide umask?</a></p>
  
  <p>Nothing is working.</p>
  
  <p>I am able to get the umask setting to work if I create files in vi or nano from gnome-terminal (after setting umask 027 in .bashrc). But I would like to get this umask respected in gnome apps like gedit also.</p>