Flickr On Plasma

Plasma 4 Extensions

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

6
Score 46.0%
Description:

A Plasma applet showing:
[li]the most interesting pictures on Flickr[/li]
[li]your favorite photos[/li]
[li]a particular photoset[/li]
[li]a set of photos based on a tag[/li]
[li]photos taken on a particular location[/li]

To fetch the latest version, use the Git version:

[li]Github: http://github.com/bram85/flickrop

Clone URL: git://github.com/bram85/flickrop.git[/li]
[li]Gitorious: http://gitorious.org/flickrop/flickrop

Clone URL: git clone git://gitorious.org/flickrop/flickrop.git[/li]

Translations

This version supports localization. If you wish to translate Flickr On Plasma, clone the repository or download the template from Github. When you're ready, send me a pull request or send the resulting *.po file by email.
Last changelog:

10 years ago

v0.7.1
======

- Spanish translation added, thanks to Cristian Fadón.

v0.7
====

- Added localization support (Dutch translation included).
- Fade effect when showing a new photo.
- Several bugfixes

gladiac

11 years ago

It would be nice if you would be able to upload pictures to flickr by dragging them to the applet or a special area, icon on the applet.

Report

C

bram85

11 years ago

I think this is outside the scope of this applet. I'm not intending to implement this feature, unless someone provides a nice patch.

Report

joth666

11 years ago

Or rather: how to compile the 0.3.1 version on KDE 4.2 (RC1 AKA 4.1.96)? I have the earlier version running (also compiled on 4.2) but the latest version complains about:

"CMake Error at /usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:13 (message):
FindPlasma.cmake is deprecated. Now with KDE 4.2 Plasma is part of kdelibs
and automatically found using find_package(KDE4) instead.

Replace the variables previously coming from FindPlasma.cmake as follows:

PLASMA_OPENGL_FOUND -> KDE4_PLASMA_OPENGL_FOUND

PLASMA_LIBS -> KDE4_PLASMA_LIBS

PLASMA_INCLUDE_DIR -> KDE4_INCLUDE_DIR or KDE4_INCLUDES, should be already
set anyway

PLASMA_FOUND -> nothing, it's always there if KDE4, version 4.2 or newer
has been found.

If you see this error message in a module within KDE/, update it from svn,
it has been fixed already.

Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!"

Is this easily fixed? If so, how?

Report

C

bram85

11 years ago

Yeah, I'm aware of this, and 0.4 will fix that. I wanted to release 0.4 last week, but due to some internet connection problems it has to wait a little.

Here is the patch for the CMakeLists.txt file in the project's root:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,12 @@ project(plasma-flickrop)
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
-find_package(Plasma REQUIRED)
+
+if ( ${KDE_VERSION} VERSION_LESS "4.1.90" )
+ find_package(Plasma REQUIRED)
+else ( ${KDE_VERSION} VERSION_LESS "4.1.90" )
+ set( PLASMA_LIBS ${KDE4_PLASMA_LIBS} )
+endif ( ${KDE_VERSION} VERSION_LESS "4.1.90" )

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(

Report

joth666

11 years ago

Thanks! The patch worked great!

Report

arizonagroovejet

11 years ago

Can you clarify exactly where each file is supposed to be installed in a user's home directory? Your README file says to use

cmake -DCMAKE_INSTALL_PREFIX=$KDEHOME ..

but on openSUSE 11.1 that's useless because $KDEHOME is not defined. So I tried using


cmake -DCMAKE_INSTALL_PREFIX=~/.kde4 ..

This resulted in files being as follows:

mike@linux-3b2n:~$ find .kde4 -iname *flickr*
.kde4/share/kde4/services/plasma-dataengine-flickrop.desktop
.kde4/share/kde4/services/plasma-applet-flickrop.desktop
.kde4/lib/kde4/plasma_applet_flickrop.so
.kde4/lib/kde4/plasma_engine_flickrop.so

There is now an entry in the 'Add Widgets' list but the Widget gets added to the Dashboard as a small black square with no preference (spanner) icon on it.

Report

C

bram85

11 years ago

Appears to look fine. Have you tried running kbuildsycoca after installation? Or restart Plasma? (execute 'kquitapp plasma && plasma').

Report

arizonagroovejet

11 years ago

I had cause to log out since my previous comment and the behaviour was the same after. I tried running the commands you suggested anyway but they also don't affect the behaviour. However, when I tried adding it to the Desktop after restarting Plasma I got some output in the Konsole session I'd started it in which is as follows:

QPainter::begin: Cannot paint on a null pixmap
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
QPainter::begin: Cannot paint on a null pixmap
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
QPainter::begin: Cannot paint on a null pixmap
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
QPainter::begin: Cannot paint on a null pixmap
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWorldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted

Don't know if that is helpful at all.

I'm using openSUSE 11.1 with KDE 4.1.3. the openSUSE people have backported a bunch of stuff from KDE 4.2 in to 4.1.3 so it's not the same as 4.1.3 on other distros.

Output of building and installing is as follows:

mike@continuity:~/plasmoids/flickrop-0.3.1/build$ make clean
mike@continuity:~/plasmoids/flickrop-0.3.1/build$ cmake -DCMAKE_INSTALL_PREFIX=~/.kde4 ..
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib64/libX11.so
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Found KDE 4.1 include dir: /usr/include
-- Found KDE 4.1 library dir: /usr/lib64
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mike/plasmoids/flickrop-0.3.1/build
mike@continuity:~/plasmoids/flickrop-0.3.1/build$ make
Generating moc_flickrop.cpp
Generating moc_clusterdialog.cpp
Generating moc_flickrop.cpp
Generating moc_clusterdialog.cpp
[ 20%] Building CXX object applet/CMakeFiles/plasma_applet_flickrop.dir/plasma_applet_flickrop_automoc.o
[ 40%] Building CXX object applet/CMakeFiles/plasma_applet_flickrop.dir/flickrop.o
[ 60%] Building CXX object applet/CMakeFiles/plasma_applet_flickrop.dir/clusterdialog.o
Linking CXX shared module ../lib/plasma_applet_flickrop.so
[ 60%] Built target plasma_applet_flickrop
Generating moc_flickr_engine.cpp
Generating moc_flickr_engine.cpp
[ 80%] Building CXX object engine/CMakeFiles/plasma_engine_flickrop.dir/plasma_engine_flickrop_automoc.o
[100%] Building CXX object engine/CMakeFiles/plasma_engine_flickrop.dir/flickr_engine.o
Linking CXX shared module ../lib/plasma_engine_flickrop.so
[100%] Built target plasma_engine_flickrop
mike@continuity:~/plasmoids/flickrop-0.3.1/build$ make install
[ 60%] Built target plasma_applet_flickrop
[100%] Built target plasma_engine_flickrop
Linking CXX shared module CMakeFiles/CMakeRelink.dir/plasma_applet_flickrop.so
Linking CXX shared module CMakeFiles/CMakeRelink.dir/plasma_engine_flickrop.so
Install the project...
-- Install configuration: "Debugfull"
-- Installing: /home/mike/.kde4/lib/kde4/plasma_applet_flickrop.so
-- Up-to-date: /home/mike/.kde4/share/kde4/services/plasma-applet-flickrop.desktop
-- Installing: /home/mike/.kde4/lib/kde4/plasma_engine_flickrop.so
-- Up-to-date: /home/mike/.kde4/share/kde4/services/plasma-dataengine-flickrop.desktop
mike@continuity:~/plasmoids/flickrop-0.3.1/build$

Report

C

bram85

11 years ago

Back again.

I'm afraid I can't really fix this, it seems to be related to http://bugs.kde.org/show_bug.cgi?id=168984 . So it's either wait a little for a response on that bug or wait for KDE 4.2 which may fix it.

Report

C

bram85

11 years ago

I have seen the QPixmap errors too, but only when resizing the applet when run with plasmoidviewer. Repainting miserably fails after resize. I haven't seen this on the 'normal' desktop shell, though.

But I'll see what I can do.

Report

schnupp

11 years ago

I needed to add

class QPushButton;

to flickrop.h


to avoid this error:

Generating moc_clusterdialog.cpp
[ 20%] Building CXX object applet/CMakeFiles/plasma_applet_flickrop.dir/plasma_applet_flickrop_automoc.o
In file included from /opt/tmp/kde4/flickrop-0.3/build/applet/moc_flickrop.cpp:10,
from /opt/tmp/kde4/flickrop-0.3/build/applet/plasma_applet_flickrop_automoc.cpp:4:
/opt/tmp/kde4/flickrop-0.3/build/applet/../../applet/flickrop.h:105: error: ISO C++ forbids declaration of 'QPushButton' with no type
/opt/tmp/kde4/flickrop-0.3/build/applet/../../applet/flickrop.h:105: error: expected ';' before '*' token
make[2]: *** [applet/CMakeFiles/plasma_applet_flickrop.dir/plasma_applet_flickrop_automoc.o] Fehler 1
make[1]: *** [applet/CMakeFiles/plasma_applet_flickrop.dir/all] Fehler 2
make: *** [all] Fehler 2

(Debian Experimental, KDE 4.1.4)

Frank

Report

C

bram85

11 years ago

Thanks for your report.

I just released 0.3.1 which should take care of this. I can't really test because it compile like a charm on my machine.

Report

schnupp

11 years ago

The fix works! At least for me ;-)

Thanks.

g++ (Debian 4.3.2-2) 4.3.3 20090110 (prerelease)

Report

schnupp

11 years ago

Nice! I like it too...

Maybe you could add a tag list option.
So you can decide what kind of pictures you like to see...

Report

C

bram85

11 years ago

This is work in progress. At the moment of writing, my local version supports the interesting photo stream (which the current version is already doing) and a stream of your favorite photos. Streams based on tags were actually my next target.

Report

Garlic

11 years ago

I like this, works fine on Ubuntu intrepid.

It would be nice, if the plasmoid could also set the wallpaper to downloaded picture.


Intrepid debs could be found at https://launchpad.net/~rainer-marks/+archive

Report

C

bram85

11 years ago

Yeah, the wallpaper idea was on my mind too. Have to think of some ways preventing that it will cause ugly results due to upscaling.

Report

srog

11 years ago

Working fine with Kubuntu Jaunty Jackalope (alpha-1). Thank You !

Report

10 years ago

v0.7.1
======

- Spanish translation added, thanks to Cristian Fadón.

v0.7
====

- Added localization support (Dutch translation included).
- Fade effect when showing a new photo.
- Several bugfixes

12345678910
1
product-maker DrMartinus Jul 07 2014 3 bad
product-maker Base: 4 x 5.0 Ratings
williamchansen
Nov 27 2019
lei00
Dec 10 2012
margueritesu
Jan 28 2010
horchi
Jun 19 2009
zunami
May 11 2009
universe777
Apr 18 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
0.7.1
updated Oct 03 2009
added Dec 11 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0