[ANNOUNCEMENT] Updated: xinit-1.3.4-1 (Major overhaul of X session handling)

Nem W Schlecht nem@emptec.com
Fri Dec 5 14:51:00 GMT 2014


My solution was to write a quick C program that does nothing but block
on waiting to receive any signal.  I named it 'xnoexit' and I call it
from my .startxwinrc script in my home directory.  It's been working
well for me.   Sorry - I'm extra picky.  I didn't like seeing a
'sleep' in my 'ps' list.  Now I see 'xnoexit' and I know exactly
what's going on. :)

-----------cut
#include <signal.h>
main (argc, argv) int argv; int *argc[];
{
    sigset_t myset;
    (void) sigemptyset(&myset);
    while (1) {
        (void) sigsuspend(&myset);
    }
}
-----------cut

On Fri, Dec 5, 2014 at 7:35 AM, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> On 29/11/2014 20:19, Nem W Schlecht wrote:
>>
>> On Fri, Nov 28, 2014 at 8:46 PM, Marco Atzeri wrote:
>>>
>>> On 11/29/2014 3:05 AM, Nem W Schlecht wrote:
>>>>
>>>> * User-defined ~/.startxwinrc files must now be executable, the
>>>> final command therein must be run in the foreground, and that
>>>> command's exiting will end the X session, just like with startx
>>>> and ~/.xinitrc or ~/.Xclients.
>>>>
>>>> In most UNIX systems, this last command would be the window manager.
>>>> I'm not liking fbpanel (although I will give it a try) and I don't
>>>> like using an XTerm as my "last" command, since I often close/reopen
>>>> them all when making changes to my .bashrc/.bash_profile.
>>>>
>>>> Are there any suggestions from the list for some *other* program that
>>>> won't use any resources that I can use as my final foreground command?
>>>>    I don't want it to do anything, just not let X11 exit.
>
>>
>> I just want X11 to *not*
>> launch fbpanel and to *not* quit.  For now, I've settled on just
>> calling 'sleep' for 10 years.
>
> If you previously had an empty ~/.startxwinrc, I'd suggest putting 'sleep
> infinity' or even 'exec sleep infinity' into it.
>


-- 
Nem W Schlecht

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list