Commit graph

155 commits

Author SHA1 Message Date
Mathieu Comandon 0913ae694c Silence some pylint warnings 2019-10-16 06:50:43 -07:00
Mathieu Comandon 36e72e3933 Remove fallback locale 2019-10-16 06:25:00 -07:00
Manuel Vögele fefe47521c Use fallback locale if locale is configured incorrectly (fixes #2341) 2019-10-09 15:23:35 +02:00
Mathieu Comandon e0b39596bf It's not required to pass a locale name to setlocale 2019-08-31 13:29:19 -07:00
Devilish Spirits 841ae28701 Created basic meson.build config
Python files are installed into `$DESTDIR/lib/lutris`
	Scripts in `/bin` have been edited to search **ALL** module inside this dir
	Datas are also searched in `</lib/lutris>/../../share/lutris`, this allow weird DESTDIR like `/tmp/lutris` (tested)
	Now Lutris assume that libdir is located in `<bindir>/../lib`

	This is minimalist right now and should work for everyone
2019-08-05 19:02:01 -07:00
Aaron Opfer 260b88260f lutris_wrapper: fix for incomplete shutdowns
If any process lutris was monitoring died in-between it being detected and it having a `kill` attempted on it, lutris-wrapper would have a `ProcessLookupError` exception occur and would stop trying to kill any other processes and halt the shutdown. Fix this by catching this specific exception and ignoring it.

Fixes #2142.
2019-05-18 15:46:52 -07:00
Mathieu Comandon 3a7f5d704a Catch FileNotFoundErrors in lutris-wrapper (Closes #2005) 2019-04-07 23:34:54 -07:00
Aaron Opfer 8303e5c05e lutris-wrapper: apply force stop to excluded procs
An extension to the work done in #1835 and relevant to #1798.

When performing a force stop, also kill processes that would normally be considered "excluded". In addition, perform up to three rounds of process collection/killing in an attempt to beat races involving new processes being created.
2019-03-22 12:52:36 -07:00
Aaron Opfer 16a530ec43 lutris-wrapper: send sigkill if we get 2 sigterms
If `lutris-wrapper` receives and processes a `SIGTERM` but then receives another one, kill all tracked children with `SIGKILL`. This feature is a part of the work necessary to fix #1798.

Added a test for `lutris-wrapper`.
2019-03-14 20:28:01 -07:00
Mathieu Comandon f0f7c7e70b Unset PYTHONPATH in wrapper script to avoid confusing Steam (Closes #1619) 2019-01-18 17:39:17 -08:00
Mathieu Comandon f98fdefcf4 Enable monitor logging in dev mode 2019-01-16 15:23:48 -08:00
Mathieu Comandon 3f1c630979 Add logging to lutris-wrapper 2019-01-10 20:01:55 -08:00
Mathieu Comandon dda4aa7fe2 Add local lutris package to path on dev environments in lutris-wrapper 2019-01-10 12:40:17 -08:00
Mathieu Comandon 3ab8e826a7 Remove set_connect_state, I believe that was for the old menu 2019-01-10 04:31:43 -08:00
Mathieu Comandon fa40c801d9 Move wrapper script to bin directory 2019-01-10 01:11:23 -08:00
Mathieu Comandon 145ba65c71 Remove encoding headers 2018-11-18 16:33:42 -08:00
Mathieu Comandon 648e285492 Consider any executable from /usr to be a system install 2018-05-18 14:46:57 -07:00
Mathieu Comandon cf8cd40438 Invalid locales can also throw ValueErrors 2018-05-16 13:12:48 -07:00
Mathieu Comandon 2f07521731 Provide additional details for unsupported locales (Fixes #660) 2018-05-08 15:37:46 -07:00
Mathieu Comandon c332fc8d03 Catch errors when using an unsupported locale 2017-09-27 21:14:01 -07:00
Patrick Griffis 992e7221a5 Remove unused padsp32 2017-05-19 02:16:00 -04:00
Patrick Griffis eba8a3c11e Don't generate cache files when ran locally 2017-05-19 01:40:24 -04:00
Mathieu Comandon a879f6348d Taking a shot at setting up i18n but I have no idea what I'm doing and quite frankly, I don't evn care about it 2017-05-18 16:14:18 -07:00
Mathieu Comandon dcf0633f58 Remove unused code in launcher script 2017-03-17 18:12:56 -07:00
Patrick Griffis d48d2410ff Properly use Gtk.Application, kill custom DBus service 2016-12-04 08:44:19 -05:00
Mathieu Comandon 541da26c6c Remove --verbose command line flag 2016-09-28 21:57:09 -07:00
Mathieu Comandon 48e7d5c384 No need to replace non existing directory with a dash in json 2016-09-28 20:27:38 -07:00
Mathieu Comandon dbe84eeada Fix list-games command line option (Fixes #370) 2016-09-28 20:18:41 -07:00
Mathieu Comandon 9c95bfc853 Create RuntimeUpdater class 2016-09-18 08:55:08 -07:00
Mathieu Comandon 0e3dc50ba9 Consider this fixed, I believe switching to daemon thread means that we won't encounter this problem soon 2016-08-05 21:18:03 -07:00
Mathieu Comandon db2ae4619c This thing 2016-08-05 21:14:59 -07:00
Mathieu Comandon 580cc5dd39 Add states to Steam games list 2016-08-05 20:53:50 -07:00
Mathieu Comandon b99051cc4e Provide more info with --list-steam-games 2016-08-05 20:48:23 -07:00
Mathieu Comandon e5be8f2258 Some python3 fixes 2016-08-04 02:11:01 -07:00
Mathieu Comandon cfef4b5024 Sync Python 3 branch 2016-08-04 01:50:54 -07:00
Mathieu Comandon 295df757c0 Launch Steamatcher with the main UI 2016-08-02 14:22:53 -07:00
Mathieu Comandon a0bb7ee719 Implement list-steam-folders 2016-07-30 17:50:30 -07:00
Mathieu Comandon 9e0e111184 lol, no 2016-07-30 16:56:27 -07:00
Mathieu Comandon de64faa9c7 Change logging priorities in DBus fails 2016-06-10 21:27:47 -07:00
Mathieu Comandon 8c625cb64d Leave FIXME note about broken D-Bus error handling 2016-06-10 21:23:47 -07:00
Mathieu Comandon 68baf8da4b Remove unresponsive client error message 2016-06-10 21:07:04 -07:00
Mathieu Comandon 8ed11639bb Fixes to get main window back 2016-02-25 05:35:00 -08:00
Mathieu Comandon 69215d8e3f Merge next branch 2016-02-25 05:26:44 -08:00
Mathieu Comandon d60b1cf497 restore some DBus stuff 2016-02-21 20:30:04 -08:00
Mathieu Comandon 8e664d6bdd Specify Gtk/Gdk versions required 2016-02-21 13:18:25 -08:00
Mathieu Comandon 78d4f91a39 Catch KeyboardInterrupts when launching games directly 2016-02-17 13:41:56 -08:00
Mathieu Comandon e4409e487c Move DBus related code to its own module 2016-02-17 13:22:20 -08:00
Mathieu Comandon 4c2d623741 Move console logger setup to the logging module 2016-02-17 12:49:36 -08:00
Mathieu Comandon 436d40071f Remove yaml check depending on software-center 2016-02-03 22:14:23 -08:00
Mathieu Comandon c8acbd805d Merge from next 2016-01-24 16:15:29 -08:00