-
Notifications
You must be signed in to change notification settings - Fork 7
Custom application to open .gdoc extensions
lmmx edited this page Dec 26, 2014
·
33 revisions
-
cut -d\" -f 4is the URL, just pass it togoogle-chrome
google-chrome $(cut -d\" -f 4 "$@")
[Desktop Entry]
Name=gdocopen
Exec=/usr/bin/gdocopen.sh %U
Terminal=false
Type=Application
MimeType=application/vnd.google-apps.document;
- First check
gdocdoesn't have an associated mime-type:grep 'gdoc' /etc/mime.types - Add it if not:
sudo vim /etc/mime.types(as per this)
* Set the `.desktop` file (and associated script) as default application for the new MimeType: `xdg-mime default gdocopen.desktop "application/vnd.google-apps.document"`application/vnd.google-apps.document gdoc