mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-11 19:25:49 +01:00
Initial revision
This commit is contained in:
42
util/bughint
Executable file
42
util/bughint
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Use this to gather data about your system and send me
|
||||
# the sysinfo.txt file with your bugreport, plus any error
|
||||
# messages you've received. This program should be run under X.
|
||||
#
|
||||
|
||||
|
||||
echo gathering information for bug tracking...
|
||||
|
||||
uname -a > sysinfo.txt
|
||||
echo "=============== xdpyinfo ================" >> sysinfo.txt
|
||||
xdpyinfo >> sysinfo.txt
|
||||
echo "=============== env ================" >> sysinfo.txt
|
||||
env >> sysinfo.txt
|
||||
echo "=============== ldconfig ================" >> sysinfo.txt
|
||||
if [ `uname` = 'Linux' ]; then
|
||||
/sbin/ldconfig -p >> sysinfo.txt
|
||||
else
|
||||
/sbin/ldconfig -r >> sysinfo.txt
|
||||
fi
|
||||
echo "=============== config.cache ================" >> sysinfo.txt
|
||||
cat ../config.cache ../Version >> sysinfo.txt 2> /dev/null
|
||||
cat config.cache Version >> sysinfo.txt 2> /dev/null
|
||||
|
||||
echo "=============== configuration dir ===========" >> sysinfo.txt
|
||||
WDIR=$HOME/gnustep/Library/WindowMaker
|
||||
if [ -d $WDIR ]; then
|
||||
for i in preferences menu app_options winitrc shortcuts; do
|
||||
if [ -f $WDIR/$i ]; then
|
||||
echo "============== $i ========" >> sysinfo.txt
|
||||
cat $WDIR/$i >> sysinfo.txt
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "No config directory found" >> sysinfo.txt
|
||||
fi
|
||||
|
||||
gzip -9 sysinfo.txt
|
||||
|
||||
echo done.
|
||||
Reference in New Issue
Block a user