[Tkabber] kde or wmaker dock icon

Marshall Rose mrose@dbc.mtview.ca.us
Fri, 13 Dec 2002 15:11:55 -0800


This is a multi-part message in MIME format.

--Multipart_Fri__13_Dec_2002_15:11:55_-0800_081a1e00
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> Hi!
> I can't still get dock icon working. I downloaded Tk_Theme_23 and compiled it.
> Demo app works in blackbox, which supports kde tray. I created tkTheme
> directory in /usr/lib/tk8.3 and placed theme.so and pkgIndex.tcl into it. For
> sure I also created tktheme, Tk_Theme, Tk_Theme_23, theme and similar symlinks
> to tkTheme directory. But still nothing. Strace ouput shows that theme.so is
> opened.
> 
> What should I do if I want to use windowmaker dock icon? Do I have to
> "activate" the plugin somehow?

if you're running under KDE, the unix/dockingtray plugin will run
automatically and the right stuff should just happen.  however, i
noticed that the interface in Tk_Theme has changed, so i'll send alexey
some diffs.  i'll attach the file here.
    
if you're running under wmaker, then, in theory you put this at the top
of your .tkabber/config.tcl file
    
    set ::wmaker_dock 1
    
and the unix/wmaker plugin should run automatically.
    
i recently switched from KDE to gnome, and have come to the conlusion
that the docking/status-tray stuff just doesn't work. i've tried 6
different window managers and can't get either tkabber nor gabber to
dock.  after spending an hour with google reviewing various gnome and
kde mailing lists, i've come to the conclusion that one reason bill
gates gets to rule the world, is that the people working for him are
willing to pick one way to do docking and it just works...
    
/mtr

--Multipart_Fri__13_Dec_2002_15:11:55_-0800_081a1e00
Content-Type: application/x-tcl;
 name="dockingtray.tcl"
Content-Disposition: attachment;
 filename="dockingtray.tcl"
Content-Transfer-Encoding: base64

IyAkSWQ6IGRvY2tpbmd0cmF5LnRjbCx2IDEuMiAyMDAyLzExLzIxIDIwOjQ4OjU0IGFsZXhleSBF
eHAgJAoKbmFtZXNwYWNlIGV2YWwgZG9ja2luZ3RyYXkgewogICAgdmFyaWFibGUgYmFsbG9vbiAi
IgogICAgdmFyaWFibGUgc3RhdGUgICAiIgogICAgdmFyaWFibGUgdHJheSAgICAiIgoKIC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