translate/pootle

Configuration file is placed in a folder named ~

sebrk opened this issue · 3 comments

sebrk commented

Steps to reproduce:

  1. Install Pootle on Ubuntu 16.04 from official repo (installing as a normal user using sudo rights)

Results (Expected/Actual):

Configuration file is probably meant to be in the users home directory (i.e. '~/.pootle') but is actually created in a folder called '~' with the actual path being '~/~/.pootle'. I doubt that is correct.

Environment (i.e. 'pootle --version', DB, OS, Browser):

Pootle 2.8.2 (Django 1.10.8, Translate Toolkit 2.2.5)

This also happens in Debian 9 when installing as root in the /root/ folder (just following the installation instructions).
Also, the install guide says it will create the config file by default in ~/.pootle/pootle.conf but instead it puts it in ./env/pootle.conf

phlax commented

hi, the install instructions shouldnt say anything about installing in/as root - they do say this:

Installing or running Pootle as the root user will expose your system to many potential security vulnerabilities

i need to follow up to try and figure out why the ~ problem is happening - i havent seen it in my dev env

I think it may happen because the root folder doesn't have a /home folder (~) already.