Debian Codegraph @

debian/patches/disable-install-update-ui.patch

raw symbols SCIP
1 Description: Use bettercap-ui package.
2 We packaged the bettercap-ui so remove the install/update function
3 for UI and use the correct path to UI:/usr/share/bettercap.
4 Author: Sophie Brun <[email protected]>
5 Origin: Kali Linux, https://gitlab.com/kalilinux/packages/bettercap/-/raw/b97175cfd96369ca42aa931ac08eba81444586f4/debian/patches/dont-update-install-ui.patch
6 Forwarded: not-needed
7 Reviewed-By: Francisco Vilmar Cardoso Ruviaro <[email protected]>
8 Last-Update: 2026-04-15
9
10 --- a/modules/ui/ui.go
11 +++ b/modules/ui/ui.go
12 @@ -34,7 +34,7 @@ func getDefaultInstallBase() string {
13 if runtime.GOOS == "windows" {
14 return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
15 }
16 - return "/usr/local/share/bettercap/"
17 + return "/usr/share/bettercap/"
18 }
19
20 func NewUIModule(s *session.Session) *UIModule {
21 @@ -43,8 +43,8 @@ func NewUIModule(s *session.Session) *UI
22 client: github.NewClient(nil),
23 }
24
25 - mod.AddParam(session.NewStringParameter("ui.basepath",
26 - getDefaultInstallBase(),
27 +/* mod.AddParam(session.NewStringParameter("ui.basepath",
28 + "/usr/share/bettercap/",
29 "",
30 "UI base installation path."))
31
32 @@ -60,10 +60,11 @@ func NewUIModule(s *session.Session) *UI
33 }))
34
35 mod.AddHandler(session.NewModuleHandler("ui.update", "",
36 - "Download the latest available version of the UI and install it.",
37 + "Disable in Debian. Install the package bettercap-ui",
38 func(args []string) error {
39 return mod.Start()
40 }))
41 +*/
42
43 return mod
44 }
45 @@ -73,7 +74,7 @@ func (mod *UIModule) Name() string {
46 }
47
48 func (mod *UIModule) Description() string {
49 - return "A module to manage bettercap's UI updates and installed version."
50 + return "A module to manage bettercap's UI. Disabled in Debian: use apt install bettercap-ui to install and/or update ui."
51 }
52
53 func (mod *UIModule) Author() string {