mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
dev-detect: Get env vars as a normal user
This commit is contained in:
+2
-3
@@ -34,6 +34,8 @@ if [[ "$1" != "--elevate" ]]; then
|
|||||||
else
|
else
|
||||||
OUT="pkexec not found${N}${N}`bash \"$ABSPATH\" --elevate`"
|
OUT="pkexec not found${N}${N}`bash \"$ABSPATH\" --elevate`"
|
||||||
fi
|
fi
|
||||||
|
OUT="${OUT}${N}${N}Environment:${N}`printenv | grep "QT\|XDG.*DESKTOP\|DISPLAY\|WAYLAND_DESKTOP\|XDG_SESSION_TYPE" 2>&1`"
|
||||||
|
OUT="${OUT}${N}\`\`\`${N}"
|
||||||
echo "$OUT" | gzip > "${OUTPATH}ckb-next-dev-detect-report.gz"
|
echo "$OUT" | gzip > "${OUTPATH}ckb-next-dev-detect-report.gz"
|
||||||
echo "Done! Please send the following report to the developers."
|
echo "Done! Please send the following report to the developers."
|
||||||
echo "Location: ${OUTPATH}ckb-next-dev-detect-report.gz"
|
echo "Location: ${OUTPATH}ckb-next-dev-detect-report.gz"
|
||||||
@@ -68,14 +70,11 @@ else
|
|||||||
OUT="${OUT}${N}${N}Daemon on last boot:${N}`journalctl -o short-precise -b -1 --unit=ckb-next-daemon 2>&1`"
|
OUT="${OUT}${N}${N}Daemon on last boot:${N}`journalctl -o short-precise -b -1 --unit=ckb-next-daemon 2>&1`"
|
||||||
fi
|
fi
|
||||||
OUT="${OUT}${N}${N}Dev nodes:${N}`find /dev/input/ckb* -print -type f -exec cat {} \; 2>&1`"
|
OUT="${OUT}${N}${N}Dev nodes:${N}`find /dev/input/ckb* -print -type f -exec cat {} \; 2>&1`"
|
||||||
OUT="${OUT}${N}${N}Environment:${N}`printenv | grep "QT\|XDG.*DESKTOP\|DISPLAY" 2>&1`"
|
|
||||||
OUT="${OUT}${N}${N}Kernel command line:${N}`cat /proc/cmdline`"
|
OUT="${OUT}${N}${N}Kernel command line:${N}`cat /proc/cmdline`"
|
||||||
GUIPATH="$(which ckb-next)"
|
GUIPATH="$(which ckb-next)"
|
||||||
OUT="${OUT}${N}${N}GUI ldd:${N}`ldd ${GUIPATH}`"
|
OUT="${OUT}${N}${N}GUI ldd:${N}`ldd ${GUIPATH}`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OUT="${OUT}${N}\`\`\`${N}"
|
|
||||||
|
|
||||||
# Print to stdout
|
# Print to stdout
|
||||||
echo "$OUT"
|
echo "$OUT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user