Decouple screenshot script from Xmd, Xmd session from Mwm
This commit is contained in:
@@ -49,6 +49,11 @@ in their respective subdirectories:
|
|||||||
|
|
||||||
## Session
|
## Session
|
||||||
|
|
||||||
Xmd includes a startup script and assorted "glue code" to facilitate using it as
|
Xmd includes several scripts to facilitate using it as a desktop environment. It
|
||||||
a desktop environment. It can be installed using `./install.sh` in the `session`
|
can be installed using `./install.sh` in the `session` directory.
|
||||||
|
|
||||||
|
## Glue
|
||||||
|
|
||||||
|
Xmd includes some utility scripts to provide a standard interface for things
|
||||||
|
like screenshotting. These can be installed using `./install.sh` in the `glue`
|
||||||
directory.
|
directory.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
export XMD_SESSION_PID="$$"
|
||||||
|
|
||||||
export XMD_USERDIR="${HOME}/.Xmd"
|
export XMD_USERDIR="${HOME}/.Xmd"
|
||||||
mkdir -p "${XMD_USERDIR}"
|
mkdir -p "${XMD_USERDIR}"
|
||||||
|
|
||||||
@@ -26,4 +28,4 @@ else
|
|||||||
echo "!!! cant find $startupDir"
|
echo "!!! cant find $startupDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec mwm
|
sleep infinity
|
||||||
|
|||||||
8
session/src/xmd-end-session
Executable file
8
session/src/xmd-end-session
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$XMD_SESSION_PID" ]; then
|
||||||
|
echo "ERR session is not running (\$XMD_SESSION_PID not set)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
kill "$XMD_SESSION_PID"
|
||||||
Reference in New Issue
Block a user