deb包装后的键盘快捷键

时间:2012-02-20 04:40:02

标签: ubuntu package debian deb

我正在制作一个简单的python程序的deb软件包(我称之为prang),它在当前鼠标指针处选择颜色并在文本中读出它的颜色,以便使用colorblind。

现在我希望在安装时为程序指定键盘快捷键。我希望在deb软件包的postinst文件中做到这一点:

#! /bin/sh

set -e
chmod -R a+rx /usr/share/prang
gconftool-2 --set /apps/metacity/keybinding_commands/command_11 --type string "/usr/bin/prang"
gconftool-2 --set /apps/metacity/global_keybindings/run_command_11 --type string "<Control><Alt>C"

exit 0
当从终端呼叫时,prang自己就好了。通过gconf-editor手动设置键盘快捷键可以正常工作。安装后在终端中运行gconftool-2命令也可以。但是通过postinst执行它不起作用。我哪里错了。

0 个答案:

没有答案