Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cecoates opened this issue Jan 7, 2017 · 5 comments
Open

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

cecoates opened this issue Jan 7, 2017 · 5 comments

Comments

@cecoates
Copy link
Contributor

cecoates commented Jan 7, 2017

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 cecoates changed the title Open folders / start .desktop and .sh files from File-finder in Linux. Start .desktop and .sh files from File-finder in Linux. Jan 7, 2017
@bayleedev
Copy link
Member

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

@cecoates
Copy link
Contributor Author

cecoates commented Jan 7, 2017

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
Copy link
Member

Thank you! [:

@cecoates
Copy link
Contributor Author

cecoates commented Jan 9, 2017

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
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants