-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create script to gather system information
- Loading branch information
Showing
2 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|