Solved

remove xlogout after changing from fvwm to windowmaker

Posted on 1998-12-08
7
335 Views
Last Modified: 2013-12-16
My sysadmin setup the box to run fvwm window manager and xdm by default and I changed it to windowmaker.

At .xsession file, there's "exec xlogout -confirm" command that will display a logout button which I can press to logout from my session. I don't want to use this button with windowmaker and I prefer to choose "exit session" from windowmaker menu instead. So, I removed "exec xlogout -confirm" command from .xsession and this caused problem. Everytime I tried to login, the windowmaker started for a while, then I was sent back to xdm login&password window again.

How can I remove xlogout button, run windowmaker without any problem, and choose "exit session" from windowmaker menu to logout?

0
Comment
Question by:screwdriver
  • 4
  • 3
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812473
exec xlogout -confirm

didn't have a final  &  , while all other lines befor have one, right?
If so, you must remove the  &  right before the line you removed.
0
 

Author Comment

by:screwdriver
ID: 1812474
Yes, xlogout doesn't have & and I also don't have '&' right before the xlogout line.

Here is my .xsession looks like,

wmaker &
Xmailbox &
wmsetbg ~/picture/God2.jpg
sleep 2
exec xlogout -confirm


0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1812475
your X session is over when the last command in the .xsession file terminates.
So if you remove xlogout there are no more running programs inside this shell. You need to start at least one program which does not terminate or put itself in background.
See  man xdm  for more details.
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:screwdriver
ID: 1812476
I still have no time to try your solution. If I don't run wmaker in background, will this solve the problem?

What's the different if I put 'exec' and if I don't ?

 
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812477
exec is not the problem. Exec executes the specified program and replaces the current one (where exec is called).

If you start wmaker in foreground, I suggest to change the order in your .xsession file, 'cause all following lines will only be executed if wmaker terminates.
But this may couse problems with Xmailbox or wmsetbg, check your man-pages for that.

> no time to try ...
Hmm, takes about 2 minutes.
0
 

Author Comment

by:screwdriver
ID: 1812478
Ok, I understand now. Still haven't tried it yet.

> no time to try ...
Hmm, takes about 2 minutes.

Correct! But I have to walk to school for 30 minutes, can't try it from home. :)


0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812479
.. take bike (if possible) and it gets down to 10 minutes :-))
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question