Skip to content

Commit

Permalink
chromium-browser: consider chrome and chromium as aliases
Browse files Browse the repository at this point in the history
Only Ubuntu calls it "chromium-browser", all others (Debian, Arch Linux,
Fedora) call it "chromium". When built from source, the resulting binary
is called "chrome".
  • Loading branch information
Lekensteyn authored and scop committed Oct 14, 2018
1 parent cf5fe10 commit 58da331
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions completions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ btdownloadgui.py
c++
cc
cdrecord
chrome
chromium
ci
ciptool
civclient
Expand Down
4 changes: 3 additions & 1 deletion completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ CLEANFILES = \
c++ \
cc \
cdrecord \
chrome \
chromium \
ci \
ciptool \
civclient \
Expand Down Expand Up @@ -759,7 +761,7 @@ symlinks: $(targetdir) $(DATA)
rm -f $(targetdir)/$$file && \
$(LN_S) cardctl $(targetdir)/$$file ; \
done
for file in google-chrome google-chrome-stable ; do \
for file in google-chrome google-chrome-stable chromium chrome; do \
rm -f $(targetdir)/$$file && \
$(LN_S) chromium-browser $(targetdir)/$$file ; \
done
Expand Down
2 changes: 1 addition & 1 deletion completions/chromium-browser
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ _chromium_browser()
_filedir "@(?([xs])htm?(l)|pdf)"
} &&
complete -F _chromium_browser chromium-browser google-chrome \
google-chrome-stable
google-chrome-stable chromium chrome

# ex: filetype=sh

0 comments on commit 58da331

Please sign in to comment.