GUI “Client” for accessing Google Drive, Microsoft OneDrive, etc

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.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #37744
    Member
    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.
      #37751
      Member
      Xecure
        Helpful
        Up
        0
        ::

        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.

        #37752
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          Thanks again PPC for your ideas and scripts that you freely share!

          --
          Brian Masinick

          #37922
          Member
          seaken64
            Helpful
            Up
            0
            ::

            Thank you PPC!

            #37945
            Member
            sybok
              Helpful
              Up
              0
              ::

              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.

              #37950
              Member
              PPC
                Helpful
                Up
                0
                ::

                @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.

                #37952
                Moderator
                Brian Masinick
                  Helpful
                  Up
                  0
                  ::

                  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 Masinick

                  #37971
                  Member
                  PPC
                    Helpful
                    Up
                    0
                    ::

                    @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.

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.