xed/data/xed-bugreport.sh.in

52 lines
1021 B
Bash
Raw Permalink Normal View History

2011-11-07 13:46:58 -06:00
#!/bin/sh
PKG_CONFIG_MODULES="glib-2.0 gtk+-3.0 gtksourceview-3.0 enchant iso-codes"
2011-11-07 13:46:58 -06:00
echo_padded ()
{
echo -n " - $1 "
N=$(echo -n $1 | wc -m)
while test $N -le 20
do
echo -n " "
N=`expr $N + 1`
done
}
2013-01-24 13:44:32 -06:00
if (which gsettings >/dev/null)
then
echo "GSettings configuration dump:"
2016-01-25 08:13:49 -06:00
gsettings list-recursively org.x.editor
2013-01-24 13:44:32 -06:00
echo
fi
2011-11-07 13:46:58 -06:00
echo "Active plugins:"
2016-01-25 08:13:49 -06:00
gsettings get org.x.editor active-plugins \
| sed -r -e 's/^\[(.*)\]$/\1/' -e 's/, /\n/g' \
| sed -e 's/^.*$/ - \0/'
echo
2011-11-07 13:46:58 -06:00
# Manually installed plugins (in $HOME)
if [ -d $HOME/.config/xed/plugins ]
2011-11-07 13:46:58 -06:00
then
echo "Plugins in \$HOME:"
ls $HOME/.config/xed/plugins/*.xed-plugin \
| sed -r -e 's#.*/([^/]*)\.xed-plugin$# - \1#'
2011-11-07 13:46:58 -06:00
else
echo "No plugin installed in \$HOME."
fi
echo
echo "Module versions:"
if (which pkg-config > /dev/null)
then
for i in $PKG_CONFIG_MODULES
do
echo_padded "`echo -n $i | sed -r -e 's/^(.*)-[0-9]\.[0-9]$/\1/'`"
pkg-config --modversion $i 2>/dev/null || echo
done
else
echo " pkg-config unavailable"
fi
echo