Add Winetricks to context menu for Wine games

This commit is contained in:
Xodetaetl 2015-08-02 10:53:13 +02:00
parent 3ae557f6ae
commit acb46b8e98

View file

@ -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