Skip to content

Commit

Permalink
Work around for xdg-open on xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Aug 8, 2018
1 parent d4f97ca commit bd4f28b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tools/travis/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,7 @@ if [[ "${OPTIONAL_DEPS}" == 1 ]]; then
export C_INCLUDE_PATH=/usr/include/gdal

# needed for view_graphviz and default_opener
DIR=~/.local/share/applications
mkdir -p $DIR
FILE=$DIR/png.desktop
cat <<EOF >$FILE
[Desktop Entry]
Name=png
MimeType=image/png;
Exec=/usr/bin/file
Type=Application
Terminal=true
NoDisplay=true
EOF

xdg-mime default png.desktop image/png
alias xdg-open="file"

fi

Expand Down

0 comments on commit bd4f28b

Please sign in to comment.