diff --git a/lib/service/system.rb b/lib/service/system.rb index ed11034fd6..18e3ee6676 100644 --- a/lib/service/system.rb +++ b/lib/service/system.rb @@ -76,7 +76,7 @@ def domain_target if root? "system" else - "gui/#{Process.uid}" + "user/#{Process.uid}" end end end diff --git a/spec/homebrew/system_spec.rb b/spec/homebrew/system_spec.rb index 6332b7ba58..8f7c8e070b 100644 --- a/spec/homebrew/system_spec.rb +++ b/spec/homebrew/system_spec.rb @@ -75,7 +75,7 @@ describe "#domain_target" do it "returns the current domain target" do allow(described_class).to receive(:root?).and_return(false) - expect(described_class.domain_target).to match(%r{gui/(\d+)}) + expect(described_class.domain_target).to match(%r{user/(\d+)}) end it "returns the root domain target" do