[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X, new problems.



Donovan Rebbechi wrote:
> 
> it would be simple enough to write a two line hack perl script that
> fixes the config file ( just remove all "Virtual" lines ). 

Speaking of "simple" scripts...  How about an extension of 
KAppfinder that would basically make the whole FVWM2 menu into
a sub menu on the 'K' menu ?

Presented for consideration.  An fvwm2rc config file section
showing a few application menue entries and a kdelnk file.
Much of the information presented in them are actualy similer.
specificaly ; the name of the folder, The name of the app.
The icon to use and the action to take when the item is selected.
At the bottom I have a breackdown of what the script wold nead to 
do in order to be considerd working.
=========================
# This is for the Start menu of the FvwmTaskBar

AddToMenu "StartMenu"
+ "New shell        %mini-sh1.xpm%"         Exec    nxterm -ls -sb -fn
8x13
&
+ "Manual pages     %mini-book1.xpm%"       Exec    xman &
+ "Magnifying glass %mini-zoom.xpm%"        Exec xmag &

=========================
# KDE Config File
[KDE Desktop Entry]
BinaryPattern=korganizer;
Protocols=file;
MimeType=text/x-vCalendar;text/plain
Exec=korganizer
Icon=korganizer.xpm
TerminalOptions=
Path=
DocPath=korganizer/index.html
Type=Application
Terminal=0
Name=Organizer
Name[da]=Organisator
[... other languages sniped ...]
Comment=A Calendar and Scheduling Program
Comment[ca]=Un programa de calendari i planificació
[... other languages sniped ...]

=========================
AddToMenu "StartMenu"
// creat directory StartMenu

+ "Manual pages     %mini-book1.xpm%"       Exec    xman &
// This line is what becomes a *.kdelnk .. some entries are not used.

+ "Manual pages 
// Name=Organizer
%mini-book1.xpm%"
// Icon=korganizer.xpm
Exec    xman &
// Exec=korganizer

========================
Can a script be writen to perform this task ?