Python-fu 插件在 Gimp 中不可见

Python-fu 插件在 Gimp 中不可见

我已经构建并安装了再合成器插件适用于 Linux 上的 GIMP。文件正确显示在插件目录中/usr/local/lib/gimp/2.0/plug-ins/,但 Gimp 中没有任何 Python 插件可用。例如,我需要的“滤镜 > 增强 > 修复选择”命令这个 photo@stack 答案, 不见了。

可执行文件(在本例中为“过滤器 > 地图 > 重新合成”)和 Script-Fu 插件可用。

Python-Fu 控制台也可用。

我在 Linux Mint 上使用 Gimp 2.8.6。

编辑 — 找到解决方案

未找到插件的原因是 Gimp/usr/local根本没有搜索路径。查看它扫描插件的文件夹,我得到了下面的输出。将插件复制到/usr/lib/gimp/2.0/plug-ins/解决了问题,Python-Fu 插件现在显示在菜单中。

$ LANG='en_US' strace gimp 2>&1 |grep -ne 'plug-ins'
3205:access("/home/simon/.local/share/gegl-0.2/plug-ins", F_OK) = 0
3206:stat("/home/simon/.local/share/gegl-0.2/plug-ins", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
3207:access("/home/simon/.local/share/gegl-0.2/plug-ins/Makefile", F_OK) = 0
3208:stat("/home/simon/.local/share/gegl-0.2/plug-ins", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
3209:openat(AT_FDCWD, "/home/simon/.local/share/gegl-0.2/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
3211:stat("/home/simon/.local/share/gegl-0.2/plug-ins/Makefile", {st_mode=S_IFREG|0644, st_size=660, ...}) = 0
14788:stat("/home/simon/.gimp-2.8/plug-ins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
14789:stat("/usr/lib/gimp/2.0/plug-ins", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
14790:openat(AT_FDCWD, "/home/simon/.gimp-2.8/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
14794:openat(AT_FDCWD, "/usr/lib/gimp/2.0/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10

答案1

一些 Linux 发行版将 GIMP Python 放在与 GIMP 不同的单独软件包中。这没问题 - 但是,在安装 GIMP 时默认不安装它应该被视为发行版的打包错误。趋势是 GIMP 越来越依赖于可用的 Python 扩展。

该软件包可能被命名为“gimp-python” - 检查它是否可用并安装它。

相关内容