Forum › Forums › General › Software › GUI “Client” for accessing Google Drive, Microsoft OneDrive, etc
- This topic has 7 replies, 5 voices, and was last updated Jun 23-3:05 pm by PPC.
-
AuthorPosts
-
June 20, 2020 at 5:48 am #37744Member
PPC
Hi, folks.
Just in case anyone is interest, I finished my latest project: a script, that uses rclone, to mount cloud drives just like they were regular network drives.
In newbie terms – you can use this to access your Google Drive (or almost any other cloud drive) just like it was a thumbdrive plugged to your computer.The script (finished, unless unexpected bug come up) can be downloaded here:
https://github.com/PPC-scripts/access_cloud
P.
- This topic was modified 2 years, 10 months ago by PPC.
June 20, 2020 at 7:38 am #37751Member
Xecure
::I have to test it out sometime. I wanted to use rclone in the past to try saving encrypted stuff in the cloud, but that project was forgotten.
Thanks, PPC, for creating a gui for it.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.June 20, 2020 at 8:45 am #37752Moderator
Brian Masinick
June 22, 2020 at 4:48 pm #37922Memberseaken64
June 23, 2020 at 3:40 am #37945Member
sybok
::Thanks for the work, if it works, no more downloading via browser!
BTW: The script’s readability could be improved,
1) Repeated file-names into variables.
2) Add few more functions.
3) Fix the indentation, do not mix spaces and tabulators – add 2 spaces inside e.g. function, while/for-loop, if-elif/else condition.
4) Run ‘shellcheck’ for more tips on how to improve the “insides” of the script.I believe that this will improve maintainability and it will make the script easier to understand.
See e.g. my (unfinished) attempts.PS: I am persistent with this because I have been taught to do it the above mentioned way by friends/colleagues.
June 23, 2020 at 7:10 am #37950MemberPPC
::@sybok – yes, that was exactly what I thought you would say, the code looks a bit messy, I know… it’s unfortunatly how I work π
I didn’t add more functions because my mind was formatted to work with the existing code, I began using functions only when I began really needing them (to keep yad menus open).You could already mount a cloud drive using rclone, but only via the terminal, and also there’s a great GUI for rclone (rclone-browser), that was my inspiration to create this script (but instead of using a dedicated file browser, I use the default file manager to access remote files, which has some advantages. rclone-browser does a nice job syncing folders (my script doesn’t, basically only mounts and displays the “remote” drives). Also this script provides an automatic way to configure it to work with what I think is the most used Cloud service: Google Drive (I looked but found no way to do the same with OneDrive)
I reworked the original antiX version, so the MX version would not need to be so tweaked to work, using more common commands that should work not only across antiX and MX Linux, but also with all distros that have the required dependencies installed. I’ll try to be better reformat the script’s code, but I probably won’t rework it into using more functions..
Funny note:I realized that the original version of the script tried to use a yad warning to tell the user that yad was not installed! Duh! At least that lead me to find out how to display cool looking warning messages in the terminal.
P.
June 23, 2020 at 7:55 am #37952Moderator
Brian Masinick
::Keep the good work and useful ideas PPC!
Even if not everything is perfect, and even if one person tries a script, the principles to me are:
1. Sharing is good.
2. New ideas can, and do, emerge from sharing.Sometimes someone else will see what you have done and it may spawn a great idea, or who knows, a lot of good small things can collect into a group of great ideas. Whether this happens or not I applaud your enthusiasm and spirit, so I thank you once again for your fine efforts. Keep it up! ππ
--
Brian MasinickJune 23, 2020 at 3:05 pm #37971MemberPPC
::@sybok – I did find some minutes to rework the script- nice formatting and everything divided into functions…
If I even have to change anything in any of the script versions (antiX and MX-linux) it will be a piece of cake: each version uses different icons (because the papyrus theme, in MX is in Svg, not png format, so yad does not displays them, I had to find an acceptable icon for MX). The only other change between the scripts is a single line (opening the File Manager- Thunar in MX and desktop-defaults in antiX).Also, I learned a lot- I now know how to correctly create tray icons (and even configure them to show up or not, by user choice)- hum! That can be a nice addition to the Android Connect script, in the future. I also learned how to show tool-tips in YAD menus- a good way to inform users what the buttons do, without needing a long help file… Like my uncle used to say, “only when we finish building a house do we know exactly how to build a house”
the scripts are done, and as feature rich and easy to use as I can make them- not as feature packed as rclone-browser, but they do what I want, are even someone that never installed an app can download the script and configure it to use Google Drive without even needing to see the terminal (well it pops up at first launch, if the user chooses to automatically install rclone- so there’s no real “dependency” problem in antiX, the script is “self sufficient”) …
Unfortunately I don’t think anticapitalista thinks this belongs in antix out of the box… At least newbies wanting to connect to cloud drives, can be directed to the github page and find their way from there πThanks for the support I got here… I think I deserve a break for now…
P.
-
AuthorPosts
- You must be logged in to reply to this topic.