Problems with kwin and kwallet. **RESOLVED** Thanks to all.

Jonas Norlander jonorland at gmail.com
Fri Dec 12 11:36:43 UTC 2008


2008/12/12 Steven Vollom <stevenvollom at sbcglobal.net>:
>>So, when you close the "parent process" you close the
>>"child process" if it is still running.
>
> I am not sure I understand.  When I open the program by using a konsole, I am
> just opening the program, not making any kind of repair?

All programs is spawn/started by a parent program and becomes a child
to that program. If you terminate the parent program all children to
it will also be terminated (There are exception like daemons that
forking a child and then terminate itself
http://en.wikipedia.org/wiki/Daemon_(computer_software) ). The parent
to all children in a Unix environment is /sbin/init
http://en.wikipedia.org/wiki/Init that's the first program to be
started when you boot. If you install htop and run it from konsole and
pressing F5 you will see a tree view of all processes and with init at
the top.

> Is there a way so
> that I don't have to keep a shell open with kwin entered and still can have
> use of the desktop?
>
> Steven
>

My first though was to run it with nohup or detach. But nohup did not
work that way and detach is not available in ubuntu. I'm sure there is
a way to detach a process from its parent but could not figure it out
now so I forward the question.

Actually i did come up with a way before i hit the send button.

Start the program in konsole, put it to sleep with CTRL+Z then run bg
(background) to put it in the background and the then run disown to
disown/detach it from current shell. I tested it and it did work for
"normal" windows program but i don't know if it work for kwin.

ctrl+z: Is a standard way to put running programs to suspended/stopped
mode and restore your console prompt so can do other things. To see
your suspended and background processes run the jobs command.

bg: Is a bash built in command that will resume suspended jobs by
running them as background jobs. Without a job_id argument bg will
resume the first one in the job queue.

disown: disown prevents the current shell from sending a HUP signal to
each of the given jobs when the current shell terminates a login
session. If a job-id argument is omitted, the most recently started or
stopped background job is used.

/ Jonas




More information about the kubuntu-users mailing list