Skip to content

Commit

Permalink
Create script to gather system information
Browse files Browse the repository at this point in the history
  • Loading branch information
Lythenas committed Mar 5, 2023
1 parent 223ff88 commit 4aa8e57
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version (please complete the following information):**
- Gnome version: [e.g. 43.3, you can see this in Settings > About]
- PaperWM version: [e.g. branch gnome-40, tag 38.2, if you are using develop please include the commit]
- Distribution: [e.g. Ubuntu 22.04, Arch Linux (optional)]
- Any other installed gnome extensions: [if you think they are related to the issue]
**System information:**
Please execute `./gather-system-info.sh` in you PaperWM clone and paste the output below.

```
Example:
Distribution: Arch Linux
GNOME Shell 43.3
PaperWM branch/tag: develop
PaperWM commit: 223ff883bca9bf20dbf066eceda891cb6e8be931
Enabled extensions:
- paperwm@hedning:matrix.org
- [email protected]
- [email protected]
- [email protected]
```

**Additional context**
Add any other context about the problem here.
37 changes: 37 additions & 0 deletions gather-system-info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
# Gather and print version information about the system.
#
# Expects the following commands to be available:
# - git
# - gnome-shell
# - gnome-extensions
# Optionally:
# - awk

REPO="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${REPO}"

echo "Please include this information in your bug report on GitHub!"

echo -n "Distribution: "
if [ -f /etc/os-release ]; then
source /etc/os-release && echo "${NAME}"
fi

gnome-shell --version

echo -n "PaperWM branch/tag: "
git symbolic-ref --short -q HEAD || git name-rev --tags --name-only --no-undefined "$(git rev-parse HEAD)"
echo -n "PaperWM commit: "
git rev-parse HEAD

echo "Enabled extensions:"
# make a markdown list out of gnome-extensions list
gnome-extensions list --enabled | {
if command -v awk >/dev/null; then
awk '{print "- " $0}'
else
cat
fi
}

0 comments on commit 4aa8e57

Please sign in to comment.