zazu-file-finder icon indicating copy to clipboard operation
zazu-file-finder copied to clipboard

Start .desktop and .sh files from File-finder in Linux.

Open cecoates opened this issue 8 years ago • 5 comments

File-finder can locate .desktop and .sh files, but can't launch them to start a program.

Expected Behavior

Open Zazu and type the name of a program. Program appears in results. Select .sh/.desktop file in results to launch program.

Actual Behavior

Open Zazu and type the name of a program. Program appears in results. Select .sh/.desktop file in results to launch program. Nothing happens.

Steps to reproduce the behavior

Alt+Space to start Zazu. Type a program name. Select .sh/.desktop file.

Versions

Zazu: 2.3 OS: Linux debian 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux

GIT (if you have it installed):

Please, include a link to gist of most applicable ~/.zazu/log/ file.

cecoates avatar Jan 07 '17 09:01 cecoates

I hard a hard time following along, but it seems like this can be closed, right?

bayleedev avatar Jan 07 '17 18:01 bayleedev

Sorry I wasn't clear!

You can't launch programs from Zazu using .sh or .desktop files. It would be a neat enhancement if that were possible.

For example, if I type in "crashplan", it will find the crashplan.desktop file, but hitting enter won't do anything.

cecoates avatar Jan 07 '17 19:01 cecoates

Thank you! [:

bayleedev avatar Jan 08 '17 02:01 bayleedev

This unfortunately appears to be a bug with gvfs-open :-(

https://bugzilla.gnome.org/show_bug.cgi?id=343896

https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/378783

Currently I'm using the workaround suggested in the comments about Dex.

If you install Dex, and then create a dex.desktop file:

[Desktop Entry] Name=dex Comment=DesktopEntry Execution Exec=/usr/bin/dex %F Type=Application

in ~/.local/share/applications and /usr/bin/applications, and then associate .desktop files with dex.desktop, you can launch programs using the "open" command in Zazu:

http://cld.wthms.co/KJGF

Not sure if there's a more elegant workaround. If you click on a .desktop file in Nautilus, it seems to launch the program.

cecoates avatar Jan 09 '17 06:01 cecoates

This is fixed partly, .sh files are indexed, add your own directories at will.

You may assign this to me... Working on it.. Needs some work to read those files.

  • read .desktop files
  • find the icons and apply them
  • read the executable
  • remove the executables if found via appfinder (fancyness)

JeroenBoersma avatar Jan 12 '17 15:01 JeroenBoersma