bayleeadamoss / zazu-file-finder

A file finder for Zazu.
18 stars 11 forks source link

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

Open cecoates opened 7 years ago

cecoates commented 7 years ago

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.

bayleedev commented 7 years ago

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

cecoates commented 7 years ago

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.

bayleedev commented 7 years ago

Thank you! [:

cecoates commented 7 years ago

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.

JeroenBoersma commented 7 years ago

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.