Commit graph

4462 commits

Author SHA1 Message Date
Mathieu Comandon 9ae36e6793 Remove disable_monitoring option 2018-12-17 23:15:18 -08:00
Mathieu Comandon 5fc0d92ae4 Add option to define the max number of empty cycles in the monitor 2018-12-17 23:10:30 -08:00
Mathieu Comandon 479c88e7b8 Remove killall since we never want that now 2018-12-17 22:28:56 -08:00
Mathieu Comandon 93931cd0b5 Reduce verbosity of monitor 2018-12-17 22:23:21 -08:00
Mathieu Comandon 4c8ea36abc Remove WARMUP_TIME 2018-12-17 22:15:14 -08:00
Mathieu Comandon 2901c6b6f6 Remove process thread from process monitor 2018-12-17 21:56:51 -08:00
Mathieu Comandon 376c67ef68 Simplify watch_children in LutrisThread 2018-12-17 21:06:49 -08:00
Mathieu Comandon e706a8d060 Create ProcessMonitor class 2018-12-17 20:47:33 -08:00
Mathieu Comandon c76a388bad Remove game_launch_time 2018-12-17 20:20:34 -08:00
Mathieu Comandon cd95a9bb05 Remove the whole ready_for_launch thing because it's clearly not doing what I think it does 2018-12-17 20:19:26 -08:00
Mathieu Comandon 2b373360a4 Allow blank executables for find_executable 2018-12-17 20:11:23 -08:00
Mathieu Comandon 99e4f8b686 Rename confusing watch_game_process method 2018-12-17 20:08:39 -08:00
Mathieu Comandon 3e16e2fb1f Remove command_string attribute in LutrisThread 2018-12-17 19:43:48 -08:00
Mathieu Comandon cdc33eafe7 Remove yaml based log 2018-12-17 19:38:24 -08:00
Mathieu Comandon d9d2049552 Export environment variables in the run_in_terminal script 2018-12-17 19:37:40 -08:00
Mathieu Comandon fd07ebe461 Simplify terminal detection 2018-12-17 19:28:59 -08:00
Mathieu Comandon a25fce8c76 Extract set_child_subreaper in the monitor module 2018-12-17 19:25:51 -08:00
Mathieu Comandon 1ce44745bf Add some docstrings to Process class 2018-12-17 18:53:05 -08:00
Mathieu Comandon 00f69f7c46 Minor cleanup for LutrisThread 2018-12-17 18:45:36 -08:00
Aaron Opfer 78c175f446 additional tweaks 2018-12-16 12:11:57 -08:00
Aaron Opfer 0d76241dcf Use PR_SET_CHILD_SUBREAPER to detect grandchildren
Fixes #1413.

Lutris' process monitor right now cannot properly follow "fork-and-die" processes. The grandchild process is invisible to Lutris and then Lutris kills the runner.

This changeset sets [`PR_SET_CHILD_SUBREAPER`](http://man7.org/linux/man-pages/man2/prctl.2.html) so that these grandchild processes become child processes of Lutris instead, and Lutris can track them properly.

Note that fix will only be effective in Linux 3.4+ as that is when `PR_SET_CHILD_SUBREAPER` was introduced.
2018-12-16 12:07:34 -08:00
Mathieu Comandon 0593d63d7e Enable debug tracebacks for async calls 2018-12-16 12:06:33 -08:00
Torge Matthies e581377204 Include new subpackage lutris.vendor in setup.py 2018-12-15 11:27:46 -08:00
Mathieu Comandon 4c065f0c5c Remove unused datapath import 2018-12-15 03:45:27 -08:00
Mathieu Comandon fa593f6b1d Remove DLLs in share/lutris/controllers 2018-12-15 03:39:22 -08:00
Mathieu Comandon fef22cb7a3 Use dumbxinputemu / x360ce from the runtime 2018-12-15 03:38:42 -08:00
Mathieu Comandon 599cebd2d2 Exclude all Proton pattern matches from Steam sync 2018-12-15 02:39:36 -08:00
Mathieu Comandon 00b83e7039 Update runtime asynchronously 2018-12-15 02:25:21 -08:00
Mathieu Comandon 6f3489a425 Remove vendored gamecontrollerdb.txt 2018-12-15 01:59:51 -08:00
Mathieu Comandon 46337ac43b Log exceptions when failing to read wine versions 2018-12-15 01:59:26 -08:00
Mathieu Comandon 9ee3160a92 gamecontrollerdb is now provided by the runtime 2018-12-15 01:58:04 -08:00
Mathieu Comandon 260b83e2d9 Return early from get_system_wine_version if path does not exist 2018-12-15 01:53:18 -08:00
Mathieu Comandon 6d887c10e0 Remove log when runtimes are up to date 2018-12-15 01:48:57 -08:00
Mathieu Comandon a6f5fb5e82 Use fixed size labels in config dialogs 2018-12-15 01:12:32 -08:00
Medath 88646fb4b9 fix esync check on game launch 2018-12-15 00:28:30 -08:00
Mathieu Comandon c0dd501f79 Do not block UI while getting icons, display icons as they come (Closes #1292) 2018-12-14 23:57:22 -08:00
Mathieu Comandon 3c6d019040 Remove calls to threads_init 2018-12-14 21:31:17 -08:00
Mathieu Comandon 5e3cbe8f68 Avoid stopping a game twice 2018-12-14 20:59:51 -08:00
Mathieu Comandon 49a4810486 Implement game-stop signal 2018-12-14 20:55:28 -08:00
Mathieu Comandon 6ec32e3fbc Remove duplicate play call 2018-12-14 20:31:21 -08:00
Mathieu Comandon 392164d078 Handle infobar revealer from lutris window 2018-12-14 20:28:38 -08:00
Mathieu Comandon b2613ec6b7 Re-implement stop and show logs 2018-12-14 20:06:10 -08:00
Mathieu Comandon d3f0f0dfb8 Show something in the revealer when the game launches 2018-12-14 18:20:18 -08:00
Mathieu Comandon 53547fc4c8 Minor cleanups 2018-12-14 18:08:51 -08:00
Mathieu Comandon 0ec904974c Remove infobar_label, give ID to infobar_box 2018-12-14 17:20:21 -08:00
Mathieu Comandon 07f1ab70ac Add methods for RunningGame.stop and show_logs 2018-12-14 17:17:21 -08:00
Mathieu Comandon 2383386ced Remove view-game-log action 2018-12-14 17:12:35 -08:00
Mathieu Comandon 20cb4becf1 Remove stop game action 2018-12-14 16:51:50 -08:00
Mathieu Comandon 20d13befce Revert "Remove infobar contents in glade file"
This reverts commit 2d145b2483.
2018-12-14 16:47:30 -08:00
Mathieu Comandon 59d6c3785c Add documentation header for gi_composite 2018-12-14 15:33:14 -08:00