mirror of
https://github.com/lutris/lutris
synced 2024-11-02 13:31:16 +00:00
Add Winetricks to context menu for Wine games
This commit is contained in:
parent
3ae557f6ae
commit
acb46b8e98
1 changed files with 6 additions and 1 deletions
|
@ -302,7 +302,8 @@ class wine(Runner):
|
|||
|
||||
self.context_menu_entries = [
|
||||
('winecfg', "Wine configuration", self.run_winecfg),
|
||||
('wine-regedit', "Wine registry", self.run_regedit)
|
||||
('wine-regedit', "Wine registry", self.run_regedit),
|
||||
('winetricks', 'Winetricks', self.run_winetricks),
|
||||
]
|
||||
|
||||
desktop_choices = [('Yes', 'Desktop_res'),
|
||||
|
@ -552,6 +553,10 @@ class wine(Runner):
|
|||
wineexec("regedit", wine_path=self.get_executable(),
|
||||
prefix=self.prefix_path)
|
||||
|
||||
def run_winetricks(self, *args):
|
||||
winetricks('', prefix=self.prefix_path,
|
||||
winetricks_env=self.get_executable())
|
||||
|
||||
def check_regedit_keys(self, wine_config):
|
||||
"""Reset regedit keys according to config."""
|
||||
prefix = self.prefix_path
|
||||
|
|
Loading…
Reference in a new issue