I'm running xfce4-screenshooter 1.8.2-2 on Xubuntu 17.10, and after I installed GIMP 2.8.22 via flatpak, Open with GIMP stopped working. Running xfce4-screenshooter on the command-line, and asking it to open the screenshot with GIMP generates these error messages: paulo@monk:~/tmp$ xfce4-screenshooter paulo@monk:~/tmp$ Usage: /usr/bin/flatpak [OPTION…] COMMAND Builtin Commands: Manage installed apps and runtimes install Install an application or runtime update Update an installed application or runtime uninstall Uninstall an installed application or runtime list List installed apps and/or runtimes info Show info for installed app or runtime config Configure flatpak Finding applications and runtimes search Search for remote apps/runtimes Running applications run Run an application override Override permissions for an application make-current Specify default version to run enter Enter the namespace of a running application Manage file access document-export Grant an application access to a specific file document-unexport Revoke access to a specific file document-info Show information about a specific file document-list List exported files Manage remote repositories remotes List all configured remotes remote-add Add a new remote repository (by URL) remote-modify Modify properties of a configured remote remote-delete Delete a configured remote remote-ls List contents of a configured remote remote-info Show information about a remote app or runtime Build applications build-init Initialize a directory for building build Run a build command inside the build dir build-finish Finish a build dir for export build-export Export a build dir to a repository build-bundle Create a bundle file from a ref in a local repository build-import-bundle Import a bundle file build-sign Sign an application or runtime build-update-repo Update the summary file in a repository build-commit-from Create new commit based on existing ref repo Print information about a repo Help Options: -h, --help Show help options error: Unknown command '/tmp/Screenshot_2018-03-31_09-35-00.png' Here's the Exec entry from the desktop file flatpak installed for GIMP (/var/lib/flatpak/exports/share/applications/org.gimp.GIMP.desktop): Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gimp-2.8 --file-forwarding org.gimp.GIMP @@u %U @@
Are you able to build and test xfce4-screenshooter from git master? The way commands are handled has changed due bug #13886, perhaps by luck it's compatible with flatpak. That change will be available in the 1.9.2 release, to be released "soon" (it could be next week, month... =D).
> Are you able to build and test xfce4-screenshooter from git master? I've just tried, but got stuck midway: 1. git clone git://git.xfce.org/apps/xfce4-screenshooter 2. Ran autogen.sh, and kept installing the packages it complained missing. First xfce4-dev-tools, and then libxfce4panel-2.0-dev libxfce4panel-2.0-dev is installed: paulo@monk:~/src/xfce4-screenshooter$ apt policy libxfce4panel-2.0-dev libxfce4panel-2.0-dev: Installed: 4.12.1-1ubuntu1 Candidate: 4.12.1-1ubuntu1 Version table: *** 4.12.1-1ubuntu1 500 500 http://archive.ubuntu.com/ubuntu artful/universe amd64 Packages 100 /var/lib/dpkg/status but autogen.sh still complains it can't find it: checking for libxfce4panel-2.0 >= 4.12.0... not found *** The required package libxfce4panel-2.0 was not found on your system. *** Please install libxfce4panel-2.0 (atleast version 4.12.0) or adjust *** the PKG_CONFIG_PATH environment variable if you *** installed the package in a nonstandard prefix so that *** pkg-config is able to find it. I listed libxfce4panel-2.0-dev: paulo@monk:~/src/xfce4-screenshooter$ dpkg -L libxfce4panel-2.0-dev /. /usr /usr/include /usr/include/xfce4 /usr/include/xfce4/libxfce4panel-2.0 /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel-config.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel-enum-types.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel-enums.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/libxfce4panel.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-arrow-button.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-convenience.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-image.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-plugin-provider.h /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-plugin.h /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/pkgconfig /usr/lib/x86_64-linux-gnu/pkgconfig/libxfce4panel-2.0.pc /usr/share /usr/share/doc /usr/share/doc/libxfce4panel-2.0-dev /usr/share/doc/libxfce4panel-2.0-dev/copyright /usr/lib/x86_64-linux-gnu/libxfce4panel-2.0.so /usr/share/doc/libxfce4panel-2.0-dev/changelog.Debian.gz and the tried to run this before autogen.sh: export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig but autogen.sh still couldn't find it. I suspect I'm missing something very very basic here. Could you point me to the right direction ?
Found the solution here: https://forum.xfce.org/viewtopic.php?id=11469 Had also to install package: xfce4-panel-dev Just to leave it documented in case someone bumps into the same problem, had to install all these package dependencies: xfce4-dev-tools xfce4-panel-dev libxfce4panel-2.0-dev libxfce4ui-2-dev libsoup2.4-dev libexo-2-dev And yes, it does open flatpak GIMP ! Thanks !