mkropat / jumpapp

A run-or-raise application switcher for any X11 desktop
MIT License
639 stars 46 forks source link

Not Lauching Firefox, Clementine & Nautilus #47

Closed RilDev closed 5 years ago

RilDev commented 5 years ago

Hi there, thank you for the great app! I key binded all my favorite apps and it's a real time saver!

I noticed that jumpapp -r isn't launching apps like Unbutu's nautilus command nor firefox (installed in /opt/firefox and added to $PATH). But once launched, I can navigate to it with the shortcut jumpapp -r firefox.

All these work as expected when launched from the terminal. And I didn't experience any issues with chromium-browser.

Have a nice day!

mkropat commented 5 years ago

Thanks for the bug report.

Is the problem specific to using the -r option? Is jumpapp firefox able to start Firefox (when it's not running)?

All these work as expected when launched from the terminal.

So when you run firefox from the terminal it starts as expected? What happens when you run jumpapp firefox directly from the terminal (not through a key binding or anything like that)? Does it still exhibit the issue?

RilDev commented 5 years ago

jumpapp firefox and jumpapp -r firefox both work from the terminal!

One major difference between firefox and other apps working with keybinding is that:

Maybe it is something to do with soft links?

Rublis commented 5 years ago

You can try to bind something like this: jumpapp -r firefox &> /tmp/output and using keybinding check /tmp/output for errors. It that doesn't help, You can create new executable with same content and bind that executable. Than You should be able to see where the problem are.

Rublis commented 5 years ago

And also You can try to use full path to firefox executable. To get it, simply type: whereis firefox and it will output files found from $PATH. It will output something like: /usr/bin/firefox, than use: jumpapp -r /usr/bin/firefox as a binding

Rublis commented 5 years ago

My setup: shortcuts

RilDev commented 5 years ago

Thank you that last option worked!

So I entered whereis firefox and got this output:

firefox: /usr/lib/firefox /etc/firefox /opt/firefox/firefox /opt/firefox/firefox.sig

I then binded jumpapp -r /opt/firefox/firefox to the F3 key. I chose /opt/firefox/firefox because it is where the program is installed on my computer.

And it worked!

Thanks for your help! And for sharing your setup, I didn't consider using the Super key until now!

Rublis commented 5 years ago

Happy to help ;) And yeah, from my experience Super button is perfect fit!

RilDev commented 5 years ago

For future readers: To map the short-cut key to nautilus I did the following:

And it worked!

PS: to use your mouse even less, you can use Saka Key, a browser extension (Chrome & Firefox) that allows you to navigate the internet using only your keyboard!

mkropat commented 5 years ago

PS: to use your mouse even less, you can use Saka Key, a browser extension (Chrome & Firefox) that allows you to navigate the internet using only your keyboard!

That's a good suggestion. I'm a happy Saka Key user myself. I went and updated the jumpapp README to suggest Saka Key and a few other programs, since everyone coming to jumpapp might not be aware of the keyboard workflow possibilities.