3000
Commento:
|
7026
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 44: | Linea 44: |
== Introduzione a Webapp-container == 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)|| == Creazione di un file .desktop == Per avviare una webapp da interfaccia grafica è sufficiente creare: * un file `.desktop` contenente le istruzioni di avvio della webapp; * una icona `.png`. Per creare un file `.desktop`, procedere come segue: 0. fare clic con il tasto destro del mouse sullo spazio bianco di una directory e selezionare '''''Nuovo documento → DOcumento vuoto'''''. Dare un nome specifico al nuovo file appena creato, ad esempio `Test-webapp.desktop`. 0. aprire il file appena creato con un editor di testo e copiare al suo interno il testo seguente:{{{ [Desktop Entry] Name=Nome della webapp Comment=Commento per spiegare cosa fa la webapp Type=Application Icon=nome dell'icona Exec=webapp-container --name='Nome della webapp' --enable-back-forward --store-session-cookies --app-id=nomecartella --webappUrlPatterns=http://www.sito1.com/*,https://www.sito2.org/* http://www.sito1.com/homepage }}} |
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
Introduzione a Webapp-container
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) |
Creazione di un file .desktop
Per avviare una webapp da interfaccia grafica è sufficiente creare:
un file .desktop contenente le istruzioni di avvio della webapp;
una icona .png.
Per creare un file .desktop, procedere come segue:
fare clic con il tasto destro del mouse sullo spazio bianco di una directory e selezionare Nuovo documento → DOcumento vuoto. Dare un nome specifico al nuovo file appena creato, ad esempio Test-webapp.desktop.
aprire il file appena creato con un editor di testo e copiare al suo interno il testo seguente:
[Desktop Entry] Name=Nome della webapp Comment=Commento per spiegare cosa fa la webapp Type=Application Icon=nome dell'icona Exec=webapp-container --name='Nome della webapp' --enable-back-forward --store-session-cookies --app-id=nomecartella --webappUrlPatterns=http://www.sito1.com/*,https://www.sito2.org/* http://www.sito1.com/homepage
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