Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 15 Dec 2017, 12:11
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Dropbox Filemanager
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Thu 30 Nov 2017, 14:55    Post subject:  

Hi Phil...well I never really leave lol.....
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1436
Location: The other Mr. 305

PostPosted: Sat 02 Dec 2017, 01:29    Post subject:  

MikeB:

Great to see you back! I was just revising your Dropbox Filemanager last week. Not working in RUXerus 64. Is it for 386?

Slavvo67
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4764
Location: Kingwood, TX

PostPosted: Sat 02 Dec 2017, 01:44    Post subject:  

In case anyone wants to add features, the applicable dropbox API documentation is here
_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sat 02 Dec 2017, 11:43    Post subject:  

Quote:
Great to see you back! I was just revising your Dropbox Filemanager last week. Not working in RUXerus 64. Is it for 386?


Well its basically a gtkdialog front end to the excellent dropbox_uploader script so 64/32 bit should be irrelevant.

Quote:

In case anyone wants to add features, the applicable dropbox API documentation is here


Indeed extra features would be nice as the new api has some available..eg moving files. Input is welcome on this subject.
Afterall it is a very 'puppy'like approach where the user gets control of what they want/need in a simple fast way.

mike
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1436
Location: The other Mr. 305

PostPosted: Sat 02 Dec 2017, 20:45    Post subject:  

The GTK Icons aren't appearing for me so I guess that's why I thought it wasn't working. Anyway, it's working well except the icons, as mentioned...
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 696

PostPosted: Sat 02 Dec 2017, 21:08    Post subject:  

I'm giving this a try on fatdog 64. It must have to sync some stuff because I'm not able to open all the folders right away. I wonder how much storage space less it uses than a full sync.

Also note that that it doesn't show up in the fatdog64 menu.

I think this is due to the catagories given in:
/usr/share/applications
Code:

[Desktop Entry]
Comment=
Encoding=UTF-8
Exec=dropbox_gui
GenericName=
Icon=dropbox.png
MimeType=
Name=Dropbox GUI 0.3.0
Path=
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;FileManager;
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sun 03 Dec 2017, 19:07    Post subject:  

Hmmm categories seem to lack a standard it seems. I left the desktop file as it was in previous pets though that is going significantly back in the puppy timeline.

I noticed in the new script there is some hashing and/or handshaking going on for file verification...it may be why it seems a bit slower than the older version1 script. I will delve into its innards more at some point.

mike
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2634
Location: holland

PostPosted: Mon 04 Dec 2017, 18:10    Post subject:  

Mikeb, Great application, many thanks !!

I discovered earlier 'dropbox_uploader.sh' and used it my own way, but couldn't imagine that it's possible to work with GUI interface like you made, stunning!! Cool Smile

I made .deb package for Stretchdog, just made some changes in the script (hope you don't mind, just tell me if you do Smile)
See here:
http://murga-linux.com/puppy/viewtopic.php?p=976124#976124
- replaced rxvt with xterm
- changed function from line 110 to:
Code:
remote_url () {
DIRS="$(dropbox_uploader.sh -k -f ~/.dropbox_uploader-"$PROFILE" list "$REMOTE_DIR" | grep "\[D\]" | awk '{ print $2 }')"

if [ "$(echo $DIRS | grep "$REMOTE")" ]; then    # directory
   URL=`dropbox_uploader.sh -k -f ~/.dropbox_uploader-"$PROFILE" share "$REMOTE_DIR/$REMOTE"`
else   # file
   URL=`dropbox_uploader.sh -k -f ~/.dropbox_uploader-"$PROFILE" share "$REMOTE_DIR/$REMOTE" | sed 's#www.dropbox.com#dl.dropboxusercontent.com#'`
fi
 
   gxmessage "Use dl=1 for direct link to file and create a zip of folders...

Or: to add image, e.g. at murga-linux.com, remove the '?dl=0' at the end of URL
   
$URL

"
}

This change of URL including "dl.dropboxusercontent.com" is to make possible sharing directly (instead of going to dropbox website).
EDIT 5 december: Changed code above, shareURL different for directory/file (directory should contain "www.dropbox.com")

Here's mini-how-to with images to make it work:

- Run Dropbox Gui from Menu. Type a name at "Account". Click "New Profile" :


- A terminal will open:


- So, in your browser, go to (and login if required):


- Click Create App:


- Make your selections and type the desired name of your new app:


- Next screen: Click "Generate":


- Copy the generated access token:


- Paste in the terminal (opened at second step) and type y and press ENTER


Then authentication should be set and saved in ~/.dropbox_uploader-<account-name>
(in my case it became ~/.dropbox_uploader-fred)

EDIT: the generated access token above was just example of temporarily app I created, I directly removed that app afterwards.

Fred

_________________
Dog Linux website

Last edited by fredx181 on Tue 05 Dec 2017, 18:06; edited 3 times in total
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1436
Location: The other Mr. 305

PostPosted: Mon 04 Dec 2017, 21:36    Post subject:  

If you click the green arrow up on the Dropbox side, it seems to load the Dropbox files quicker. I think...
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2634
Location: holland

PostPosted: Wed 06 Dec 2017, 16:30    Post subject:  

I noticed that "Share Url" gives a correct share link only around half of the times.
That's specially in case a shared link is created earlier already.

On line 1292 in dropbox_uploader.sh script, "function get_Share" (fallback if share link already created earlier), I modified it to make distinction between file and folder and to extract the correct url.

Attached dropbox_uploader.sh.tar.gz, extract and copy to /usr/bin (replacing /usr/bin/dropbox_uploader.sh) and links displayed by the "Share Url" button from Dropbox_GUI should be always correct.

Fred
dropbox_uploader.sh.tar.gz
Description  Extract and replace in /usr/bin
gz

 Download 
Filename  dropbox_uploader.sh.tar.gz 
Filesize  10.56 KB 
Downloaded  13 Time(s) 

_________________
Dog Linux website
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Thu 07 Dec 2017, 11:45    Post subject:  

Thanks for the how to fred.... making an app is simpler than the script makes it appear . After doing 5 at once (don't ask) it sort of just flows.
Note that the name of the app on dropbox is not critical so one can make something friendly.

As for the extra link options nice one... dl=1 was just a tip I picked up on the forum.
Was unaware of the unreliability of link making though I only ever used for direct file links.

I have to fiddle anyway due to older puppys problem with gxmessage...they used a non unicode substitute back then for some insane reason. One pet for all is a bit of a challenge generally.

mike
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2634
Location: holland

PostPosted: Fri 08 Dec 2017, 14:14    Post subject:  

mikeb wrote:
making an app is simpler than the script makes it appear . After doing 5 at once (don't ask) it sort of just flows.


I think you forgot to mention: talent and creativity Smile (dual pane file-manager, with all options you could wish, who would have think of that Smile , much better (and 1000 x smaller) than the official app provided by Dropbox)
Thanks again for your great application, it's just perfect for my way of using Dropbox !!

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sat 09 Dec 2017, 11:35    Post subject:  

Smile

Well if we cannot help each other........

mike
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3226
Location: King's Lynn, UK.

PostPosted: Sun 10 Dec 2017, 10:07    Post subject:  

@mikeb:-

Hey, Mike; it's great to see ya back..! Very Happy You had us all quite worried a while ago...

http://www.murga-linux.com/puppy/viewtopic.php?t=105324

(Is this just a brief sojourn, or can we look forward to your scintillating wit & 'off-the-cuff' repartee for the forseeable future? Laughing )

I do hope so.


Mike to Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Mon 11 Dec 2017, 12:31    Post subject:  

Ok quick fix time update to 0.3.1. on first post. Behaviour was unpredictable before a profile is created.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0548s ][ Queries: 15 (0.0069s) ][ GZIP on ]