obliviate icon indicating copy to clipboard operation
obliviate copied to clipboard

Open from launcher with site name prefilled

Open dar5hak opened this issue 3 years ago • 6 comments

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 avatar Sep 19 '21 06:09 dar5hak

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.

quienn avatar Sep 26 '21 23:09 quienn

TBH I haven't explored this either. 😅

dar5hak avatar Sep 27 '21 04:09 dar5hak

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.

quienn avatar Sep 28 '21 15:09 quienn

@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?

dar5hak avatar Sep 28 '21 16:09 dar5hak

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. 😕

quienn avatar Sep 28 '21 18:09 quienn

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.

dar5hak avatar Sep 28 '21 19:09 dar5hak