12345678910111213141516171819202122232425262728293031 |
- # frozen_string_literal: true
- # This is necessary to let `brew services` fall through to the actual handler for it =]
- require_relative "../../../homebrew/homebrew-services/cmd/services"
- # We need to require this ourselves so that when homebrew-services requires it on its own, Ruby won't reload that shit and kill our magic ;;]];];
- require_relative "../../../homebrew/homebrew-services/lib/service/system"
- opoo "You have homebrew-services-bg installed on a non-macOS system, which doesn't do anything\n\n" if !OS.mac?
- module Service
- module System
- # This seems to be necessary so the domain_target method gets defined in the proper namespace (otherwise there's no override lel)
- module_function
- # Otherwise el alias no werkies ;_;
- class << self
- alias bg_domain_target domain_target
- end
- # Bighekkem
- def domain_target
- target = bg_domain_target()
- if target.start_with?("gui/")
- target.sub("gui/", "user/")
- else
- target
- end
- end
- end
- end
|