On 20/06/10 22:44, Andersen Fan wrote:
> I'm not sure ,but you can have a try
>
> 2,/etc/rc.conf :
> #XSESSION="Gnome"
> XSESSION="Xsession"
>
> 1,/home/user/.xsession :
> exec fvwm
>> Date: Sun, 20 Jun 2010 20:00:47 +1000
>> From: jakesaddr...@gmail.com
>> To: fvwm@fvwm.org
>> Subject: Re: FVWM: question
>>
>> On 20/06/10 15:06, Jaimos Skriletz wrote:
>>> On Sat, Jun 19, 2010 at 08:43:18PM +0100, Rui Silva wrote:  
>>>> Hi!
>>>>
>>>> I've installed FVWM and FVWM-themes on my Ubuntu 10.04 but I'm  
>>>> experiencing some difficulties:
>>>>
>>>> 1. How can I activate FVWM as my default WM?
>>>>
>>>> 2. How can I use the "cde" as the default theme?
>>>>
>>>> 3. How can I deactivate GNOME desktop manager and replace by the cde  
>>>> look and feel?
>>> The answer to these three questions are all related and depending on how 
>>> you want thigns set up you have one of two basic models you can follow. Of 
>>> the two I will briefly describe, the first is probabaly the one you don't 
>>> want I'm just mentioning it incase you do and so you can see the difference 
>>> in the philosphy of what is going on.
>>>
>>> The First Method: you will run fvwm/fvwm-themes as a window manager within 
>>> gnome as your desktop. In this situation you replace just the window 
>>> manager but the rest of the gnome destkop will still be running. To do this 
>>> you will have to configure gnome (I haven't used this in a long time so I 
>>> cannot answer on the paticulars here) to use fvwm/fvwm-themes as your 
>>> window manager.
>>>
>>> In the first method your logon and everything will be the same, you will 
>>> still have the gnome pannels, menus and configuring options, you will then 
>>> just have fvwm/fvwm-themes to configure on top of it.
>>>
>>> The Second Method: you will run fvwm/fvwm-themes as your sole desktop 
>>> window manager and not run it though gnome (i.e. you can scrape gnome 
>>> completely). To do this you need the details of how you log into X. Most 
>>> Ubuntu defaults will put you into gdm (gnome display manager) which will 
>>> launch X and either give you a graphical logon or automatically log onto an 
>>> account and into X.
>>>
>>> It is the job of gdm to know what desktop to run when you log into X, by 
>>> default this will be gnome, but it is possible to configure gdm to run any 
>>> other wm/desktop. So what you will want to do is configure gdm to launch 
>>> fvwm-themes instead of gnome when you log on. Once you do that you will log 
>>> into fvwm-themes.
>>>
>>> Once you have it setup how you want to use fvwm-themes (as a wm within 
>>> gnome or as a stand along wm) you will then configure it via its graphical 
>>> menus. For the most part I belive if you just select the 'cde' theme once 
>>> it will set it up as the default and load that theam each time you log into 
>>> fvwm-themes from that point on.
>>>
>>> Last if you don't like to use gdm as the display manager, xdm and wdm are 
>>> two alternatives. 
>>>> 4. How can I import the GNOME menus to my FVWM menu?  
>>> I know of no direct way to just import the menus, but you can get the 
>>> program menu to work in fvwm. Ubuntu (i.e. Debian) has a package called 
>>> 'menu' which is a script that creates a program menus for all the software 
>>> you have installed on your Ubuntu machine. You should have by default if 
>>> you are using the Debian fvwm package, you should have this menu and all 
>>> you have to do is call it. The menus name is just "/Debian", so if you call 
>>> Popup "/Debian" you should just get the debain menu that will have all the 
>>> programs.
>>>
>>> You will not of course have all the system menus and gdm menus integrated 
>>> since you won't be running gnome, but the software menu you can get just 
>>> fine.
>>>
>>> If Popup "/Debian" doesn't give you a menu, then you may not have a default 
>>> debian fvwm package and you may have to track down the script to generate 
>>> the debian menu in fvwm.
>>>
>>> Hope this is of some help,
>>>
>>> jaimos
>> If you use FVWM as your sole window manager (i.e., not through Gnome), a
>> way that worked for me is to use xdg_menu from ArchLinux to generate a
>> KDE (and Gnome, and LXDE, and XFCE) menu that I can put into my FVWM
>> menu, like so:
>>
>> PipeRead "/usr/local/bin/xdg_menu --format fvwm2 --root-menu
>> /etc/xdg/menus/gnome-applications.menu | sed -e 's/xdg_menu/gnome_menu/'
>> 2>/dev/null"
>> PipeRead "/usr/local/bin/xdg_menu --format fvwm2 --root-menu
>> /etc/xdg/menus/kde-4.3-applications.menu | sed -e 's/xdg_menu/kde_menu/'
>> 2>/dev/null"
>> PipeRead "/usr/local/bin/xdg_menu --format fvwm2 --root-menu
>> /etc/xdg/menus/lxde-applications.menu | sed -e 's/xdg_menu/lxde_menu/'
>> 2>/dev/null"
>> PipeRead "/usr/local/bin/xdg_menu --format fvwm2 --root-menu
>> /etc/xdg/menus/xfce-applications.menu | sed -e 's/xdg_menu/xfce_menu/'
>> 2>/dev/null"
>>
>> See http://www.mail-archive.com/fvwm@fvwm.org/msg01191.html for my
>> mailing list query about it.
>>
>> Jake Moe
>>
>> PS: I've got all four DE menus in there so I can try to compare them and
>> see which one I like best.  I've noticed since I've added this, that my
>> FVWM startup time has increased, but it's still quick enough for now. 
>> Eventually, I'll probably cut out three and stick with whichever menu I
>> like best.
> ________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> https://signup.live.com/signup.aspx?id=60969
If you're asking me to try putting those lines in those two files, then
I'm not sure it's going to work. I use Gentoo and only boot to a
command-line; I don't use gdm/kdm/xdm, so if I understand correctly, the
Xsession variable won't do anything for me. Plus, I don't have a
.xsession file in my home dir; my WM is controlled by a .xinitrc file.
In my .xinitrc, I've got:

~/.xinitrc
dbus-launch fvwm

HTH

Jake Moe

PS: Next time, reply to the whole list, because while I can't help you,
someone else may be able to.

Reply via email to