Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "AmbienteGrafico/Unity/Webapp"
Differenze tra le versioni 2 e 3
Versione 2 del 01/02/2017 15.47.58
Dimensione: 3000
Commento:
Versione 3 del 01/02/2017 17.32.45
Dimensione: 6042
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 44: Linea 44:
Per realizzare una nuova webapp in maniera semplice, è possibile utilizzare lo strumento '''webapp-container''' preinstallato in Ubuntu. Questo strumento è avviabile da terminale, digitando il comando:{{{
webapp-container --app-id=nome-cartella URL
}}} sostituendo il termine ''nome-cartella'' con il nome della cartella in cui si desidera salvare i dati di navigazione e ''URL'' con l'indirizzo internet del sito che si intende visualizzare. I dati raccolti da webapp-container vengono generalmente salvati in tre directory differenti:
 * `~/.cache/nome-cartella`
 * `~/.config/nome-cartella`
 * `~/.local/share/nome-cartella`

'''Webapp-container''' dispone di diverse opzioni di avvio e deve essere eseguito con la seguente sintassi:{{{
webapp-container [OPTION] [URL]
}}}
Le opzioni sono visualizzate di seguito:
|| -h, --help || display this help message and exit||
|| --fullscreen || display full screen||
|| --local-webapp-manifest || configure the webapp assuming that it has a local manifest.json file||
|| --maximized || opens the application maximized||
|| --inspector[=PORT] || run a remote inspector on a specified port or 9221 as the default port||
|| --app-id=APP_ID || run the application with a specific APP_ID||
|| --homepage=URL || override any URL passed as an argument||
|| --webapp=name || try to match the webapp by name with an installed integration script||
|| --name=NAME || display name of the webapp, shown in the splash screen||
|| --icon=PATH || Icon to be shown in the splash screen. PATH can be an absolute or path relative to CWD||
|| --webappModelSearchPath=PATH || alter the search path for installed webapps and set it to PATH. PATH can be an absolute or path relative to CWD||
|| --webappUrlPatterns=URL_PATTERNS || list of comma-separated url patterns (wildcard based) that the webapp is allowed to navigate to||
|| --accountProvider=PROVIDER_NAME || Online account provider for the application if the application is to reuse a local account.||
|| --accountSwitcher || enable switching between different Online Accounts identities||
|| --store-session-cookies || store session cookies on disk||
|| --enable-media-hub-audio || enable media-hub for audio playback||
|| --user-agent-string=USER_AGENT || overrides the default User Agent with the provided one.||
|| --open-external-url-in-overlay || if url patterns are defined, all external urls are opened in overlay instead of browser||
||<-2> Chrome options (if none specified, no chrome is shown by default): ||
|| --enable-back-forward || enable the display of the back and forward buttons (implies --enable-addressbar)||
|| --enable-addressbar || enable the display of a minimal chrome (favicon and title)||


Problemi in questa pagina? Segnalali in questa discussione

Introduzione

Questa guida spiega come installare delle webapp aggiuntive per accedere a differenti contenuti online direttamente dalla scrivania di Ubuntu.

Installazione

Le webapp sono realizzate per l'ambiente grafico Unity. Se si desidera utilizzarle sulle derivate di Ubuntu, è necessario installare il pacchetto webapp-container e tutte le sue dipendenze. Tale programma è invece preinstallato in Ubuntu.

È possibile installare diverse webapp in Ubuntu. Digitare nel terminale il seguente comando:

sudo apt install WEBAPP

e sostituire WEBAPP con una delle webapp elencate di seguito.

unity-webapps-amazoncloudreader    unity-webapps-bbcnews            unity-webapps-cnn-news
unity-webapps-common               unity-webapps-deezer             unity-webapps-dev
unity-webapps-deviantart           unity-webapps-facebookmessenger  unity-webapps-gmail
unity-webapps-googlecalendar       unity-webapps-googledocs         unity-webapps-googlenews
unity-webapps-googleplus           unity-webapps-googleplusgames    unity-webapps-grooveshark
unity-webapps-hulu-player          unity-webapps-lastfm-radio       unity-webapps-launchpad
unity-webapps-librefm              unity-webapps-linkedin           unity-webapps-livemail
unity-webapps-mail-ru              unity-webapps-newsblur           unity-webapps-pandora
unity-webapps-qml                  unity-webapps-qml-autopilot      unity-webapps-qml-doc
unity-webapps-qml-examples         unity-webapps-qq-mail            unity-webapps-reddit
unity-webapps-service              unity-webapps-tumblr             unity-webapps-twitter
unity-webapps-vkcom                unity-webapps-wordpress          unity-webapps-wordpress-com
unity-webapps-yahoomail            unity-webapps-yahoonews          unity-webapps-yandex-music
unity-webapps-yandexmail           unity-webapps-yandexmusic        unity-webapps-yandexnews
unity-webapps-youtube

Creazione di una nuova webapp

Per realizzare una nuova webapp in maniera semplice, è possibile utilizzare lo strumento webapp-container preinstallato in Ubuntu. Questo strumento è avviabile da terminale, digitando il comando:

webapp-container --app-id=nome-cartella URL

sostituendo il termine nome-cartella con il nome della cartella in cui si desidera salvare i dati di navigazione e URL con l'indirizzo internet del sito che si intende visualizzare. I dati raccolti da webapp-container vengono generalmente salvati in tre directory differenti:

  • ~/.cache/nome-cartella

  • ~/.config/nome-cartella

  • ~/.local/share/nome-cartella

Webapp-container dispone di diverse opzioni di avvio e deve essere eseguito con la seguente sintassi:

webapp-container [OPTION] [URL]

Le opzioni sono visualizzate di seguito:

-h, --help

display this help message and exit

--fullscreen

display full screen

--local-webapp-manifest

configure the webapp assuming that it has a local manifest.json file

--maximized

opens the application maximized

--inspector[=PORT]

run a remote inspector on a specified port or 9221 as the default port

--app-id=APP_ID

run the application with a specific APP_ID

--homepage=URL

override any URL passed as an argument

--webapp=name

try to match the webapp by name with an installed integration script

--name=NAME

display name of the webapp, shown in the splash screen

--icon=PATH

Icon to be shown in the splash screen. PATH can be an absolute or path relative to CWD

--webappModelSearchPath=PATH

alter the search path for installed webapps and set it to PATH. PATH can be an absolute or path relative to CWD

--webappUrlPatterns=URL_PATTERNS

list of comma-separated url patterns (wildcard based) that the webapp is allowed to navigate to

--accountProvider=PROVIDER_NAME

Online account provider for the application if the application is to reuse a local account.

--accountSwitcher

enable switching between different Online Accounts identities

--store-session-cookies

store session cookies on disk

--enable-media-hub-audio

enable media-hub for audio playback

--user-agent-string=USER_AGENT

overrides the default User Agent with the provided one.

--open-external-url-in-overlay

if url patterns are defined, all external urls are opened in overlay instead of browser

Chrome options (if none specified, no chrome is shown by default):

--enable-back-forward

enable the display of the back and forward buttons (implies --enable-addressbar)

--enable-addressbar

enable the display of a minimal chrome (favicon and title)

Cancellazione della cronologia

Per cancellare la cronologia della webapp comprese le password di accesso al wiki, rimuovere le seguenti cartelle:

  • ~/.local/share/ubuntu-it-doc

  • ~/.cache/ubuntu-it-doc

Rimozione della webapp

Ulteriori risorse


CategoryHomepage