This section is intended to give answers to the most frequently asked
questions about TkDesk. This file is derived from the emails I'm
receiving, so if you think something is missing just tell me about it
(
Christian.Bolik@mainz.netsurf.de
).
Since version 1.1 the appbar contains a "handle" at the upper or left edge that can be used to drag the appbar around the screen by just pressing the left mouse button over it.
You can also drag the application bar around simply by holding down the Alt- or Meta-key and simultaneously pressing the left mouse button over the application bar. You can also invoke the "Move..." entry from the comet button's popup menu to do the same without having to press Alt/Meta.
Since version 1.0b1 the configuration file "AppBar" sets also a variable named tkdesk(appbar,wm_managed) which can be used to have the apllication bar managed by the window manager, although this is usually not necessary.
No, but have a look at the answer to the next question. As far as I know to have transparent icons in X you need to make use of X11's SHAPE extension. Now as raw X programming is something only for the very brave, I didn't look into this any deeper yet. Any takers?
The background colour of icons used when the window manager iconifies a window can be set in the configuration file "System". The variable you are looking for is tkdesk(color,icon_background). By setting this variable to the same colour as your root window you can achieve the effect of transparent icons. You can define the colour either as a normal name (such as "grey", "blue") or in the form #rrggbb.
First, you have to set the variable
tkdesk(desk_items,wm_managed)
in the System config file to 1.
Then you have to configure fvwm to not decorate windows of class
dsk_DeskItem
. For instance:
Style "dsk_DeskItem" NoTitle, NoHandles, WindowListSkip, BorderWidth 0
As for FVWM, you first have to set the variable
tkdesk(desk_items,wm_managed)
in the System config file to 1.
To tell the CDE window manager (dtwm) to not decorate desk items you
have to add the following line to either the file Dtwm or .Xdefaults
in your home directory, and then restart dtwm:
Dtwm*dsk_DeskItem*clientDecoration: none
Yes, this is a bit tricky. What you need to do is the following:
dsk_exec sh -c {export foo=bar; program}
Currently you have to edit the file cb_tools/bindings.tcl in TkDesk's library directory to make this work. Locate the two lines containing the word "XKB"; all you need to do is to comment out the following lines by prepending a '#'.
TkDesk saves all layout information in the file  /.tkdesk/_layout, so this is the place to look for bad lines. If in doubt you can safely delete this file and all should be back to normal.
In case of the appbar not showing up you can try the following (sent by Jochem Huhmann, joh@unidui.uni-duisburg.de):
This is from Bryan Venable, spif@vousi.com:
This may have to do with the location of the zoneinfo directory. For libc5 I believe it's /usr/lib/zoneinfo, whereas for glibc it'd be /usr/share/zoneinfo. Try making a symbolic link from whichever you have to whichever you don't. There is a fix to Red Hat 5.0 which has to do with this, but in that situation the problem is with libc5 programs running on a system "optimized" for glibc.
And Raul Quiroga, quiroga@cartan.math.cinvestav.mx, also has got some advice for this:
Concerning the problem described below I received several suggestions. Some allowed to get the date in the tkdesk right but an incorrect one with the date command. Finally what I did is set the time with timeconfig to Universal with "Hardware clock set to GMT" checked; after a reboot both the appbar and date reported the correct time. Thanks all for your help.
There seem to be two solutions to this problem: One is if you're
running on a RedHad Linux 5.x system, the libc5 that's packaged and
installed in /lib may be too old a version. If ls
/lib/libc.so.5.*
on your system gives something like
/lib/libc.so.5.3.xx
you should upgrade to at least 5.4.20. I
think you can get a newer version of libc from sunsite.unc.edu in
/pub/Linux/GCC.
The other solution that should always work is to do the following (thanks to Ike Hishikawa, ike@hishikawa.f.uunet.de, for this one):
Assuming that the tarball was unpacked under /usr/local,
open /usr/local/bin/tkdesk with your favorite editor.
At the very top of the file it should say:
#!/bin/sh
#-*- tcl -*- \
PATH=/usr/local/bin:$PATH ;#\
exec tkdesksh "$0" "$@"
After the 3rd line, insert two lines pointing to the location of
tcl/tk libs, so that you get:
#!/bin/sh
#-*- tcl -*- \
PATH=/usr/local/bin:$PATH ;#\
export TCL_LIBRARY=/usr/local/lib/TkDesk/tcl_lib ;#\
export TK_LIBRARY=/usr/local/lib/TkDesk/tk_lib ;#\
exec tkdesksh "$0" "$@"
This did the trick for me :)
Hope this helps,
The first place to start are the various configuration files of TkDesk. These can be accessed either by the "TkDesk/Configuration" menu of the file browser windows, or by the "Configuration" submenu of the popup menu of the very first button of the application bar of TkDesk.
Since TkDesk uses Tcl as the language for its configuration, and these configuration files are simply "source"ed, you could add any sort of Tcl proc for instance to the configuration file "System". This proc would then be available in every other configuration file as well. With the set of commands provided by TkDesk, which are listed e.g. in the configuration file "Popups", TkDesk provides a very powerful platform for the user who knows Tcl.
Yes! Thanks to Chris Sterritt and Alan V. Shackelford, there is a
mailing list dedicated to TkDesk at shaknet.clark.net. Just send a mail to
majordomo@shaknet.clark.net
with an empty subject line and "subscribe tkdesk" as the
message body. Please join, it's worth it! The list's address is
tkdesk@shaknet.clark.net
, by the way.
There is also a searchable archive of the TkDesk mailing list on the web at http://www.findmail.com/list/tkdesk. This is probably the best place to start looking when you run into problems with TkDesk.
The official Tcl/Tk homepage is at
http://www.scriptics.com/
.
The Tcl/Tk FAQs and lots of user-contributed software can be obtained
from
ftp://ftp.neosoft.com/pub/tcl
.
There is also a newsgroup dedicated
to Tcl/Tk:
comp.lang.tcl
.