Commit graph

1705 commits

Author SHA1 Message Date
Xodetaetl 513615ef3c Put stuff in quotes in the script to be run in a terminal 2015-04-29 19:07:44 +02:00
Xodetaetl ad7596e9cd Fix runner.game_config returning None 2015-04-29 13:50:06 +02:00
Xodetaetl 9d1c129a41 Force 'Run in a terminal' option to True for frotz 2015-04-29 00:56:46 +02:00
Xodetaetl 9636797e10 Avoid crash due to config sections == None 2015-04-29 00:31:47 +02:00
Xodetaetl d357dd87df Modify the 'run in terminal' system
This change has 3 effects:
- The terminal won't inherit the game env (i.e. won't be run in the
runtime, which would be prone to incompatibilities).
- The terminal stays open when the game is quit.
- The code to run in a term is now in LutrisThread, so it's accessible
to other parts of the code, not only the game class.
2015-04-28 23:00:00 +02:00
Xodetaetl 85baf8d924 Disable Stop button when game has stopped 2015-04-28 21:59:25 +02:00
Xodetaetl c3d5faa80b Little refactoring in ConfigBox 2015-04-28 21:55:11 +02:00
Xodetaetl d62b63dcdd Split command args with the shlex module 2015-04-27 19:08:55 +02:00
Xodetaetl baf79904c1 Fix runner and system config sections not returned at game level 2015-04-26 23:18:38 +02:00
Xodetaetl 399b5a61c0 Change label for game_path option again 2015-04-25 19:21:57 +02:00
Xodetaetl e7868b4cef Fix system.reverse_expanduser 2015-04-25 18:06:25 +02:00
Xodetaetl 82d1cfda04 Save game output to game_log on heartbeat instead of on game quit 2015-04-25 15:49:46 +02:00
Xodetaetl 5a0fea6809 Wrap text in log window 2015-04-25 14:42:22 +02:00
Xodetaetl 66c9c0eb2d Try /sbin/fuser if /bin/fuser doesn't exist (fix #174) 2015-04-25 14:06:17 +02:00
Xodetaetl 7074426a2b Replace lsof with fuser to get wine's child processes' PID 2015-04-25 11:46:29 +02:00
Xodetaetl 5465114792 Fix resetting Multiple File Selector 2015-04-24 23:29:38 +02:00
Xodetaetl de8c7c4cad Add status bar "Updating runtime" message 2015-04-24 12:22:30 +02:00
Xodetaetl 11486866f2 Refactor ConfigBox.generate_widgets
- Extract call_widget_generator()
- Destroy-regenerate option widgets instead of resetting value when
reset button clicked (20 lines of hairy code saved, wooo!)
- Move methods around to their appropriate place
2015-04-24 11:08:14 +02:00
Xodetaetl 49f1507327 Fix combobox & filechooser option widgets' height 2015-04-23 21:57:30 +02:00
Xodetaetl 896d6a5356 Contract /home/user path to '~' on directory chooser 2015-04-23 21:23:16 +02:00
Xodetaetl 76a68b5aa2 Replace FileChooserButton with Mr Strider's custom FileChooserEntry
Actually it's not for files but for the "directory_chooser" option
type. The stock Gtk chooser doesn't show the folder if the given path
doesn't exist, which is bad for us. And the entry + browse button is
just better anyway: one less click to browse and allows to copy-paste
entire paths.

I have left the Gtk chooser for browsing files though. Not sure what's
better yet. At least this way it clearly differentiates file and
folder choosers.
2015-04-23 18:14:42 +02:00
Xodetaetl aa861002b9 Use "game_path" even if folder doesn't exist (yet) 2015-04-23 13:26:41 +02:00
Xodetaetl 74b957a73e Add defaults to the cascaded config (move code from runner module) 2015-04-23 10:15:17 +02:00
Xodetaetl fa3639e9f1 Add cascading system to LutrisConfig
Beware strycore, the usage of the config is slightly changed, read the
docstring. ;)
2015-04-23 00:37:50 +02:00
Xodetaetl 8451483c93 Renaming more stuff in LutrisConfig
Ok the term "config type" doesn't exist anymore :). Now it's "config
section", which is more explicit.

Other changes:

game > game_slug
runner > runner_slug

game_config > game_level
runner_config > runner_level
system > system_level

I sliced through a bigger bunch of changes to create this commit (for
clarity) but couldn't slice in an exactly meaningful way so there are
a couple places that only make sense with the next commit.
2015-04-22 18:57:56 +02:00
Xodetaetl 2a143aaadd Refactor: fix confusion between config levels and option types
I'm making a clear semantical separation between config level and
option type. Previously, "config type" was the only name for both
things,  which caused confusion and mistakes. Most notably, the config
module doesn't return cascaded values, only the raw values from the
given level. While the cascade is in place externally in the runner
module, it's not used in the config dialogs. I'm going to fix this in
a subsequent commit.
2015-04-20 19:14:16 +02:00
Xodetaetl 53dedecda9 Revert mistakenly commited thread watching changes 2015-04-18 19:08:27 +02:00
Xodetaetl 916991deb9 Fix wine registry keys settings again
But there may be more to do. I'm seeing 100 cpu usage on all wine
games  and I doubt it's always been like this.
2015-04-17 21:09:35 +02:00
Xodetaetl 04f4953a4c Oooops, better keep those screens turned on ! ^^ 2015-04-17 17:27:55 +02:00
Xodetaetl 16018e5fc0 Refactor advanced options hiding: use no_show_all prop 2015-04-17 16:56:05 +02:00
Xodetaetl 122544f595 Add reset button to options 2015-04-17 14:00:21 +02:00
Xodetaetl ba152f6952 Refactor ConfigBox: make wrapper a class object
This change is so that I can add the Reset button only once in the
code instead of in each option-type method.

I removed the VBox too – was useless – and made the HBox the
"wrapper".
2015-04-16 18:42:54 +02:00
Xodetaetl bed4a1abf6 Space out SidebarTreeView's code 2015-04-15 22:27:26 +02:00
Xodetaetl 259cac754b Add "Show advanced options" checkbox to config dialogs 2015-04-15 18:16:50 +02:00
Xodetaetl 11de5b27cc Refactor RunnerConfigDialog: use shared code to build config boxes 2015-04-15 15:20:37 +02:00
Xodetaetl 6e9876f557 Revert last commit
Found an external solution. :P
2015-04-15 12:10:21 +02:00
Xodetaetl dd65b2b2aa Remove fakegir from the Python path
Sorry, had to do this, for Wing IDE uses the same Python path for the
editor and for debugging. :'(
I tried various things to do this outside of the main code but
couldn't find a solution.
2015-04-15 11:52:05 +02:00
Xodetaetl 0ab7832659 Refactor LutrisWindow.get_size()
Streamline the method's and argument's names
2015-04-14 22:18:45 +02:00
Xodetaetl 0a1facc26a Save/Restore the Manage Runners window's size 2015-04-14 22:14:30 +02:00
Xodetaetl 98a8624efb Fix passing integer values to ConfigParser
See problem with passing non-strings to ConfigParser.set() explained
here: http://stackoverflow.com/a/21485083/3486820
2015-04-14 21:38:12 +02:00
Xodetaetl 273e0a562b Allow shrinking the Manage Runners dialog 2015-04-14 15:07:15 +02:00
Xodetaetl 37771391b6 Add exception for gnome-terminal: run command with -x, not -e 2015-04-14 10:40:15 +02:00
Xodetaetl 7cddeb414f Remove implicit help from 'Manage runners' window 2015-04-14 10:33:21 +02:00
Xodetaetl fe2bf2a262 Add 'scope' param to options
Hide option if the option level (system, runner or game) isn't in the
given scopes list.

Here I'm hiding the system option 'Library default folder' from the
game level because it's of no use at this level.
2015-04-13 23:06:14 +02:00
Xodetaetl abbd8b2a68 Add 'condition' param to options (grey out if condition unmet)
And start off with greying out primusrun, xboxdrv and pulseaudio
options if they are not installed.
2015-04-13 22:40:18 +02:00
Xodetaetl 4ce9ea7bf3 Remove now redundant code to get options default for snes9x 2015-04-13 20:59:07 +02:00
Xodetaetl 27a74e0e58 Fix 'Icon style > Icon' menu item selection not remembered (fix #116) 2015-04-13 20:19:28 +02:00
Xodetaetl b9a16232d4 Fix mupen64plus nogui parameter 2015-04-13 19:23:07 +02:00
Xodetaetl 741da0f6db Convert some dict.get('val', '') to dict.get('val') or '' 2015-04-13 19:22:14 +02:00
Xodetaetl 62fb00cb16 Include options' default when getting config values (fix #157) 2015-04-13 19:18:15 +02:00