Lutris Client only opens when opened as root from terminal

Just installed Ubuntu 18.04.1 LTS and Lutris wont open unless I launch it from the terminal as root.

I’ve tried uninstalling and purging and it still does it. Have been unable to find anyone with a similar issue on these forums or on others.

System is an i5-4670 & Nvidia 980Ti with Trip Monitors.

Need more info.

What is the output, in terminal, as user (without sudo) for

lutris -d

Traceback (most recent call last):
File “/usr/bin/lutris”, line 33, in
from lutris.gui.application import Application
File “/usr/lib/python3/dist-packages/lutris/gui/application.py”, line 30, 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 17, in
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 1030, in init
StreamHandler.init(self, self._open())
File “/usr/lib/python3.6/logging/init.py”, line 1059, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: ‘/home/liam/.cache/lutris/lutris.log’

Delete /home/liam/.cache/lutris/

I got this after rm -r /home/liam/.cache/lutris/

lutris -d
INFO 2018-08-18 08:47:19,922 [xdg]:Found desktop game “Mines” (app: gnome-mines, slug: mines)
INFO 2018-08-18 08:47:19,923 [xdg]:Setting Mines as installed
ERROR 2018-08-18 08:47:19,924 [sql]:SQL query ‘insert into games(runner, slug, installed, configpath, installer_slug, name, installed_at) values (?, ?, ?, ?, ?, ?, ?)’ failed. 4 retries remaining
ERROR 2018-08-18 08:47:19,924 [sql]:attempt to write a readonly database
ERROR 2018-08-18 08:47:20,925 [sql]:SQL query ‘insert into games(runner, slug, installed, configpath, installer_slug, name, installed_at) values (?, ?, ?, ?, ?, ?, ?)’ failed. 3 retries remaining
ERROR 2018-08-18 08:47:20,925 [sql]:attempt to write a readonly database
ERROR 2018-08-18 08:47:21,926 [sql]:SQL query ‘insert into games(runner, slug, installed, configpath, installer_slug, name, installed_at) values (?, ?, ?, ?, ?, ?, ?)’ failed. 2 retries remaining
ERROR 2018-08-18 08:47:21,926 [sql]:attempt to write a readonly database
ERROR 2018-08-18 08:47:22,927 [sql]:SQL query ‘insert into games(runner, slug, installed, configpath, installer_slug, name, installed_at) values (?, ?, ?, ?, ?, ?, ?)’ failed. 1 retries remaining
ERROR 2018-08-18 08:47:22,927 [sql]:attempt to write a readonly database
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/lutris/gui/application.py”, line 169, in do_activate
self.window = LutrisWindow(application=self)
File “/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py”, line 89, in init
service.sync_with_lutris()
File “/usr/lib/python3/dist-packages/lutris/services/xdg.py”, line 106, in sync_with_lutris
mark_as_installed(appid, ‘linux’, game_info)
File “/usr/lib/python3/dist-packages/lutris/services/xdg.py”, line 52, in mark_as_installed
installer_slug=game_info[‘installer_slug’]
File “/usr/lib/python3/dist-packages/lutris/pga.py”, line 254, in add_or_update
return add_game(**params)
File “/usr/lib/python3/dist-packages/lutris/pga.py”, line 222, in add_game
return sql.db_insert(PGA_DB, “games”, game_data)
File “/usr/lib/python3/dist-packages/lutris/util/sql.py”, line 54, in db_insert
field_values
File “/usr/lib/python3/dist-packages/lutris/util/sql.py”, line 30, in cursor_execute
return cursor.execute(query, params)
sqlite3.OperationalError: attempt to write a readonly database
INFO 2018-08-18 08:47:23,962 [application]:Shutting down Lutris

Delete /home/alex/.local/share/lutris and /home/alex/.config/lutris too

Awesome! Works now. THanks!

Please don’t launch lutris as root in the future again.

1 Like