Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
4.2 KiB

7 years ago
  1. --- a/lib/wine.lib
  2. +++ b/lib/wine.lib
  3. @@ -1101,6 +1101,7 @@
  4. cname="$(POL_Wine_exename "$@")"
  5. [ "$cname" = "winecfg" ] && cname="Configure wine"
  6. [ "$cname" = "regedit" ] && cname="Registry Editor"
  7. + [ "$cname" = "uninstaller" ] && cname="Add/Remove Programs Menu"
  8. [ "$cname" = "wineboot" ] && cname="Virtual drive creation"
  9. echo "$cname"
  10. }
  11. --- a/python/mainwindow.py
  12. +++ b/python/mainwindow.py
  13. @@ -471,6 +471,7 @@
  14. wx.EVT_TREE_ITEM_MENU(self, 105, self.RMBInGameList)
  15. wx.EVT_MENU(self, 230, self.RWineConfigurator)
  16. wx.EVT_MENU(self, 231, self.RRegistryEditor)
  17. + wx.EVT_MENU(self, 237, self.RWineUninstaller)
  18. wx.EVT_MENU(self, 232, self.GoToAppDir)
  19. wx.EVT_MENU(self, 233, self.ChangeIcon)
  20. wx.EVT_MENU(self, 234, self.UninstallGame)
  21. @@ -588,6 +589,10 @@
  22. self.RegistryEditor = wx.MenuItem(self.GameListPopUpMenu, 231, _("Registry Editor"))
  23. self.RegistryEditor.SetBitmap(wx.Bitmap(Variables.playonlinux_env+"/resources/images/menu/regedit.png"))
  24. self.GameListPopUpMenu.AppendItem(self.RegistryEditor)
  25. +
  26. + self.WineUninstaller = wx.MenuItem(self.GameListPopUpMenu, 237, _("Add/Remove Programs Menu"))
  27. + self.WineUninstaller.SetBitmap(wx.Bitmap(Variables.playonlinux_env+"/resources/images/menu/wine-uninstaller.png"))
  28. + self.GameListPopUpMenu.AppendItem(self.WineUninstaller)
  29. self.GotoAppDir = wx.MenuItem(self.GameListPopUpMenu, 232, _("Open the application's directory"))
  30. self.GotoAppDir.SetBitmap(wx.Bitmap(Variables.playonlinux_env+"/resources/images/menu/folder-wine.png"))
  31. @@ -628,6 +633,9 @@
  32. def RRegistryEditor(self, event):
  33. self.RConfigure("regedit")
  34. + def RWineUninstaller(self, event):
  35. + self.RConfigure("uninstaller")
  36. +
  37. def run_plugin(self, event):
  38. game_exec = self.GetSelectedProgram()
  39. plugin=self.plugin_list[event.GetId()-300]
  40. @@ -796,7 +804,7 @@
  41. self.menuGaucheAddLink("pol_prgm_readme", _("Read the manual"), i,Variables.playonlinux_env+"/resources/images/menu/manual.png",self.ReadMe)
  42. i+=1
  43. - self.menuGaucheAddLink("pol_prgm_uninstall", _("Uninstall"), i,Variables.playonlinux_env+"/resources/images/menu/window-close.png",self.UninstallGame)
  44. + self.menuGaucheAddLink("pol_prgm_uninstall", _("Remove"), i,Variables.playonlinux_env+"/resources/images/menu/window-close.png",self.UninstallGame)
  45. self.linksfile = os.environ["POL_USER_ROOT"]+"/configurations/links/"+shortcut
  46. --- a/bash/polconfigurator
  47. +++ b/bash/polconfigurator
  48. @@ -51,6 +51,14 @@
  49. wineserver -k
  50. POL_Wine regedit
  51. }
  52. +polconfigurator_uninstaller()
  53. +{
  54. + POL_Wine_AutoSetVersionEnv
  55. + wineserver -k
  56. + export POL_IgnoreWineErrors=True
  57. + POL_Wine uninstaller
  58. + export POL_IgnoreWineErrors=False
  59. +}
  60. polconfigurator_wineboot()
  61. {
  62. POL_Wine_AutoSetVersionEnv
  63. @@ -104,6 +112,7 @@
  64. {
  65. local LNG_CONFIGURE=$(eval_gettext "Configure Wine")
  66. local LNG_REGISTRY=$(eval_gettext "Registry Editor")
  67. + local LNG_UNINSTALLER=$(eval_gettext "Add/Remove Programs Menu")
  68. local LNG_KPROCESS=$(eval_gettext "Kill all prefix processes")
  69. local LNG_UPDATEPREFIX=$(eval_gettext "Update wineprefix")
  70. local LNG_WINDOWS_REBOOT=$(eval_gettext "Simulate Windows reboot")
  71. @@ -114,7 +123,7 @@
  72. local LNG_WINETRICKS=$(eval_gettext "Use WineTricks")
  73. # ~$LNG_UPDATEPREFIX
  74. - local ITEMS="$LNG_CONFIGURE~$LNG_REGISTRY~$LNG_KPROCESS~$LNG_WINDOWS_REBOOT~$LNG_CHANGEICON"
  75. + local ITEMS="$LNG_CONFIGURE~$LNG_REGISTRY~$LNG_UNINSTALLER~$LNG_KPROCESS~$LNG_WINDOWS_REBOOT~$LNG_CHANGEICON"
  76. if [ -e "$POL_USER_ROOT/plugins/Advanced Wine Configuration" ]
  77. then
  78. ITEMS+="~$LNG_APLUGIN"
  79. @@ -134,6 +143,7 @@
  80. POL_SetupWindow_menu "$(eval_gettext "Please choose an action to perform")" "$TITLE" "$ITEMS" "~"
  81. [ "$APP_ANSWER" = "$LNG_CONFIGURE" ] && funct=winecfg
  82. [ "$APP_ANSWER" = "$LNG_REGISTRY" ] && funct=regedit
  83. + [ "$APP_ANSWER" = "$LNG_UNINSTALLER" ] && funct=uninstaller
  84. [ "$APP_ANSWER" = "$LNG_KPROCESS" ] && funct=kprocess
  85. # [ "$APP_ANSWER" = "$LNG_UPDATEPREFIX" ] && funct="??"
  86. [ "$APP_ANSWER" = "$LNG_WINDOWS_REBOOT" ] && funct=wineboot