linux-l: nochmal ICEWM

Mario Thaten mario at thaten.in-berlin.de
Mo Feb 14 09:42:13 CET 2000


Reply to mail by Rolf Buenning of Sun, 13 Feb 2000 22:44:52 +0100:

Hallo Rolf,

> ich weiss nicht mehr, wer war der ICEWM-Spezi, Mario oder Matthias?

Spezi? Ich benutz ihn einfach nur gern. xfm benutze ich hingegen
nicht, habe aber mal aus Interesse kurz hineingeschaut, um mir ein
Bild zu verschaffen. /usr/X11R6/bin/xfm.install hast Du ausgeführt?
 
> Ich versuche seit laengerem Default-Ressourcen, z.B. den
> defaultEditor fuer den xfm einzustellen.
> man xfm ....
> ---------------
> Various aspects of  xfm  can  be  configured  by  changing
> corresponding   resource   settings   in  the  application
> defaults file. Some important resources are listed below: ...
> ---------------
> 
> Ich habe aber nicht herauszufinden vermocht, wie dieses
> 'application defaults file' heisst und wie die Syntax
> der Eintraege ist.

Dann existiert in /usr/X11R6/lib/X11/xfm/dot.xfm eine xfmrc, die
man auch als .xfmrc ins Home-Verzeichnis kopieren und dort
modifizieren kann. Die folgende Information habe ich ebenfalls der
Man-Page entnommen, wo die Syntax sehr ausführlich beschrieben zu
sein scheint:
--------------------------------8<-------------------------------
       An understand­
       ing  of the application data is necessary, however, if you
       want to edit an existing or create a new entry  using  the
       Install, Install group and Edit options of the application
       menu. Each entry has the following form:

             name:directory:filename:icon:push-action:drop-action

       The name and icon fields specify the name of the  applica­
       tion and a corresponding icon which should be displayed in
       the application window. The  push-action  and  drop-action
       fields  have  the  same meaning as in the xfmrc file: they
       indicate the commands to be passed to the shell  when  the
       user  double-clicks  on  the  icon or drops files onto it,
       respectively.  The directory and filename fields  let  you
       specify  a  file  to  be  passed to the application. These
       fields are filled in by xfm when the user drags a file  or
       directory  onto  the application window.
-------------------------------->8-------------------------------

Zu Deinem Editor-Problem bietet sich folgende Lösung an
--------------------------------8<-------------------------------
       Other files are opened in the  default
       editor  (specified  by the defaultEditor resource), unless
       another action is given in the xfmrc file (see  CONFIGURA­
       TION below).
-------------------------------->8-------------------------------

Wenn ich jetzt das Wort "resource" richtig interpretiere, müßte
folgende Zeile in Deiner ~/.Xresources funktionieren
xfm*defaultEditor:  NameDesEditorsDeinerWahl (always emacs :))

Checke am besten nochmal in Deiner ~/.xinitrc ab, daß Deine
.Xresources-Kopie per xrdb eingelesen wird und starte den X-Server
neu. Dann sollte es funktionieren (habe leider gerade keine
Möglichkeit es zu probieren, alles nur graue Theorie :)... Aber es
klingt plausibel. Für nähere Informationen zu X-Ressourcen empfehle
ich das Linux-Anwenderhandbuch, für xfm solltest Du wirklich die
Man-Page von oben bis unten durchackern, es scheint sich zu lohnen.

> Hilfe moeglich?

Hoffe schon :)...

Gruß, Mario
-- 
 .~.    Mario Thaten (mario at thaten.de)
 /V\    Linux 2.3.40
/( )\   Call for codewriters:
 ^ ^    Anybody interested in implementing an "Undo"-function in life?




Mehr Informationen über die Mailingliste linux-l