Solved

remove xlogout after changing from fvwm to windowmaker

Posted on 1998-12-08
7
332 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

864 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now