Bug 145773 - klaptopdaemon systray icon does not work
Summary: klaptopdaemon systray icon does not work
Status: RESOLVED INTENTIONAL
Alias: None
Product: klaptopdaemon
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
: 146135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-22 08:55 UTC by Jan Mette
Modified: 2008-08-19 08:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Mette 2007-05-22 08:55:10 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.2 
OS:                Linux

On KDE 3.5.7 compiled from latest SVN tag, the systray icon from klaptopdaemon does not show up. The battery status is shown correctly in kcontrol, only the systray icon does not work.
Comment 1 Johan Grahn 2007-05-22 13:34:42 UTC
Same problem here.

Restarting KDE does not help.
Comment 2 Jan Mette 2007-05-22 14:09:34 UTC
Sorry, i was in a hurry before...

Some more info:

ACPI is configured correctly and the kcontrol module is also ok, showing me all options. Clicking on the "Start Battery Monitor" button does nothing... There is no error message when i start kcontrol or "kcmshell laptop" from a terminal and configure the klaptop settings, so i cant say more about this problem...

Comment 3 Cactus 2007-05-25 08:33:26 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Gabriel C 2007-05-26 18:35:34 UTC
This problem is caused by lunakl ( well is why copy&paste is _bad_ and really bad if someone doesn't even compile and test that copy & pasted code ).

He didn't updated the LDFLAGS so the daemon won't start at all.

There an patch to fix it :

http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=plainblob;f=/source/kde/kdeutils/fix-copy_and_paste_shit.patch

Comment 5 Bram Schoenmakers 2007-05-30 08:23:32 UTC
*** Bug 146135 has been marked as a duplicate of this bug. ***
Comment 6 Joseph Tate 2007-06-07 19:33:07 UTC
The patch that Gabriel C listed did not fix this issue for me.
Comment 7 Jan Mette 2007-06-07 19:39:06 UTC
It works when you regenerate the Makefiles with

make -f admin/Makefile.common

before proceeding with configure, make, make install etc...
Comment 8 Nicolas L. 2007-06-18 08:03:28 UTC
Gabriel C can you pout the patch here please ? because the link doesn't seems to work
Comment 9 Arkadiusz Miskiewicz 2007-06-24 19:26:41 UTC
linking wasn't properly done, thix patch should fix the thing:

problem:

[arekm@tarm ~]$ gcc /usr/lib/kde3/kded_klaptopdaemon.so 2>&1 | grep XScreenSaver
/usr/lib/kde3/kded_klaptopdaemon.so: undefined reference to `XScreenSaverQueryExtension'
/usr/lib/kde3/kded_klaptopdaemon.so: undefined reference to `XScreenSaverQueryInfo'
/usr/lib/kde3/kded_klaptopdaemon.so: undefined reference to `XScreenSaverAllocInfo'


fix:

diff -urN kdeutils-3.5.7.org/klaptopdaemon/Makefile.am kdeutils-3.5.7/klaptopdaemon/Makefile.am
--- kdeutils-3.5.7.org/klaptopdaemon/Makefile.am        2007-05-14 09:40:45.000000000 +0200
+++ kdeutils-3.5.7/klaptopdaemon/Makefile.am    2007-06-24 19:07:27.305522457 +0200
@@ -10,7 +10,7 @@
 MESSAGE_SOURCES = laptop_daemon.cpp kpcmcia.cpp xautolock.cc kpcmciainfo.cpp daemondock.cpp xautolock_diy.c xautolock_engine.c
 kded_klaptopdaemon_la_SOURCES = $(MESSAGE_SOURCES) laptop_daemon.skel
 kded_klaptopdaemon_la_LDFLAGS = $(all_libraries) -module -avoid-version  -lXtst
-kded_klaptopdaemon_la_LIBADD   = $(LIB_KDEUI) libkcmlaptop.la
+kded_klaptopdaemon_la_LIBADD   = $(LIB_KDEUI) $(LIB_XSS) libkcmlaptop.la

 klaptop_acpi_helper_SOURCES = acpi_helper.cpp

Comment 10 David 2007-10-01 03:45:38 UTC
How is this issue?
Comment 11 Peter Volkov 2007-10-23 08:06:20 UTC
It's in svn:
http://websvn.kde.org/branches/KDE/3.5/kdeutils/klaptopdaemon/Makefile.am?r1=663522&r2=700562

So I think this could be resolved as FIXED.
Comment 12 Dirk Mueller 2008-08-19 08:38:43 UTC
klaptopdaemon has been dropped from KDE 4.x