You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
1021 B

  1. #!/bin/sh
  2. PKG_CONFIG_MODULES="glib-2.0 gtk+-3.0 gtksourceview-3.0 enchant iso-codes"
  3. echo_padded ()
  4. {
  5. echo -n " - $1 "
  6. N=$(echo -n $1 | wc -m)
  7. while test $N -le 20
  8. do
  9. echo -n " "
  10. N=`expr $N + 1`
  11. done
  12. }
  13. if (which gsettings >/dev/null)
  14. then
  15. echo "GSettings configuration dump:"
  16. gsettings list-recursively org.x.editor
  17. echo
  18. fi
  19. echo "Active plugins:"
  20. gsettings get org.x.editor active-plugins \
  21. | sed -r -e 's/^\[(.*)\]$/\1/' -e 's/, /\n/g' \
  22. | sed -e 's/^.*$/ - \0/'
  23. echo
  24. # Manually installed plugins (in $HOME)
  25. if [ -d $HOME/.config/xed/plugins ]
  26. then
  27. echo "Plugins in \$HOME:"
  28. ls $HOME/.config/xed/plugins/*.xed-plugin \
  29. | sed -r -e 's#.*/([^/]*)\.xed-plugin$# - \1#'
  30. else
  31. echo "No plugin installed in \$HOME."
  32. fi
  33. echo
  34. echo "Module versions:"
  35. if (which pkg-config > /dev/null)
  36. then
  37. for i in $PKG_CONFIG_MODULES
  38. do
  39. echo_padded "`echo -n $i | sed -r -e 's/^(.*)-[0-9]\.[0-9]$/\1/'`"
  40. pkg-config --modversion $i 2>/dev/null || echo
  41. done
  42. else
  43. echo " pkg-config unavailable"
  44. fi
  45. echo