tobychui / arozos

Web Desktop Operating System for low power platforms, Now written in Go!
https://os.aroz.org
GNU General Public License v3.0
2.01k stars 144 forks source link

[Feature request] Open URL Shortcut in new tab #166

Open khairul169 opened 4 months ago

khairul169 commented 4 months ago

Is your feature request related to a problem? Please describe. When you create a new URL desktop shortcut and clicked it, it will open an iframe window. There are some website/app that doesn't support iframe, or can't loaded properly.

Describe the solution you'd like Add an option to make URL shortcut opened in new tab.

Describe alternatives you've considered I saw that i can make these urls open in new tab by uncommenting this line.

Additional context Does this project open for contribution? If it is, i would like to create a pull request to add this feature. But i don't know where to store "open in new tab" flag for the shortcut. Should i make new shortcut type (something like url_open), or place it in new line after icon url: image

Thank you so much for developing this great project!

tobychui commented 4 months ago

Hi @khairul169

A shortcut in ArozOS is just a text file (as you have discovered) and you can always implement your own shortcut opener using agi scripting interface.

  1. Create your own shortcut opener WebApp
  2. Register your webapp to open files with .myshortcut extension (or whatever extension you like)
  3. (Optional) put the shortcut thumbnail into the ./.metadata/cache/ folder in 480 x 480px jpg / png
  4. Parse and do whatever you with your custom defined file format and metadata when the shortcut file is opened with your webapp

That way, you do not need to change the code of the ArozOS and you can create a user defined shortcut action 👍🏻