
dropbox-servicemenu-kde
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
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.
11 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
11 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
10 years ago
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
10 years ago
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
10 years ago
Report
FraSMOG
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
Report
DjNeophyte
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
Report
rod
11 years ago
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
Sciamano72
11 years ago
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
11 years ago
Could you perhaps suggest some of the improvements and functions you would like to see integrated?
Report
Sciamano72
11 years ago
Report
kinus
11 years ago
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
11 years ago
If you really make a KDE version of the Nautilus interface, I think most of the KDE community will love you :)
Report
kinus
11 years ago
Yes, I'm sure the KDE community would be very happy...I will see what I can do ;)
Watch this space!
Report
kinus
11 years ago
I have implemented the function that you suggested. It needs Klipper to be running to work though. Enjoy!
Report