konqil.icio.us

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

1
Score 50.0%
Description:

konqil.icio.us is a KDE service menu for delicious.com.

To install:

1) Either:
- For per user installs, copy del.icio.us and del.icio.us.desktop to $HOME/.kde/share/apps/konqueror/servicemenus (KDE 3.x) or $HOME/.kde4/share/kde4/services/ServiceMenus/ (KDE 4.x)
- For global all users installs, copy del.icio.us to somewhere in your $PATH (for example /usr/bin) and del.icio.us.desktop to the global servicemenus directory /usr/share/apps/konqueror/servicemenus (KDE 3.x) or /usr/share/services/ServiceMenus/ (KDE 4.x) and remove the explicit path references from del.icio.us.desktop ($HOME/.kde/share/apps/konqueror/del.icio.us)
2) Make sure del.icio.us is executable (chmod u+x $HOME/.kde/share/apps/konqueror/servicemenus/del.icio.us in the case of a per user install)

del.icio.us only makes use of a config file in $HOME/.kde/share/config/del.icio.usrc to store your username and password if you haven't enabled KWalletD. Either way, it will prompt you for your username and password the first time you use it from the context sensitive Actions menu.

Note, konqil.icio.us makes use of the Perl HTML, URI and LWP modules installed (liburi-perl, libhtml-parser-perl and libwww-perl packages under GNU/Debian).

The latest version of konqil.icio.us can always be found at
.
Last changelog:

11 years ago

3.0 - 3.1

* Fixed cookie handling after delicious.com changed the cookie name

2.6 - 3.0

* Now works with delicious.com (*puke*)

2.5 - 2.6

* Completed KDE 4.0 support?

2.4 - 2.5

* Fixed minor bug to improve encoding support

2.3 - 2.4

* Further refactoring of del.icio.us
* Now supports storing credentials in using KWalletD if enabled. Usernames and passwords are stored in the main wallet in the Passwords area (DCOP does not expose from Data credentials via its shell interface :()

2.2 - 2.3

* Now authenticates and stores the resultant cookie in KCookieJar

2.1 - 2.2

* Now calls external commands in a safe manner to prevent theoretical command injection
* Refactored del.icio.us
* Fixed minor bug to uri_escape curtesy of David Roberts

2.0 - 2.1

* Updated Italian translations curtesy of Giacomo Lacava
* Now closes Konqueror tab after URL has been bookmarked
* Modified HTTP agent string
* Now uses KDE proxy settings if set, else attempt to use standard environment variables

1.9 - 2.0

* Refactoring of configuration code, now prompts for username on first execution and allows reconfiguration, thanks to Robert Gr�nning for the .no translations

1.8 - 1.9

* Fixed minor bug to del.icio.us.desktop, whilst testing on KDE 4.0

1.7 - 1.8

* Fixed minor bug to bookmark method, brought about by changes to del.icio.us API

1.6 - 1.7

* Added rudimentary translations into Spanish, German, French and Italian
* Included Norwegian translations of text strings curtesy of Robert Gr�nning

1.5 - 1.6

* Now uses proxy environment variables if set
* Modified HTTP agent string
* Modified error handling code
* Added trailing exit call

1.4 - 1.5

* Updated text strings in action menu
* Menu option to display personal network

1.3 - 1.4

* Integrated patch from Robert Cunningham which causes previously used tags to be displayed
* Fixed minor bug to agent version

1.2 - 1.3

* Fixed minor bug to documentation
* Fixed minor bug to uri_escape patch

1.1 - 1.2

* Fixed minor bugs to documentation
* Rewritten install notes are more clear
* Fixed minor bug to allow perl to be run in strict mode
* Integrated uri_escape patch from Pat Cito

0.5 - 1.1

* Integrated patches from Jakob Flierl and Narcis Tesa
* Service menu items now use KDE bookmark icons
* Service menu items now uses the current Konqueror window
* Install note above is corrected to reference del.icio.us.desktop
* Password setting has been removed, since it was identified as being unnecessary assuming a valid del.icio.us cookie

0.4 - 0.5

* Security patch based on report from Simon Morgan , 0.4 and previous authenticate with del.icio.us via GET requests, which can lead to URLs containing username and password combinations being sent in the Referer HTTP header when users click on links from the bookmarks page

0.3 - 0.4

* Based on a patch/suggestion from Pete Jewell , the extended description is now populated based on the description within the web page headers

0.2 - 0.3

* Menu options to display personal bookmarks, popular bookmarks, and personal inbox

0.1 - 0.2

* Opens new Konqueror tab if possible
* Automatically authenticates with del.icio.us

declanmcgrath

13 years ago

Hi,

This little program is just what I needed. One quick tip though. I'm running OpenSuse 10.2 and when I installed konqil.icio.us I got the error

usage: /home/myhome/.kde/share/apps/konqueror/servicemenus/del.icio.us bookmark <url> at /home/myhome/.kde/share/apps/konqueror/servicemenus/del.icio.us line 41.

I tracked down the error (not knowing any perl!) and figured that @ARGV was getting evaluated to the url I was trying to bookmark - whereas we really want @ARGV to evaluate to the length of the ARGV array. So my fix was
to add a $argcount variable to the top of del.icio.us file as follows

my $methodname;
my $username;
my $httphandle;
my $bookmarkurl;
my $pagecontent;
my $argcount = @ARGV; # Added argcount - behaves like a number, not a string

and to replace all instances of @ARGV with $argcount throughout the del.icio.us file. Then hey presto - everything worked sweet!

Report

C

timb

13 years ago

Version 1.8 also resolves this problem.

Report

SlimG

13 years ago

Thanks for this neat script, it would be nice to have the shortcut(s) placed within the "Bookmark" menu also.

Here's a translation for Norwegian Bokmal and Nynorsk, the two translated strings is identical to eachother, but it's correctly translated, Use it if you like.

[Desktop Action bookmark]
Name=Bookmark This Page
Name[nb]=Legg til bokmerke
Name[nn]=Legg til bokmerke

[Desktop Action display]
Name=Display My Bookmarks
Name[nb]=Vis bokmerker
Name[nn]=Vis bokmerker

[Desktop Action displaysubscriptions]
Name=Display My Subscriptions
Name[nb]=Vis mine abonnement
Name[nn]=Vis mine abonnement

[Desktop Action displaynetwork]
Name=Display My Network
Name[nb]=Vis mine nettverk
Name[nn]=Vis mine nettverk

[Desktop Action displaypopular]
Name=Display Popular Bookmarks
Name[nb]=Vis populære bokmerke
Name[nn]=Vis populære bokmerke

Report

C

timb

13 years ago

These have been added to 1.7 in CVS

Report

coldwinston

13 years ago

I confirm the link is not working, this looks like a good plugin, please fix the link!

Report

C

timb

13 years ago

Fixed :)

Report

angrykeyboarder

13 years ago

Now if I could also get similar for Furl and Yahoo! MyWeb, I'd really be a happy camper.

Oh wait....

Your link is bad.

Report

C

timb

13 years ago

Fixed

Report

urmelchen

13 years ago

The download doesn't work right now. Can you please fix the link?

Report

C

timb

13 years ago

Fixed

Report

liquidat

13 years ago

Thanks for this, it's a nice way.

Just to add another possibility to handle stuff like bookmarklets (read: javascript bookmarks). konqueror has a native javascript bookmark support - it is just named different: small service programs.

A short howto about hot to add them can be read here:
http://liquidat.wordpress.com/2006/04/19/konqueror-with-bookmarklets/

However, the menu addon is nicer in a way ;)

Report

logixoul

13 years ago

Do it in Ruby, it's easier to read and shorter
Leave only the "bookmark" function, because "display" is done more user-friendly with DeliK, and "display popular/inbox" are specialized features
Add a GUI to setup username/password and install

If you don't want to work on this, just give me a shout and I'll do it instead. Or maybe you disagree? :-)

Report

C

timb

13 years ago

The problem with Ruby is that it's a non standard language. As for the menu items, I use them, so I wouldn't want them to go away. The sidebar plugin for Konqi doesn't really float my boat I'm afraid. That being said, I am intending to rework it at some stage, it's all a matter of time. Having said, that CVS tree is there, so have a play and maybe we can work together. I know another guy who is also working on service menus based on my idea, maybe we can all work together. Drop me an email if you're interested.

Report

runekock

14 years ago

I had a hard time figuring out that you have to right-click and choose Action to find this thing after installation.Of course that is because I'm an utter fool. But fools abound, so it's probably a good thing describe this.

Report

C

timb

13 years ago

Hopefully the screenshot I've uploaded should make it a little clearer.

Report

logixoul

14 years ago

Sometimes the "add bookmark" tab is opened in a Konqueror window different from the one I'm looking at and working with.

Report

intersezioni

14 years ago

this seems to be a nice tool!
the "Display" functions work for me, but "Bookmark this page" does not, so i can't add pages to del.icio.us.

when i launch konqueror like from the command line (like this: konqueror http://www.google.com) and i try to add a bookmark, i receive this error:
Undefined subroutine &main::uri_escape called at /home/guest/.kde/share/apps/konqueror/servicemenus/del.icio.us line 40.


i'm on kubuntu - breezy - kde 3.5.2

liburi-perl , libhtml-parser-perl and libwww-perl packages are installed (not the development ones, though)

i copied the two files in .kde/share/apps/konqueror/servicemenus/del.icio.us

i gave to the del.icio.us file execution permissions

i modified del.icio.us file accordingly to my del.icio.us account


any tips?

thank you in advance!

Report

logixoul

14 years ago

I don't even know Perl, but... try replacing
require URI::Escape;
with
use URI::Escape;
Hope this helps.

Report

intersezioni

14 years ago

thanks! what a quick and useful tip!

now i'm going use konquilicious for a bit, then i will notify timb about it, if necessary.

Report

logixoul

14 years ago

thanks! what a quick and useful tip!
Do you mean that it works now? :)
i will notify timb about it, if necessary.
Sorry, didn't understand. Notify him about what?

Report

intersezioni

14 years ago

yeah, konquil.icio.us now works :)

I replaced require URI::Escape; with use URI::Escape;

what i meant is that i should notify Tim about this bug (am i right, is this a bug?)


i also think that if i will keep using konquil.icio.us, i will delete "noui=yes&" from line 40, because i prefer my del.icio.us tags appear when i'm adding a new bookmark.

Report

logixoul

14 years ago

Great.
am i right, is this a bug?
Yes, I think so.

Report

C

timb

14 years ago

Sounds like it, I will patch the version in CVS shortly. Incidentally I'm going to make uiflag optional.

Report

C

timb

14 years ago

This patch is included in 1.2.

Report

patcito

14 years ago

hey Tim, I like your script but it doesn't work with URLs that have more than one "&". As example this URL won't work:
http://www.openwengo.com/support/forum/profile.php?mode=viewprofile&u=7
instead it will post the URL without the second &u=7 and it will post that wrong URL:
http://www.openwengo.com/support/forum/profile.php?mode=viewprofile
try it.
I found that though:
http://www.annocpan.org/~GAAS/URI-1.35/URI/Escape.pm

the fix:
on top of the script put:
use URI::Escape;

and just before the exec(dcop...)
put that:
$safe = uri_escape("" . $ARGV[1] . ""); and then replace $ARGV[1] with $safe and it should work!

Report

11 years ago

3.0 - 3.1

* Fixed cookie handling after delicious.com changed the cookie name

2.6 - 3.0

* Now works with delicious.com (*puke*)

2.5 - 2.6

* Completed KDE 4.0 support?

2.4 - 2.5

* Fixed minor bug to improve encoding support

2.3 - 2.4

* Further refactoring of del.icio.us
* Now supports storing credentials in using KWalletD if enabled. Usernames and passwords are stored in the main wallet in the Passwords area (DCOP does not expose from Data credentials via its shell interface :()

2.2 - 2.3

* Now authenticates and stores the resultant cookie in KCookieJar

2.1 - 2.2

* Now calls external commands in a safe manner to prevent theoretical command injection
* Refactored del.icio.us
* Fixed minor bug to uri_escape curtesy of David Roberts

2.0 - 2.1

* Updated Italian translations curtesy of Giacomo Lacava
* Now closes Konqueror tab after URL has been bookmarked
* Modified HTTP agent string
* Now uses KDE proxy settings if set, else attempt to use standard environment variables

1.9 - 2.0

* Refactoring of configuration code, now prompts for username on first execution and allows reconfiguration, thanks to Robert Gr�nning for the .no translations

1.8 - 1.9

* Fixed minor bug to del.icio.us.desktop, whilst testing on KDE 4.0

1.7 - 1.8

* Fixed minor bug to bookmark method, brought about by changes to del.icio.us API

1.6 - 1.7

* Added rudimentary translations into Spanish, German, French and Italian
* Included Norwegian translations of text strings curtesy of Robert Gr�nning

1.5 - 1.6

* Now uses proxy environment variables if set
* Modified HTTP agent string
* Modified error handling code
* Added trailing exit call

1.4 - 1.5

* Updated text strings in action menu
* Menu option to display personal network

1.3 - 1.4

* Integrated patch from Robert Cunningham which causes previously used tags to be displayed
* Fixed minor bug to agent version

1.2 - 1.3

* Fixed minor bug to documentation
* Fixed minor bug to uri_escape patch

1.1 - 1.2

* Fixed minor bugs to documentation
* Rewritten install notes are more clear
* Fixed minor bug to allow perl to be run in strict mode
* Integrated uri_escape patch from Pat Cito

0.5 - 1.1

* Integrated patches from Jakob Flierl and Narcis Tesa
* Service menu items now use KDE bookmark icons
* Service menu items now uses the current Konqueror window
* Install note above is corrected to reference del.icio.us.desktop
* Password setting has been removed, since it was identified as being unnecessary assuming a valid del.icio.us cookie

0.4 - 0.5

* Security patch based on report from Simon Morgan , 0.4 and previous authenticate with del.icio.us via GET requests, which can lead to URLs containing username and password combinations being sent in the Referer HTTP header when users click on links from the bookmarks page

0.3 - 0.4

* Based on a patch/suggestion from Pete Jewell , the extended description is now populated based on the description within the web page headers

0.2 - 0.3

* Menu options to display personal bookmarks, popular bookmarks, and personal inbox

0.1 - 0.2

* Opens new Konqueror tab if possible
* Automatically authenticates with del.icio.us

12345678910
product-maker Base: 4 x 5.0 Ratings
kapat
Mar 01 2009
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
3.1
updated Feb 16 2009
added Dec 16 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1
System Tags addon