{"id":143,"date":"2012-01-11T09:38:23","date_gmt":"2012-01-11T14:38:23","guid":{"rendered":"http:\/\/clusterbleep.net\/blog\/?p=143"},"modified":"2012-01-11T09:38:23","modified_gmt":"2012-01-11T14:38:23","slug":"getting-a-dropbox-public-link-in-kde-using-dolphin","status":"publish","type":"post","link":"http:\/\/clusterbleep.net\/blog\/2012\/01\/11\/getting-a-dropbox-public-link-in-kde-using-dolphin\/","title":{"rendered":"Getting a Dropbox Public Link in KDE using Dolphin"},"content":{"rendered":"<p>I recently switched to <a href=\"http:\/\/www.kubuntu.org\">Kubuntu<\/a> and am falling in love with it, but I&#8217;ll talk more about that in a future post. This post is just about getting the <a href=\"http:\/\/www.dropbox.com\">Dropbox<\/a> <a href=\"http:\/\/www.dropbox.com\/help\/16\">&#8220;Get public link&#8221; functionality<\/a> working in Dolphin&#8217;s right-click menu. Under Gnome and Unity the default file manager in Nautilus so this functionality works after <a href=\"https:\/\/www.dropbox.com\/install?os=lnx\">the standard nautilus-dropbox install<\/a>, but KDE uses Dolphin as its file manager so we have to do a little bit of fiddling after the standard install to get it working.<\/p>\n<p>I came across an old Dropbox forum post that has a simple way of adding the public link in the right-click menu. The final working version is scattered across a few posts and a blog, so I thought I&#8217;d pull it all together here for the rest of you migrating to KDE.<\/p>\n<p>As usual, it&#8217;s pretty simple once you have it figured out. All you have to do is put a single file with the right commands in the right place. So open your favorite text editor and create the following file: <code>~\/.kde\/share\/kde4\/services\/ServiceMenus\/dropboxpublic.desktop<\/code> . Then paste all of this stuff into it and save it:<\/p>\n<p><code>[Desktop Entry]<br \/>\nType=Service<br \/>\nServiceTypes=KonqPopupMenu\/Plugin<br \/>\nMimeType=application\/octet-stream<br \/>\nActions=CopyPublicLink<br \/>\nEncoding=UTF-8<br \/>\nVersion=0.1<\/p>\n<p>[Desktop Action CopyPublicLink]<br \/>\nName=Get public link<br \/>\nIcon=klipper<br \/>\nExec=dbus-send --type=method_call --dest=org.kde.klipper \/klipper org.kde.klipper.klipper.setClipboardContents string:`dropbox puburl %f`<\/code><\/p>\n<p>Now you should have a &#8220;Get public link&#8221; entry in the Actions sub-menu if you right-click a file in Dolphin. This will put the public URL in your clipboard so it&#8217;s ready to paste into your web browser, email client, IRC session, or whatever. Usually only files in the <code>~\/Dropbox\/Public<\/code> directory have a public links, so if you use it on something outside of that directory nothing will be added to your clipboard.<\/p>\n<p>P. S.<br \/>\nThe original forum post is here: <a href=\"http:\/\/forums.dropbox.com\/topic.php?id=12034&#038;replies=2#post-76494\">http:\/\/forums.dropbox.com\/topic.php?id=12034&#038;replies=2#post-76494<\/a><br \/>\nAnd the original blog post is here: <a href=\"http:\/\/ustunozgur.blogspot.com\/2009\/09\/kde-submenu-action-for-getting-public.html \">http:\/\/ustunozgur.blogspot.com\/2009\/09\/kde-submenu-action-for-getting-public.html <\/a><\/p>\n<p>P. P. S.<br \/>\nIf you&#8217;re not a Dropbox user, but you&#8217;d like to be, please use <a href=\"http:\/\/db.tt\/HWOAk2np\">this Dropbox referral URL<\/a> to sign up. If you do, you&#8217;ll get an extra 250MB of storage for free, and I&#8217;ll get and extra 500MB.Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently switched to Kubuntu and am falling in love with it, but I&#8217;ll talk more about that in a future post. This post is just about getting the Dropbox &#8220;Get public link&#8221; functionality working in Dolphin&#8217;s right-click menu. Under &hellip; <a href=\"http:\/\/clusterbleep.net\/blog\/2012\/01\/11\/getting-a-dropbox-public-link-in-kde-using-dolphin\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clusterbleep.net\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}