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.

113 lines
4.9 KiB

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