dropbox-servicemenu-kde
Dolphin Service Menus
Score 71%
Description:

dropbox-servicemenu-kde is a KDE service menu for Dropbox and functions as a wrapper around the Dropbox CLI.

Please note that this service menu only works for files which are in your Dropbox Public directory. The reason for this is that only files in the Public directory have a public URL :)

Klipper needs to be running in order for the "Copy Public URL to Klipper" option to work.

Installation:
1. chmod 755 install.sh
2. ./install.sh

The installation works by downloading the Dropbox python CLI from the Dropbox servers. It then copies the python CLI, the service menu and the icon to their required locations.

The installation is based on the assumption that your Dropbox folder is ~/Dropbox. If this is not the case, then edit install.sh and dropbox.desktop to reflect your Dropbox folder.
Last changelog:

7 years ago

0.2:
+ Added option to copy Public URL to Klipper.
+ Removed icon because of trouble setting a relative path.
+ Uses kde4-config to find location of KDE directory.
+ Creates ServiceMenus directory if it doesn't exist.

0.1:
+ First Version

sxe

7 years ago

hi, thx for this servicemenu, i started using dropbox today and your work is really helpful.

I changed / added two things to fit my needs:

1. I added a third servicemenu entry which copys a file to my public folder.

[Desktop Action copyFileToPublic]
Name=Copy File to Public Folder
Exec=`cp %u ~/daten/dropbox/Dropbox/Public/`

But this needs to be edited after installing cause the path depends on the user.

2. i changed the installation script a bit either. Like this:

cp dropbox.py ~/.dropbox/dropbox.py;
I think this is the better place to store that script. :)

Maybe you find my suggestions/changes helful.

Thx again

Report

passerby

7 years ago

is it possible using the python cli to get the status of files.

it would be nice if it could display the enblem like in gnome but i would settle for just bring up konsole showing the status of all the files in the dirctory

Report

passerby

7 years ago

thanks for this no more going to the site for the public URL or adding stuff 2 my pulbic folder than having to use my macbook to get the URL

Report

FraSMOG

7 years ago

IMHO you can add also icons this way:

Quote:[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=getPublicURL;copyPublicURL;
X-KDE-Submenu=Dropbox
X-KDE-StartupNotify=false
X-KDE-Priority=TopLevel


[Desktop Action getPublicURL]
Name=Get Public URL
Icon=dropbox
Exec=kdialog --msgbox "`python ~/Dropbox/dropbox.py puburl %u`"

[Desktop Action copyPublicURL]
Name=Copy Public URL to Klipper
Icon=klipper
Exec=dbus-send --type=method_call --dest=org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents string:"`python ~/Dropbox/dropbox.py puburl %u`"

if someone knows how can be very useful that this menu is shown only when the path of the selected file/folder starts with the public dir path.

Report

szosel

7 years ago

Is there a way to implement the file status in the icon of the files?

and second question: a way to show this menu only when i select a file/folder within the dropbox?

That's the thing nautilus, mac and windows offers - would be great to get something her.

I googled after this - there seems to be many people outside looking for an KDE solution.

Report

kinus

7 years ago

Hi :)

Yes, getting the status of a file is definitely an option and will appear in the next version.

As for only having the menu show up for dropbox items, I'm not sure if that is possible given that dropbox-servicemenu-kde is a KDE service menu and thus is limited by the Desktop Entry specification [1]. If someone can suggest a way to do this I will be more than happy to implement it.

Also, in the next version the following features could possibly be implemented:

- get dropbox status
- stop the dropbox service
- start the dropbox service
- get the status of an individual file
- get the status of all files

Please let me know which features you would like to see and I'll do my best to get them into the next version and release that version as soon as possible.

[1] http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

Report

yandy

7 years ago

considerably good job,I add this to my blog too

Report

DjNeophyte

7 years ago

good idea,but trouble in sidux :

dve@siduxbox:~$ /home/dve/dropbox-servicemenu-kde/install.sh
--2009-11-12 19:40:31-- https://www.dropbox.com/download?dl=packages/dropbox.py
Risoluzione di www.dropbox.com... 174.36.30.70
Connessione a www.dropbox.com|174.36.30.70|:443... connesso.
HTTP richiesta inviata, in attesa di risposta... 302 FOUND
Posizione: http://linux.dropbox.com/packages/dropbox.py [segue]
--2009-11-12 19:40:44-- http://linux.dropbox.com/packages/dropbox.py
Risoluzione di linux.dropbox.com... 174.36.30.70
Connessione a linux.dropbox.com|174.36.30.70|:80... connesso.
HTTP richiesta inviata, in attesa di risposta... 200 OK
Lunghezza: 91126 (89K) [application/octet-stream]
Salvataggio in: "dropbox.py"

100%[======================================>] 91.126 2,25K/s in 51s

2009-11-12 19:41:44 (1,75 KB/s) - "dropbox.py" salvato [91126/91126]

cp: impossibile fare stat di `dropbox.desktop': No such file or directory
dve@siduxbox:~$

Any idea? :D

Report

kinus

7 years ago

Ah yes, the problem is that you're running the install script from your home directory when the dropbox.desktop file is in the dropbox-servicemenu-kde directory.

To fix, cd into the dropbox-servicemenu-kde directory and then rerun the script.

For you this would be:

cd /home/dve/dropbox-servicemenu-kde/
./install.sh

Let me know if it works :)

Report

DjNeophyte

7 years ago

Work!!!
thanks so much sir !!
I run to you advertising on my blog, is a good application thanks again

sorry for my poor english :D

Report

kinus

7 years ago

Great! Glad to hear that I could be of assistance :)

Report

rod

7 years ago

First, let me thank you for this - it is a shame to have to load half of gnome just to have that little dropbox icon in the systray. So, thanks.

The way this is implemented in Nautilus, though, looks a bit better to me. In nautilus you have a 'copy public link', and it goes directly to the clipboard, rather than appearing through a dialog. I think this could be an easy improvement

Report

kinus

7 years ago

Thanks Rod :)

I have implemented the function that you suggested. It needs Klipper to be running to work though. Enjoy!

Report

Sciamano72

7 years ago

There is no need to load half Gnome to have the dropbox icon in the system tray.

Just follow this tutorial:

http://antrix.net/journal/techtalk/dropbox_kde.html

BTW: this is starting to be a nice app, I hope it improves and integrates more functions soon.

Report

kinus

7 years ago

Thanks for the heads up Sciamano72 :)

Could you perhaps suggest some of the improvements and functions you would like to see integrated?

Report

Sciamano72

7 years ago

Well, for example the undelete ("View Previous Versions") option that Nautilus has...

Report

kinus

7 years ago

Okay...
Currently dropbox-servicemenu-kde functions only as a wrapper around the official Dropbox python CLI.

The CLI provides the following functions:

status - get current status of the dropboxd
help - provide help
puburl - get public url of a file in your dropbox
stop - stop dropboxd
start - start dropboxd
filestatus - get current sync status of one or more files
ls - list directory contents with current sync status

So any of those functions could easily be implemented. I'm considering writing a complete KDE version of the nautilus interface over the Christmas holidays but that is still on the cards ;)

Report

Sciamano72

7 years ago

I know, I was not complaining, just saying what I would like to see! :)
If you really make a KDE version of the Nautilus interface, I think most of the KDE community will love you :)

Report

kinus

7 years ago

I didn't see it as complaining in any way :) I like the feedback and always like to hear how I can improve things...

Yes, I'm sure the KDE community would be very happy...I will see what I can do ;)

Watch this space!

Report

7 years ago

0.2:
+ Added option to copy Public URL to Klipper.
+ Removed icon because of trouble setting a relative path.
+ Uses kde4-config to find location of KDE directory.
+ Creates ServiceMenus directory if it doesn't exist.

0.1:
+ First Version

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.2
updated Nov 12 2009
added Nov 11 2009
downloads today
2
page views today 5