Skip to content

Commit c6855da

Browse files
committed
hs.spaces now explicitly finds the com.apple.dock bundle, rather than searching for 'Dock' which can match 'Docker'. Closes #3170
1 parent 019d376 commit c6855da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/spaces/spaces.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ local getDockExitTemplates = function()
5353
-- make a copy since preferredLanguages uses ls.makeConstantsTable for "friendly" display in console
5454
localesToSearch = table.move(localesToSearch, 1, #localesToSearch, 1, {})
5555
table.insert(localesToSearch, host.locale.current())
56-
local path = application("Dock"):path() .. "/Contents/Resources"
56+
local path = application.applicationsForBundleID("com.apple.dock")[1]:path() .. "/Contents/Resources"
5757

5858
local locale = ""
5959
while #localesToSearch > 0 do

0 commit comments

Comments
 (0)