Dropbox ServiceMenu

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

41
8 .5
Description:

Dropbox ServiceMenu is a servicemenu which allows easy access to most of Dropbox features. It uses Dropbox CLI to generate public urls, and pyndexer to allow sharing directories in public folder.

Features:
* Copy Public URL to clipboard
* Share folder (via web browser)
* Copy file/directory to public folder and paste the URL to clipboard
* Move file/directory to public folder and paste the URL to clipboard
* Support for sharing directories in public folder using pyndexer ( http://dl.dropbox.com/u/552/pyndexer/index.html )
* Send generated public url via default email client and GMail (via webbrowser)
* View previous versions of file (via web browser)
* Encrypt directory listing with password (only works for directories in public folder)
* Automatic detection of Dropbox directory path

Installation:
1. Copy .desktop files to ~/.kde4/share/kde4/services/ServiceMenus/
2. Copy content of dropbox-script to your $PATH - e.g. /usr/bin or /usr/local/bin

or run installation script (it will install scripts and .desktop files in ~/.kde4/share/kde4/services/ServiceMenus):
./install-it.sh

or if you're running Fedora:
1. Install following RPM http://magnu5.fedorapeople.org/repo/magnu5-1.0-1.fc13.noarch.rpm
2. Now run following command: su -c 'yum install dropbox-servicemenu'

Thanks to Magnus Tuominen for providing Fedora RPMs.

or if you're running openSUSE:
You can install dropbox-servicemenu from KDE:Extras repository.


Additional dependencies:
- dropbox
- klipper
- kdialog
- sqlite3
- python
- python-m2crypto (required for encrypting directory listing)
- xdg-utils
- uudecode (can be found in sharutils package)
- recode
- perl

Currently translated to following languages:
Fully translated: Czech, Danish, Dutch, English, French, German, Italian, Lithuanian, Polish, Russian, Spanish, Traditional Chinese (Taiwan)

Not fully translated: (.desktop files, dropbox_menu_translations.sh): Portuguese, Turkish

if you want to translate this servicemenu then feel free to contact me via private message.

KNOWN ISSUES: This servicemenu requires python2. If your distro uses python3 as main python binary then this servicemenu won't work. In order to make it work you'll have to do some "sed magic" e.g. sed 's/python/python2/g' on dropbox_menu.sh and .py scripts, assuming that your distro provides python version 2 as python2.
Last changelog:

8 years ago

0.16.1
- Danish translation updated thanks to Ole Holm Frandsen

0.16.0
- Support for Dropbox client >= 1.2
- Dropbox folder location is now determined by get_dropbox_folder.sh (written by Andrew Scheller)
- Dropbox-servicemenu now requires uudecode (can be found in sharutils package), recode and perl to be installed
- Shareable links support removed (currently i do not know how to get the user key from dropbox database)

0.15.4
- Dutch translation added thanks to Ruben Van Laerhoven

0.15.3
- Hungarian translation added thanks to Akos Toth

0.15.2
- German translation updated thanks to Felix Mauch
- Portuguese translation updated thanks to Ricardo Fernandes

0.15.1
- Fix python dependency check
- Removed xdg-open dependency check (KDE depends on xdg-utils, so it shouldn't be necessary)

0.15.0
- Added dependencies check

0.14.6
- Russian translation updated thanks to Stanislav Kosolapov

0.14.5
- Lithuanian translation updated thanks to Donatas G.

0.14.4
- Spanish translation updated thanks to Axel

0.14.3
- Italian translation updated - thanks to NevidS Sogaro

0.14.2
- German translation updated - thanks to Felix Mauch
- Traditional Chinese (Taiwan) translation added - thanks to Ray Chen

0.14.1
- Italian translation updated - thanks to NevidS Sogaro
- Czech translation updated - thanks to Pavel Fric
- French translation updated - thanks to Samuel Girard

0.14.0
- Add support for dropbox's new sharing model (dropbox 0.8 or higher required) - http://forums.dropbox.com/topic.php?id=21441&replies=155
- Merge "Copy public URL to klipper" with dropbox's new sharing model - if you use dropbox 0.8 or higher then you can generate public links for directories and files outside your Public folder

0.13.5
- Second attempt to make this servicemenu compatible with KHNS - scripts are now placed in servicemenu directory, install script doesn't require user interaction

0.13.4
- Spanish translation updated - thanks to Omar Campagne Polaino

0.13.3
- Removed wrong line in previous version thus "copy file to public.." was broken :P

0.13.2
- First attempt to make this servicemenu compatible with KHNS

0.13.1
- Small bugfix

0.13.0
- Use freedesktop notifications instead of kdialog, should be less obtrusive - feel free to share your opinions about this (is it better or worse?)
- Move script translations to separate file

0.12.2
- German translation updated

9

CyberAng3l

9 years ago

I did not have python-m2crypto and sqlite3 installed...
After I installed them I don't get the error again, but when I click on a file or folder outside of the Public directory to generate its public link, The browser get opened and the only thing I see it the "Oops! (404) We can't find the page you're looking for" error.

Report

C

hash87

9 years ago

This seems to be fixed for me with KDE 4.5.3

Report

9

CyberAng3l

9 years ago

Still not working for me :(
Kubuntu 10.10 x86_64 KDE 4.5.3

Report

C

hash87

9 years ago

Could you please tell me whats the path and filename of the file you're trying to share? Also please paste the link that was generated for this file and returned 404.

Report

9

CyberAng3l

9 years ago

Here you are:

Path: ~/Dropbox/Various/testfile.txt

Generated Link:
https://www.dropbox.com/c/shmodel?sjid=0&path=Various/testfile.txt&state=1&id=shmodel&nsid=15877120

My Dropbox version is 0.8.112

Report

iWizardPro

9 years ago

I would suggest you try to switch the code from Quote: user_key=`sqlite3 ~/.dropbox/config.db 'SELECT value FROM config WHERE key="ns_p2p_key_map"' | awk 'NR==2 {print $0}' | sed 's/L//g'` to Quote: user_key=`sqlite3 ~/.dropbox/config.db 'SELECT value FROM config WHERE key="root_ns"'` to see if it works with folders that are not shared.

Report

iWizardPro

9 years ago

I would suggest you try to switch the code from Quote: user_key=`sqlite3 ~/.dropbox/config.db 'SELECT value FROM config WHERE key="ns_p2p_key_map"' | awk 'NR==2 {print $0}' | sed 's/L//g'` to Quote: user_key=`sqlite3 ~/.dropbox/config.db 'SELECT value FROM config WHERE key="root_ns"'` to see if it works with folders that are not shared.

Report

iWizardPro

9 years ago

I believe the solution to this is to use the value "root_ns" to obtain your userid to your account. That will prevent you from generating public share links with shared folders, but it will allow you to do such with folders that aren't shared.

Report

9

CyberAng3l

9 years ago

I can confirm that I have very many shared folders....

Report

iWizardPro

9 years ago

I am also having the same issue. And, I believe the culprit is the fact that people can have shared folders. With that, there are more than one nsid values within the config.db. The only thing I can't figure out, is how to differentiate between all of them.

Report

C

hash87

9 years ago

I don't have any idea why this doesn't work for you. This link https://www.dropbox.com/c/shmodel?sjid=0&path=Various/testfile.txt&state=1&id=shmodel&nsid=15877120 should redirect you to shareable link in your dropbox (the one you mentioned in your last comment - https://www.dropbox.com/s/lbaic1hsxqo9ij6/testfile.txt). Could you try to change your default webbrowser and see if it works? I've tested this in chromium, firefox, konqeuror and all works for me.

If it's not the browser then only NSID in the generated URL might be wrong...

Report

9

CyberAng3l

9 years ago

I deleted the .dropbox folder but not luck....

If I use the web interface to get the shareable link for this file this is what I get:
https://www.dropbox.com/s/lbaic1hsxqo9ij6/testfile.txt

And this is the download link:
https://dl.dropbox.com/s/lbaic1hsxqo9ij6/testfile.txt?dl=1

Report

C

hash87

9 years ago

That's really weird. Generated URL seems to be fine. Are you sure that the file you're trying to share has already synced?

The only thing that you can try is turn off dropbox, delete ~/.dropbox and configure dropbox again.

Report

C

hash87

9 years ago

I can confirm that there are some issues with actions using webbrowser (link in gmail, revisions, shareable link outside of public folder) in dropbox-servicemenu + KDE 4.5.2. Looks like there is some kind of a bug in KDE 4.5.2, perhaps connected with this new KSharedDataCache. I'll investigate this issue and try to put a new version of dropbox-servicemenu with some kind of work around. Thanks for report!

Report

9

caf4926

9 years ago

Works great
openSUSE 11.3
kde4.5.1

Report

jimmy88

10 years ago

thank you very much ... really useful!

Report

S3Indiana

10 years ago

Unsure how Support for sharing directories in public folder using pyndexer ( http://dl.dropbox.com/u/552/pyndexer/index.html ) functions. When I goto the above URL I get:

Contents of pyndexer | Size | Date
0.7 | 7 items | 2010-07-08 14:56
1.0 | 11 items | 2010-07-08 15:21
test folders | 18 items | 2010-07-08 15:08
Current version is 0.7 | 0 bytes | 2010-06-29 01:18
There is the TESTING 1.0 version ALPHA to the brave | 0 bytes | 2010-06-29 01:19
msvcr71.dll | 340 KB | 2007-07-18 12:33

Index file generated on 2010-07-08 15:21 with pyndexer v.1.0ALPHA

So how do I get to a directory created under Public? Thanks in advance...

Report

C

hash87

10 years ago

Well, it's pretty easy - if you create a directory in your Dropbox Public folder then all you have to do is right click on it and select Dropbox -> Generate public URL... URL address wil be copied to klipper so you can just ctrl+v it anywhere.

Report

S3Indiana

10 years ago

Works as advertised (just wish the release notes were as clear :). Thanks...

Report

NevidS

10 years ago

Hi, here are the italian update.
I have also fixed the previously version (and my surname on the profile ;)).
Cheers :)

Dropbox_all.desktop
http://dl.dropbox.com/u/3877595/dropbox_all.desktop

Dropbox_directory.desktop
http://dl.dropbox.com/u/3877595/dropbox_directories.desktop

Dropbox_files.desktop
http://dl.dropbox.com/u/3877595/dropbox_files.desktop

Report

NevidS

10 years ago

forgot dropbox_menu_translations.sh
http://dl.dropbox.com/u/3877595/dropbox_menu_translations.sh

Report

TheUserK

10 years ago

Hi!

Dolphin and Konqueror support service-menu-installation via KHNS in the preferences-dialog.
We tried to be compatible with existing install-scripts, but of course not every package works, because there are strange interactive installers etc.
It would be the best, if you would create a file install-it.sh installing the menu in $HOME and a file deinstall.sh deinstalling it. Then it would definitely work without problems and the user would not need to handle any rpm-packages, install-scripts etc.

The User

Report

C

hash87

10 years ago

Another problem... i've just tried to install your servicemenu http://kde-look.org/content/show.php/Bazaar-Servicemenu?content=115751 which seems to support KHNS, but i always get "Installation failed". Not sure whats the problem.

Report

TheUserK

10 years ago

There was a bug in the installer, it is fixed in trunk.
You should install scripts together with the .desktop-file in `kde4-config --localprefix`/share/kde4/services/ServiceMenus. I think that is the usual way for service-menus. You should not assume that the user has root-privileges. If you do not find a simple way, you could add some user-interaction, if it fails, your script should exit with a non-zero-status, then the installer will fail, too.

Sorry for my late answer.
The User

Report

C

hash87

10 years ago

I guess this fix won't be backported to 4.4 branch?

Report

8 years ago

0.16.1
- Danish translation updated thanks to Ole Holm Frandsen

0.16.0
- Support for Dropbox client >= 1.2
- Dropbox folder location is now determined by get_dropbox_folder.sh (written by Andrew Scheller)
- Dropbox-servicemenu now requires uudecode (can be found in sharutils package), recode and perl to be installed
- Shareable links support removed (currently i do not know how to get the user key from dropbox database)

0.15.4
- Dutch translation added thanks to Ruben Van Laerhoven

0.15.3
- Hungarian translation added thanks to Akos Toth

0.15.2
- German translation updated thanks to Felix Mauch
- Portuguese translation updated thanks to Ricardo Fernandes

0.15.1
- Fix python dependency check
- Removed xdg-open dependency check (KDE depends on xdg-utils, so it shouldn't be necessary)

0.15.0
- Added dependencies check

0.14.6
- Russian translation updated thanks to Stanislav Kosolapov

0.14.5
- Lithuanian translation updated thanks to Donatas G.

0.14.4
- Spanish translation updated thanks to Axel

0.14.3
- Italian translation updated - thanks to NevidS Sogaro

0.14.2
- German translation updated - thanks to Felix Mauch
- Traditional Chinese (Taiwan) translation added - thanks to Ray Chen

0.14.1
- Italian translation updated - thanks to NevidS Sogaro
- Czech translation updated - thanks to Pavel Fric
- French translation updated - thanks to Samuel Girard

0.14.0
- Add support for dropbox's new sharing model (dropbox 0.8 or higher required) - http://forums.dropbox.com/topic.php?id=21441&replies=155
- Merge "Copy public URL to klipper" with dropbox's new sharing model - if you use dropbox 0.8 or higher then you can generate public links for directories and files outside your Public folder

0.13.5
- Second attempt to make this servicemenu compatible with KHNS - scripts are now placed in servicemenu directory, install script doesn't require user interaction

0.13.4
- Spanish translation updated - thanks to Omar Campagne Polaino

0.13.3
- Removed wrong line in previous version thus "copy file to public.." was broken :P

0.13.2
- First attempt to make this servicemenu compatible with KHNS

0.13.1
- Small bugfix

0.13.0
- Use freedesktop notifications instead of kdialog, should be less obtrusive - feel free to share your opinions about this (is it better or worse?)
- Move script translations to separate file

0.12.2
- German translation updated

12345678910
139
product-maker emplate430 May 19 2018 9 excellent
TY!
product-maker janet Aug 05 2015 9 excellent
product-maker Henri May 06 2015 9 excellent
product-maker eliaskousk Dec 10 2014 9 excellent
product-maker dmnmsc Jul 29 2014 9 excellent
product-maker romankiefer Mar 26 2014 9 excellent
product-maker mea5 Nov 05 2013 3 bad
product-maker roentgen Dec 31 2012 9 excellent
product-maker vatsok Dec 30 2012 9 excellent
product-maker Heart Sep 13 2012 9 excellent
product-maker shadowm Jun 11 2012 9 excellent
product-maker patkoscsaba May 16 2012 9 excellent
product-maker froksen Feb 01 2012 9 excellent
product-maker Pyruzan Jan 26 2012 9 excellent
product-maker Xepher Oct 12 2011 9 excellent
product-maker seaman123 Oct 08 2011 9 excellent
product-maker alpvonkri Oct 01 2011 9 excellent
product-maker zersaa Sep 30 2011 9 excellent
product-maker tetris4 Sep 03 2011 9 excellent
product-maker Freol Jun 19 2011 9 excellent
product-maker futurama88 Jun 17 2011 9 excellent
product-maker Kwellmeister Jun 15 2011 9 excellent
product-maker simon74 Jun 07 2011 9 excellent
product-maker BigBrain Apr 26 2011 9 excellent
product-maker warrob Mar 07 2011 9 excellent
product-maker jznight Feb 27 2011 9 excellent
product-maker steveke Feb 10 2011 9 excellent
product-maker kuna236 Feb 06 2011 9 excellent
product-maker Rando25 Feb 02 2011 9 excellent
product-maker Genserowski Jan 27 2011 9 excellent
product-maker deabru Jan 10 2011 9 excellent
product-maker MilchFlasche Jan 05 2011 9 excellent
product-maker denisq Jan 04 2011 9 excellent
product-maker wolfshift Dec 28 2010 9 excellent
product-maker graygraff Dec 20 2010 9 excellent
product-maker okurz Nov 21 2010 9 excellent
product-maker vitoubien Nov 21 2010 9 excellent
product-maker CyberAng3l Oct 14 2010 9 excellent
product-maker caf4926 Oct 01 2010 9 excellent
product-maker kmare Sep 27 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
floorek
Apr 22 2019
bialyikar
Jan 27 2015
roentgen
Dec 31 2012
ahri
Dec 06 2012
stroum
Aug 13 2012
miawallace
Jun 24 2012
shadowm
Jun 11 2012
oshunluvr
Jun 08 2012
maxwux
Feb 13 2012
alpvonkri
Oct 01 2011
sylvainsjc
Sep 16 2011
simon74
Jun 07 2011
advagadra
Jun 05 2011
jznight
Feb 27 2011
Rando25
Feb 02 2011
josec87
Jan 19 2011
siv
Jan 14 2011
denisq
Jan 04 2011
wolfshift
Dec 28 2010
graygraff
Dec 20 2010
okurz
Nov 21 2010
proDOOMman
Oct 06 2010
Montblanc
Oct 02 2010
caf4926
Oct 01 2010
kudlaty
Sep 16 2010
jimmy88
Sep 14 2010
deuteros
Aug 19 2010
dein
Jun 26 2010
NevidS
Jun 26 2010
tetris4
Jun 07 2010
bay3255
May 31 2010
zilti
May 22 2010
magnu5
May 19 2010
Vzlom
May 18 2010
locke87
May 18 2010
gerlosgm
May 17 2010
skyld
May 17 2010
jaitrum
May 17 2010
Frank
May 15 2010
AndreAPL
May 09 2010
Genserowski
May 09 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.16.1
updated Jan 29 2012
added May 09 2010
downloads 24h
4
mediaviews 24h 0
pageviews 24h 32
System Tags addon