nautilus-wallet
nautilus-wallet copied to clipboard
Add option to always open Nautilus in expanded view
From Discord:
Feature request, I'd like a toggle in settings for Nautilus to always open in expanded view.
Implementation details
-
Both Tab and Popup views must be called programmatically. Thus manifest's
default_popupproperty must be removed. -
The service worker must listen to the
onClickedevent, 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 withchrome.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
- Popup view must be the default action
- It must have a "switcher" for opt-in/out in the settings page