Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Drop to Share applet says I am not connected to the internet
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Drop to Share applet says I am not connected to the internet
sophiejane English 7 sophiejane [Read]
10 May 2014 à 22:39

sophiejane, Friday 09 May 2014 à 20:58


Subscription date : 09 May 2014
Messages : 4
I am running Cairo-Dock3.3.99.beta1 (weekly) in Peppermint Linux 3 (kernel 3.11.6). I am using OpenGL, Openbox WM, XFCE 4 Desktop.

I have some questions / issues about the Drop to Share applet v. 1.0.10:
Uploading to Imageshack.us appears to be broken. When I drag and drop a .png to the applet, it reports that I am not connected to the internet even though I am connected. Is it possible that the imageshack.us website has changed and the applet is no longer communicating properly? Or perhaps it is because I do not have an imageshack.us account? They only give out 30 day trials now, so I'm not interested in paying for an account there. It used to work fine with having to do anything. I can upload to uppix.net, though.

Also, when I select Dropbox as my sharing service, and drag and drop items to it, the applet gives me a url to paste but it always looks like this:
To link this computer to a dropbox account, visit the following url: https://www.dropbox.com/cli_link?host_id={HOST ID HERE}
. I removed the host id because I'm not sure if it's secure to share that. Anyway, when I visit that link and try to login to Dropbox, it reports that:
This computer is already linked to a Dropbox account.
I noticed that Drop to Share does add the files to my Dropbox folder, it's just not giving me the sharing url. Maybe I am doing something wrong?

Since neither of those methods work, how easy is it to write your own custom script to upload images to imgur.com, or to upload any files to Google Drive? What scripting/programming language does it use? Or, has anyone else made custom scripts for services like Imgur or Drive?

SQP, Saturday 10 May 2014 à 09:12


Subscription date : 03 July 2010
Messages : 1081
I made an almost clone of that applet last month, and AFAIK, all websites were working (I didn't tested the applet, but used the same methods for mine without problems).

http://godoc.org/github.com/sqp/godock/services/NetActivity

It's written in go with some C dependencies:

go get -d github.com/sqp/godock/applets/NetActivity # download applet and dependencies.

cd $GOPATH/src/github.com/sqp/godock/applets/NetActivity
make # compile the applet.
make link # link the applet to your external applet directory.


and the code for the upload lib if you're curious: http://godoc.org/github.com/sqp/godock/libs/uptoshare

matttbe, Saturday 10 May 2014 à 10:43


Subscription date : 24 January 2009
Messages : 12573
Hello,

sophiejane :
Uploading to Imageshack.us appears to be broken.
Yes, I confirm this problem... I'll try to have a look to this bug ASAP

Is it possible that the imageshack.us website has changed and the applet is no longer communicating properly?
Yes, I guess it's due to a change in the API/Website of imageshack.us.

Or perhaps it is because I do not have an imageshack.us account?
No, you don't need any imageshack account. If an account is now needed, we'll drop the support of this website

Also, when I select Dropbox as my sharing service, and drag and drop items to it, the applet gives me a url to paste but it always looks like this:
Strange, I don't have this problem. Do you have the same message if you launch this command?
touch ~/Dropbox/Public/cd-test.txt && dropbox puburl ~/Dropbox/Public/cd-test.txt && rm ~/Dropbox/Public/cd-test.txt
Cairo-Dock is using this command: dropbox puburl FILE.
If you also have this problem, please report this bug to Dropbox devs.

how easy is it to write your own custom script to upload images
Here is an example here using Bash language: your program will receive the path to the file (you can use the language that you want).

Or, has anyone else made custom scripts for services like Imgur
Imgur is already supported by this DND2Share applet
If you don't see it, removed the config file:
rm ~/.config/cairo-dock/current_theme/plug-ins/dnd2share/dnd2share.conf
and reload the dock.

matttbe, Saturday 10 May 2014 à 12:11


Subscription date : 24 January 2009
Messages : 12573
I just had a look to the debug message and it seems that imageshack.us's API is no longer free...
This is why I removed the support of this service on our BZR repository (this change will be available in a few days on our Weekly ppa )

SQP, Saturday 10 May 2014 à 12:53


Subscription date : 03 July 2010
Messages : 1081
matttbe :
Here is an example here using Bash language: your program will receive the path to the file (you can use the language that you want).

the free.fr script is really specific for that website.
    • No other backend use such logged ftp access
    • It's also the only one needing to grab the error output to get its result (I guess that's why it is provided as an external script)

matttbe, Saturday 10 May 2014 à 16:59


Subscription date : 24 January 2009
Messages : 12573
Yes, this script is a bit strange...

For Uppix.com, we have something like that:
curl ---connect-timeout 5 --retry 2 --limit-rate ${2}k uppix.com/upload -H Expect: -F u_file=@"${1}-F u_submit=Upload -F u_agb=yes  2> /dev/null grep http://uppix.com/ | cut -d"&" -f9 | cut -d";" -f2

Where ${1} is the path to your local file and ${2} the maximum bandwidth.

sophiejane, Saturday 10 May 2014 à 22:00


Subscription date : 09 May 2014
Messages : 4
matttbe :

Do you have the same message if you launch this command?
touch ~/Dropbox/Public/cd-test.txt && dropbox puburl ~/Dropbox/Public/cd-test.txt && rm ~/Dropbox/Public/cd-test.txt
Cairo-Dock is using this command: dropbox puburl FILE.
If you also have this problem, please report this bug to Dropbox devs.


Yes I get the same problem when I execute that. I let them know, I'll see if they get back to me. I suspect they will blame my distro-specific build of Dropbox (Peppermint 3), but they would be wrong. peppermint-dropbox just removes nautilus support in favor of PCManFM, it should not affect sharing files at all.

In the meantime I will remove that dnd2share.conf, reload the dock, and see what happens. Also check out SQP's applet and then maybe dabble in some bash scripting with curl and come up with something on my own if I need to.

sophiejane, Saturday 10 May 2014 à 22:39


Subscription date : 09 May 2014
Messages : 4
matttbe :
Imgur is already supported by this DND2Share applet
If you don't see it, removed the config file:
rm ~/.config/cairo-dock/current_theme/plug-ins/dnd2share/dnd2share.conf
and reload the dock.


Tried that, and when I opened up the DND2Share preferences not only was imgur not listed, but there was no longer any options at all, no boxes for specifying image, text, or video hosts. I would upload a screenshot but I reverted to my old config.

EDIT: I just got the last weekly update and I can see the imagur option. In the future would it be possible to have a delete link as well? I found a bash script for uploading to imgur from the command line, and the output provides, along with a direct sharing link, a link to permanently delete the image. The script uploads anonymously, so it should be possible to do something similar with DND2Share as well (perhaps as an option in the history context menu). Just a thought. Thanks for your work, matttbe.

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Drop to Share applet says I am not connected to the internet
sophiejane English 7 sophiejane [Read]
10 May 2014 à 22:39


Glx-Dock / Cairo-Dock List of forums Applets | Applets Drop to Share applet says I am not connected to the internet Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.