Commit d271dedd authored by Steve Frécinaux's avatar Steve Frécinaux

Add X-GNOME-Bugzilla-ExtraInfoScript support to gedit.desktop

This will allow us to have informations about loaded plugins and plugins
installed in ~ without having to ask the bug reporter for those (more
accurate and efficient).

svn path=/trunk/; revision=5559
parent 51f4f12e
2007-03-07 Steve Frécinaux <code@istique.net>
* configure.ac: add AC_SUBST for an expanded version of $(libdir)
* data/gedit-bugreport.sh: script get additional informations for
BugBuddy reports. Currently shows what's the distro (using LSB) and
what plugins are enabled.
* data/gedit.desktop.in.in: add X-GNOME-Bugzilla-ExtraInfoScript key.
* data/Makefile.am: install the new script in $(libdir).
2007-02-28 Sebastien Bacher <seb128@ubuntu.com>
* gedit/gedit-python-module.c: (gedit_python_module_load):
......
......@@ -43,6 +43,26 @@ AC_PROG_MAKE_SET
dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
dnl ===============================================================
dnl Expanded dirs
dnl ===============================================================
# This macro expands DIR and assigns it to RET.
# If DIR is NONE, then it's replaced by DEFAULT.
# Based on AC_DEFINE_DIR
AC_DEFUN([GEDIT_FULLPATH], [
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
ac_expand=[$]$1
test "x$ac_expand" = xNONE && ac_expand="[$]$2"
ac_expand=`eval echo [$]ac_expand`
$3=`eval echo [$]ac_expand`
])
dnl FULL_LIBDIR is used for X-GNOME-Bugzilla-ExtraInfoScript expansion
dnl in data/gedit.desktop.in.in
GEDIT_FULLPATH(libdir, NONE, FULL_LIBDIR)
AC_SUBST(FULL_LIBDIR)
dnl ================================================================
dnl Gettext stuff.
......
......@@ -16,6 +16,9 @@ pkgconfig_DATA = gedit-@GEDIT_MAJOR@.pc
gedit-@GEDIT_MAJOR@.pc: gedit.pc
cp gedit.pc gedit-@GEDIT_MAJOR@.pc
bugreportdir = $(libdir)/gedit-2
bugreport_SCRIPTS = gedit-bugreport.sh
if GCONF_SCHEMAS_INSTALL
install-data-local:
if test -z "$(DESTDIR)" ; then \
......
#!/bin/sh
echo "Active plugins:"
gconftool-2 --get /apps/gedit-2/plugins/active-plugins \
| sed -r -e 's/^\[(.*)\]$/\1/' -e 's/,/\n/g' \
| sed -e 's/^.*$/ - \0/'
echo
# Manually installed plugins (in $HOME)
if [ -d $HOME/.gnome2/gedit/plugins ]
then
echo "Plugins in \$HOME:"
ls $HOME/.gnome2/gedit/plugins/*.gedit-plugin \
| sed -r -e 's#.*/([^/]*)\.gedit-plugin$# - \1#'
else
echo "No plugin installed in \$HOME."
fi
echo
......@@ -14,3 +14,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gedit
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Bugzilla-ExtraInfoScript=@FULL_LIBDIR@/gedit-2/gedit-bugreport.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment