Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orbiter/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ local function uname()
end

local function which(prog)
return shell ('which %s 2> /dev/null' % prog)
return shell ('which '..prog..' 2> /dev/null')
end

function launch_browser (url,browser)
Expand All @@ -125,7 +125,7 @@ function launch_browser (url,browser)
end
if not browser then
local os = uname()
if line == 'Darwin' then
if os == 'Darwin' then
browser = 'open'
else
for _,p in ipairs(browsers) do
Expand Down