Back to the main site

Can't run lutris ( need help )

Hello , I’ve just installed Lutris on Linux Mint 19.1 Cinnamon , but I can’t run it unless I run it with sudo . it has something to do with permissions . like this :

Traceback (most recent call last):
File “/usr/bin/lutris”, line 31, in
from lutris.gui.application import Application
File “/usr/lib/python3/dist-packages/lutris/gui/application.py”, line 33, in
from lutris import pga
File “/usr/lib/python3/dist-packages/lutris/pga.py”, line 9, in
from lutris.util.log import logger
File “/usr/lib/python3/dist-packages/lutris/util/log.py”, line 27, in
LOG_FILENAME, maxBytes=20971520, backupCount=5
File “/usr/lib/python3.6/logging/handlers.py”, line 150, in init
BaseRotatingHandler.init(self, filename, mode, encoding, delay)
File “/usr/lib/python3.6/logging/handlers.py”, line 57, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File “/usr/lib/python3.6/logging/init.py”, line 1032, in init
StreamHandler.init(self, self._open())
File “/usr/lib/python3.6/logging/init.py”, line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: ‘/home/archer/.cache/lutris/lutris.log’

I really don’t want to reinstall linux again to make it work .

Did you start lutris as super user? If so it could well be that lutris created files and set the owner to root. Files owned by root can’t be accessed by an account lower than that. Even if these reside in your home directory.

You can find out the owner of file by using this command:

ls -la /home/archer/.cache/lutris

If the owner is root you can change this by using this command:

sudo chown -R archer /home/archer/.cache/lutris

Hope this helps.