After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 434591 - Add pkgconfig file to locate where new keybindings should be installed
Add pkgconfig file to locate where new keybindings should be installed
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Keybinding
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-30 13:27 UTC by Bastien Nocera
Modified: 2007-05-02 13:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
control-center-pkgconfig-for-keybindings.patch (1.85 KB, patch)
2007-04-30 13:28 UTC, Bastien Nocera
none Details | Review
control-center-pkgconfig-for-keybindings-2.patch (1.85 KB, patch)
2007-04-30 14:21 UTC, Bastien Nocera
committed Details | Review
gnome-launch-box-use-custom-keybindings.patch (23.07 KB, patch)
2007-04-30 14:25 UTC, Bastien Nocera
rejected Details | Review

Description Bastien Nocera 2007-04-30 13:27:43 UTC
Right now, there's no easy way for 3rd-party packages to know where to install additional keybindings. This patch should fix it.

It was requested by Dave Reveman for compiz, I'm sure it would be useful for others.
Comment 1 Bastien Nocera 2007-04-30 13:28:11 UTC
Created attachment 87267 [details] [review]
control-center-pkgconfig-for-keybindings.patch
Comment 2 Bastien Nocera 2007-04-30 14:21:10 UTC
Created attachment 87268 [details] [review]
control-center-pkgconfig-for-keybindings-2.patch

Forgot to update the extra_dist and the targets properly
Comment 3 Bastien Nocera 2007-04-30 14:25:02 UTC
Created attachment 87269 [details] [review]
gnome-launch-box-use-custom-keybindings.patch

An example patch for gnome-launch-box to use the new custom keybindings.
Comment 4 Jens Granseuer 2007-04-30 15:53:55 UTC
Looks good, please commit.
Comment 5 Bastien Nocera 2007-04-30 16:11:44 UTC
2007-04-30  Bastien Nocera  <hadess@hadess.net>

        * configure.in: Generate a capplets/keybindings/gnome-keybindings.pc
        from the .in file

2007-04-30  Bastien Nocera  <hadess@hadess.net>

        * Makefile.am: upd
        * gnome-keybindings.pc.in: add a noarch pkgconfig file to allow
        applications to know where to add their keybindings
        (Closes: #434591)
Comment 6 Christian Persch 2007-05-01 14:27:58 UTC
+AM_PROG_CC_C_O

That looks unrelated...

+prefix=@prefix@
+pkgdatadir=@datadir@/@GETTEXT_PACKAGE@
+keysdir=${pkgdatadir}/keybindings

I'm sorry, but this is completely wrong. You need something like this:

prefix=@prefix@
datarootdir=@datarootdir@
datadir=@datadir@
pkgdatadir=${datadir}/@PACKAGE@
keysdir=${pkgdatadir}/keybindings

since capplets/keybindings/Makefile.am defines the directory to that.
Comment 7 Bastien Nocera 2007-05-02 13:18:22 UTC
(In reply to comment #6)
> +AM_PROG_CC_C_O
> 
> That looks unrelated...

It is, but was necessary for compilation with more recent versions of automake.

> +prefix=@prefix@
> +pkgdatadir=@datadir@/@GETTEXT_PACKAGE@
> +keysdir=${pkgdatadir}/keybindings
> 
> I'm sorry, but this is completely wrong. You need something like this:
> 
> prefix=@prefix@
> datarootdir=@datarootdir@
> datadir=@datadir@
> pkgdatadir=${datadir}/@PACKAGE@
> keysdir=${pkgdatadir}/keybindings
> 
> since capplets/keybindings/Makefile.am defines the directory to that.

You're right. I fixed it in SVN. Thanks for the eagle-eyed review :)

2007-05-02  Bastien Nocera  <hadess@hadess.net>

        * gnome-keybindings.pc.in: Fix keysdir substitution, as
        reported by Christian Persch <chpe@svn.gnome.org>
        (Closes: #434591)