Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Gdoc native formats to weblinks as an option #19

Closed
kamilner opened this issue Sep 24, 2013 · 10 comments
Closed

Convert Gdoc native formats to weblinks as an option #19

kamilner opened this issue Sep 24, 2013 · 10 comments
Milestone

Comments

@kamilner
Copy link

It would be good to have this app convert the native Google Docs apps into URL weblinks.

This is how the Native Google drive app on Windows and Mac, and the Insync client (as of latest version) work. This allows you to leave these as read-only as all editing is done via the web client.

@gaspo
Copy link

gaspo commented Sep 30, 2013

+1

astrada added a commit that referenced this issue Oct 1, 2013
Implement option to display file extensions for Google Docs
@astrada
Copy link
Owner

astrada commented Oct 1, 2013

In release 0.4.5, you can use the desktop format to create a desktop shortcut to the documents. And using the new docs_file_extension option, you can also display file extensions for Google Docs, so that you will be able to edit the docs directly in the web browser, double clicking the files. This is an example config file to obtain that behavior:

sqlite3_busy_timeout=500
read_only=false
conflict_resolution=server
verification_code=
drawing_format=desktop
document_format=desktop
form_format=desktop
docs_file_extension=true
keep_duplicates=false
presentation_format=desktop
download_docs=true
client_secret=
metadata_cache_time=60
client_id=
spreadsheet_format=desktop
debug=false
umask=0o002

Note that when you change the docs_file_extension from false to true or viceversa, you should clean the cache using the -cc command line option. Otherwise, you will still see the cached files with/without the file extensions.

@robinhood007
Copy link

First of all nice job man! Now coming to the issue. I am sure you are aware, but making sure its brought to attention. The native google spreadsheets are showing us as zip files with a total of 4 xml files in the archive.

@astrada
Copy link
Owner

astrada commented Oct 3, 2013

The zip with the xml files is probably a .ods (OpenOffice Spreadsheet). You should see a .desktop file of about 150-160 bytes, and if you print its content with cat, you should see something like this:

[Desktop Entry]
Type=Link
Name=TestSpreadheet.desktop
URL=https://docs.google.com/spreadsheet/ccc?key=0[...]c&usp=drivesdk

Could you please post the content of your config file (after removing the client id/secret if present)?

@robinhood007
Copy link

No man that is not a link file or a open document file for sure. have a look in the screen capture.
github

@astrada
Copy link
Owner

astrada commented Oct 4, 2013

Could you please post the content of your ~/.gdfuse/default/config file?

@robinhood007
Copy link

here you go mate!
docs_file_extension=false
verification_code=
umask=0o002
document_format=odt
debug=false
presentation_format=pdf
spreadsheet_format=ods
download_docs=true
client_id=
drawing_format=png
conflict_resolution=server
keep_duplicates=false
metadata_cache_time=60
client_secret=
read_only=false
form_format=ods
sqlite3_busy_timeout=500

@astrada
Copy link
Owner

astrada commented Oct 5, 2013

Could you try with this one?

docs_file_extension=true
verification_code=
umask=0o002
document_format=odt
debug=false
presentation_format=pdf
spreadsheet_format=ods
download_docs=true
client_id=
drawing_format=png
conflict_resolution=server
keep_duplicates=false
metadata_cache_time=60
client_secret=
read_only=false
form_format=ods
sqlite3_busy_timeout=500

Then run

google-drive-ocamlfuse -cc

to reset the cache, and then run the usual command to mount you drive.

@robinhood007
Copy link

fixed now.

On a different issue, have you noticed double click on files/folders doesn't work all the time, though right click open always works.

@astrada
Copy link
Owner

astrada commented Oct 5, 2013

It's probably due to the latency of the remote filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants