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

Open from launcher with site name prefilled #19

Open
dar5hak opened this issue Sep 19, 2021 · 6 comments
Open

Open from launcher with site name prefilled #19

dar5hak opened this issue Sep 19, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@dar5hak
Copy link
Contributor

dar5hak commented Sep 19, 2021

Workflow

  1. The user types “github” into the launcher.
  2. They see an entry that goes like: “Open Obliviate for “github”.”
  3. On selecting that, the main Obliviate window opens with “github” prefilled.
@dar5hak dar5hak added the enhancement New feature or request label Sep 19, 2021
@quienn
Copy link

quienn commented Sep 26, 2021

I'm really curious. How will this exactly work? I'm not sure if there's a way to install and register Applications Menu plugins through flatpak. 😕 Only thing I could find about it are Desktop Entry actions which are really limited in functionality.

@dar5hak
Copy link
Contributor Author

dar5hak commented Sep 27, 2021

TBH I haven't explored this either. 😅

@quienn
Copy link

quienn commented Sep 28, 2021

The only safe and will-always-work way is building a plugin a then guiding users to install it through the terminal. I'll try to build something and let you know.

@dar5hak
Copy link
Contributor Author

dar5hak commented Sep 28, 2021

@ghsttwn I'm somewhat reluctant to ask people to open the terminal, so if that's the only way, I'd wait for there to be an official way to add launcher actions.

How does Calculator do it anyway?

@quienn
Copy link

quienn commented Sep 28, 2021

How does Calculator do it anyway?

Through a builtin plugin. 😕

We can also copy the Obliviate desktop entry at ~/.local/share/applications (with a new Exec field that launches the Flatpak app instead, of course) and programmatically add an action for each site that has been marked as "known" (copying the password for that site will add it to this "known" list). There's a couple things to look at:

  1. Will it work? I know you can override desktop entries by adding them to $HOME though I don't know if it works for Flatpacks.
  2. Is it sane? Probably not. 😕

@dar5hak
Copy link
Contributor Author

dar5hak commented Sep 28, 2021

Besides the fact that it would be a brilliant piece of engineering, it would require us to store (admittedly non-sensitive) information which can be read by other applications.

There's also a chance that this approach doesn't get accepted in review.

And moreover, it's just too much complexity for a feature that's not essential but nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants