Google Drive plugin is on the way...

English support forum

Moderators: Hacker, petermad, Stefan2, white

akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Google Drive plugin is on the way...

Post by *akopalsky »

THIS THREAD MOVED HERE: http://ghisler.ch/board/viewtopic.php?t=35985


Google Drive pre-release is finally out!
(I had some spare time to work on it)

You can download it from my server (I'll try to update it with latest releases)

DOWNLOAD LINK:
http://brooksman.net/downloads/download.php?file=gdplugin_latest.zip

This is work-in-progress, but basic functionality (e.g. dir view, file copy) is already working.....

I hope it won't be the heaviest plugin for totalcmd (11Mb) - anyway I tried to reduce the weight as much as I could, but because web access (for login) was needed, I had no choice...


INSTALLATION INSTRUCTIONS:
* Install as regular totalcmd plugin
* Copy libeay32.dll and ssleay32.dll to TC root folder
* Restart TC

ISSUES
* Compatability problem with SFTP plugin: different versions of libeay32.dll in TC root folder are used

FUTURE ROADMAP
* Caching mechanism (partly implemented, but not yet active)
* Support for several accounts

COMMENTS
* <INI PATH>\fsplugin.ini is used to store intermediate token to skip login each time. You can read your <INI PATH> from TC->Help->About



Comments, bug reports and feature suggestions are welcomed!

Enjoy,
Paul









---------
Hi guys,

I am a fan of Total Commander and I started working on standalone Google Drive plugin (that won't be dependent on other software).

It is not an easy task, but I believe it will go ok.

Please respond if it's only me or you also miss something like this.
Functionality requests are welcomed as well.

--
Paul.
Last edited by akopalsky on 2013-01-16, 11:04 UTC, edited 6 times in total.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Integrate SkyDrive, and you have me.
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

i did mention support for cloud is a now a must couple of months ago.

@akopalsky +1 from me.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50841
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I wonder how you solved the OAuth authentication for Google Drive.
Author of Total Commander
https://www.ghisler.com
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Post by *akopalsky »

@ghisler,
I already implemented a basic OAuth2 process (I have a web widget popup asking for login credentials). There is an issue with token timeouts, but I am considering a workaround for this....

BTW, I am also planning to implement multi-account capability (maybe not with an alpha release) in which a root folder will hold a list of different accounts

@hlloyge,

I am not working with SkyDrive at the moment, but following brief search I noticed this one - skydrivewfx @ codeplex_com (for some reason I can't post URLs)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2akopalsky
AFAIR this one started to have some troubles and wasn't updated for a while.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Post by *akopalsky »

Google Drive pre-release is finally out!
(I had some spare time to work on it)

You can download it from my server (I'll try to update it with latest releases)

DOWNLOAD LINK:
http://brooksman.net/downloads/download.php?file=gdplugin_0.1.zip

This is work-in-progress, but basic functionality (e.g. dir view, file copy) is already working.....

I hope it won't be the heaviest plugin for totalcmd (11Mb) - anyway I tried to reduce the weight as much as I could, but because web access (for login) was needed, I had no choice...

Comments and bug reports are welcomed!
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

wow gr8 job, tanks a lot.

just a suggestion, how about statically linking to the Qt?
as this is Windows and Qt isn't natively supported (times like these I wish I still used SUSE) we get too many dll's, you can take a look at this open source project http://sourceforge.net/projects/qbittorrent (they use statically linked Qt for the windows builds) and by statically linking the Qt you might end up with a smaller wfx as most of the size goes to the Qt runtime, I'm not a developer but I do know recompiling Qt for statical linking can be a pain so it's just an idea.
Any chance for mediafire with their free 50GiB account they got me hooked they do provide a dev api
http://developers.mediafire.com/index.php/Main_Page
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Where are the log-in settings stored?
How do you log-out?
I thought it used ie's cache and cookies I cleared those but I still can't use a different account.

Didn't notice an ini file where is the username/password cached?
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Post by *akopalsky »

2iana

I can statically link the Qt, but it won't reduce too much, because I use Qt WebKit to load the login screen, and I plan to use it for additional functionality in future as well. I guess it was possible to use IE instead, but I was afraid for compatibility issues with different versions.
Static linking has licensing issues as well (not sure)

Username and password are not stored locally (it'd be a real security flow), the application is not receiving it as well (it is passed directly to Google).

Some middle token is stored in fsplugin.ini file which is stored in TC INI files directory (you can check your exact path by going to Help->About). You can delete it to get login screen again.
It is a good idea to implement Disconnect button, which will do it automatically ;)
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

akopalsky,

Congrats to your first release, i will test it thoroughly maybe late this week.

yes, you can only statically link QT libs if you have a commercial license.

I don't mind the size of the extra libs.

i am also interested in developing a tool and connect it to cloud, maybe i'll have questions for you.

i checked http://brooksman.net/ i think you should write a small page about the plugin and a contact email " mind the spam " : )

later and my regards
ehab
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

Bug in TC or GoogleDrive? "Access violation at address.."

reproduce this way:

1) start fresh TC
2) start GoogleDrive, login window appears, hit close
3) start an sftp session

expected:
=======
TC opens the sftp session

outcome:
---------------------------
Total Commander 8.01
---------------------------
Exception in sftpplug.wfx:FsFindFirstW!
Access violation at address 70C93773. Read of address 00000000
Windows 7 SP1 6.1 (Build 7601)

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
70C93773
636B3F 444AD1 446A22 423F38 445FE3 423F38
43D366 445F51 423F38 4460A5 446A22 423F38
445FE3 423F38 429556 42968C 652B87 652F1A
416B4E 416B96 687F20 687F78 4E6559 4E5CCF
>656270 5DE584 4FA108 4FBA71 554575 648172
63743A 444AD1 446A22 423F38 445FE3 423F38
429604 42969C 6D9F34
Raw:
636B3F 637047 402E4A 444AD1 425C14 4460A5
446A22 446A45 423F38 445FE3 423F38 43D366
43D36D 54DA94 445F51 423F38 446D9B 444AD1
446CF1 435E92 446033 4460A5 446A22 446A45
423F38 445FE3 423F38 429556 42968C 669CD2
40650F 6D764F 652B87 500051 660071 640041
690070 64006B 6D6781 652F1A 690070 64006B
68EA17 416B4E 416B96 653115 687F20 687F78
65586C 4076B3 4E5866 406E64 4023EF 699BF0
4033D0 699BC4 699C10 6D6E13 6CFB90 6D6E13

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------


so there can be a problem/conflict with the libeay32.dll ssleay32.dll?

i must close TC and use my sftp back.
#181344 Personal licence
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Post by *akopalsky »

I noticed this problem as well, but didn't figured out the solution yet:

This is NOT a bug with sftp or with google drive plugins.

The problem is with libeay32.dll ssleay32.dll versions: SFTP works with one version and GoogleDrive with another.
These files are required for SSL support and you cannot put them in plugin folder, because they must reside in executable (totalcmd.exe) folder.....
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

can you still use the tc version for GoogleDrive?
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Post by *akopalsky »

There is no "TC version" - TC is not using those files by default. Sftp plugin asks to copy those files to TC root as I do. I'll try to find a way to make compatible (I know that many people use SFTP so i is more my problem than his) ;)
Post Reply