nautilus-wallet icon indicating copy to clipboard operation
nautilus-wallet copied to clipboard

Add option to always open Nautilus in expanded view

Open capt-nemo429 opened this issue 3 years ago • 1 comments

From Discord:

Feature request, I'd like a toggle in settings for Nautilus to always open in expanded view.

capt-nemo429 avatar Sep 04 '22 21:09 capt-nemo429

Implementation details

  • Both Tab and Popup views must be called programmatically. Thus manifest's default_popup property must be removed.

  • The service worker must listen to the onClicked event, and once fired it needs to look at the local storage, using the sync API, and then open the selected view.

  • Popup opening: It looks like from Chrome 99, you can use chrome.action.openPopup() in combination with chrome.action.setPopup({ popup: "popup/index.html" }) to programmatically open it. Firefox compatibility should be investigated. This StackOverflow question has a lot of useful info: https://stackoverflow.com/questions/5544256/how-to-programmatically-open-a-chrome-extension-popup-window-from-background-htm

  • Tab opening: should be as simples as calling chrome.runtime.getURL("popup/index.html")

Remarks

  1. Popup view must be the default action
  2. It must have a "switcher" for opt-in/out in the settings page

arobsn avatar Aug 03 '24 13:08 arobsn