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

Add support for Chrome apps #326

Closed
inputsh opened this issue Jan 24, 2016 · 6 comments
Closed

Add support for Chrome apps #326

inputsh opened this issue Jan 24, 2016 · 6 comments
Labels
Need more information Question (Please follow the guidelines) Questions should not be asked on the issue tracker

Comments

@inputsh
Copy link

inputsh commented Jan 24, 2016

I noticed that I can't (or at least, I haven't found a way to) run Chrome apps with rofi. Chrome usually stores its .desktop files in ~/.local/share/applications/, but rofi does not recognize them. I have tried moving them to /usr/share/applications/, but that didn't work neither. I then tried adding an alias to them to my ~/.zshrc file like this:

alias kindle="/opt/google/chrome/google-chrome --profile-directory=Default --app-id=ecojfmkpfekmdhffinndgdcibnlehgig"

...but that didn't help neither. Any tips?

@DaveDavenport
Copy link
Collaborator

Can you be more clear?

 but rofi does not recognize them

What does this mean? it does not show up in rofi, nothing happens when trying to run them?
Aliasses are not 'discovered' by rofi because this is dependent on shell, see the bugtracker on how to integrate aliases for bash and zsh.

Can you pastebin one of the desktop files?

Also pastebin the commandline/config to launch rofi?

@DaveDavenport DaveDavenport added Question (Please follow the guidelines) Questions should not be asked on the issue tracker Need more information labels Jan 24, 2016
@DaveDavenport
Copy link
Collaborator

For aliases see: #97

@inputsh
Copy link
Author

inputsh commented Jan 24, 2016

Okay, I just did a bit of playing and it turns around I can execute them by typing:

/opt/google/chrome/google-chrome --profile-directory=Default --app-id=mkblfkpniaaiflmdhgopcaopmilgkcpa

...in my rofi, which would, in this case, run the web app for Facebook's messenger. However, doing so seems impossible because I would never be able to differentiate between them just by looking at the application's ID.

Here's one of the .desktop files an example:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Signal Private Messenger
Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app-id=bikioccmkafdpakkkcpdbppfkghcmihk
Icon=chrome-bikioccmkafdpakkkcpdbppfkghcmihk-Default
StartupWMClass=crx_bikioccmkafdpakkkcpdbppfkghcmihk

Now that I got that tip for including my aliases in the list of the commands, I will change my rofi command and then I should be able to execute kindle (for example) instead of typing /opt/google/chrome/google-chrome --profile-directory=Default --app-id=ecojfmkpfekmdhffinndgdcibnlehgig. Thanks for the tip!

@inputsh inputsh closed this as completed Jan 24, 2016
@DaveDavenport
Copy link
Collaborator

How do you start rofi? did you enable the DesktopFile run option (drun?)

@DaveDavenport
Copy link
Collaborator

if I start rofi -show drun -modi drun it works for me.

@github-actions
Copy link

github-actions bot commented Nov 4, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Need more information Question (Please follow the guidelines) Questions should not be asked on the issue tracker
Projects
None yet
Development

No branches or pull requests

2 participants