Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mini how-to] sending fotos w/Digikam+your Gmail account
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Fri Feb 03, 2006 8:40 pm    Post subject: [mini how-to] sending fotos w/Digikam+your Gmail account Reply with quote

How to send pictures from Digikam using your Gmail account

OK, this is my first how-to ever, so please bear with me, and feel free to suggest how to do this better.

Purpose:
I love gmail and I love Digikam. For this reason, I've always wanted to send pictures directly from Digikam using my gmail account in the same way that Picasa(tm) does it.

Until now, the only solution was to enable smtp in your gmail account and send your fotos via kmail. After emerging one of the latest digikam, I've seen the option to select "GmailAgent" as mail agent, and I've been trying to get it working until now. Now that it's working, I'd like to share how to do it.

- First, make sure you have a recent version of DigiKam that supports GmailAgent. I'm not sure from which version Digikam supports GmailAgent, but if you run
Code:
emerge --sync
emerge --pretend digikam

you'll see whether you need to update. If there is a newer version, just emerge digikam and go for a coffee

- Now you need to get the gmailagent plugin which will allow you to send stuff via your gmail account.
This program is not part of portage yet, so we'll need to install it manually. See later section for how to uninstall.

Go to http://gmailagent.sourceforge.net/download.html and follow the download link. Then get the gmailagent programs and save it somewhere. The other program there, the GContactsAgent, is a nice gui for aditing your gmail contacts. However, it is not mandatory for gmailagent so we'll leave it for another day.

in my case, the latest versions were
    gmailagent-qt-0.7.2.tgz

So I did
Code:
tar xzvf gmailagent-qt-0.7.2.tgz

to extract the files.
Now we need to install the scripts. If not already done so, make sure that you are root. Then:
Code:
cd gmailagent-qt-0.7.2
python setup.py install
cd ..
rm -rf gmailagent-qt-0.7.2


You also need to emerge some libraries:
Code:
emerge libgmail PyQt


now check your installation by opening a new non-root terminal and typing

Code:
/usr/local/bin/gmailagent


You should see some nice window poping up. If this doesn't work, then you need to revise that you have the PyQt, libgmail, and all the required libraries installed correctly.

Hopefully things are working now. Next, you need to configure Digikam. Fire up the application and select your favourite picture. Go to Image->Email Images. Select the "Mail" icon with the envelope there, and as mail agent select Thunderbird. Yes, not GmailAgent. It is really dumb, but if you select GmailAgent, you can't select the exeutable. Now hopefuly you can enter one. Type in the field "Thunderbird binary path"
    /usr/local/bin/gmailagent


Now that the path is correct, you can do what you instinct told you before: Select GmailAgent as the Mail agent. Click OK, follow the instructions to access your addressbook, and happy sending!


Uninstalling:

You'll need to manually remove the file
    /usr/local/share/man/man1/gmailagent.l.gz

and the folders
    /usr/lib/python2.4/site-packages/GCM_qt
    /usr/local/share/doc/GCM_qt

    /usr/lib/python2.4/site-packages/GmailAgent
    /usr/local/share/doc/gmailagent

Hopefully these will join the portage tree soon and this will not be needed anymore.

Good luck!


Last edited by batistuta on Thu Feb 09, 2006 4:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Sun Feb 05, 2006 9:32 pm    Post subject: Reply with quote

After 48 hours still no replies! I take that as a good sign, that everyone who read it has also tried it without any major problem. Anyone success stories? Happy? Not happy?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum