# Tehdasasetusten palautus

## Overview

Resetting Musescore app preferences may be necessary if your app's preferences are corrupted. This deletes custom palettes and custom keyboard shortcuts, and clears out [links to recent scores under File menu and Home tab : Scores](https://handbook.musescore.org/fi/file-management/opening-and-saving-scores) but will not delete any score files.

Feel free to consult volunteers at <https://musescore.org/en/forum> before committing. Proceed at your own discretion, Muse Group and the online community are not responsible for any data loss.

## Reverting to factory settings from the menu

1. Select `Help`→`Revert to factory settings`.
2. Select `Revert` to reset.
3. Select `Restart` to restart the application.

## Reverting to factory settings from the command line

Jos MuseScore ei käynnisty, sinun on suoritettava tämä prosessi [komentoriviltä](https://handbook.musescore.org/fi/appendix/command-line-usage).

### Windows

lähde: <https://musescore.org/en/node/342982>

1. If you have MuseScore open, you need to close it first (`File`→`Quit`)
2. Avaa Suorita-valintaikkuna painamalla `Win`+`R`. Vaihtoehtoisesti voit valita hiirellä "Aloita" ja kirjoittaa "Suorita" ja klikata sitten "Suorita"-painiketta.
3. Click `Browse...`
4. Etsi tietokoneeltasi MuseScore4.exe. Sijainti voi vaihdella asennuksestasi riippuen, mutta se on luultavasti jotain vastaavaa kuin Oma tietokone → Paikallinen levy → Ohjelmatiedostot → MuseScore4 → bin → MuseScore4.exe.
5. Click `Open` to leave the Browse dialog and return to the Run dialog. The following text (or something similar) should display in the Run dialog

`C:\Program Files\MuseScore 4\bin\MuseScore4.exe`\
or\
`%ProgramFiles%\MuseScore 4\bin\MuseScore4.exe`

Windows Storen versiossa (Windows 10) se on melko hyvin piilotettu, etsi se Windowsin Resurssienhallinnan kautta.

6. Click after the quote and add a space followed by a hyphen and a capital F: `-F`
7. Press `OK`

Muutaman sekunnin kuluttua MuseScoren pitäisi käynnistyä ja kaikkien asetusten palautua "tehdasasetuksiin".

Edistyneille käyttäjille,

The main preference file is located at:\
`C:\Users\[USERNAME]\AppData\Roaming\MuseScore\MuseScore4.ini`\
or\
`%APPDATA%\MuseScore\MuseScore4.ini`

The recent list is located at:\
`C:\Users\[USERNAME]\AppData\Local\MuseScore\MuseScore4\recent_files.json`\
or\
`%LOCALAPPDATA%\MuseScore\MuseScore4\recent_files.json`

The other preferences (palettes, session, shortcuts, workspaces, logs, ...) are in:\
`C:\Users\[USERNAME]\AppData\Local\MuseScore\MuseScore4\`\
or\
`%LOCALAPPDATA%\MuseScore\MuseScore4\`

Windows Storen versiossa (Windows 10) nämä ovat melko hyvin piilossa, etsi niitä Resurssienhallinnan kautta.

### macOS

Tämän osion (macOS) ohjeita **ei ole testattu, eikä MuseScore 4:n macOS-kohtaisia testituloksia ole vielä löytynyt verkosta (lokakuu 2023)**. Seuraavat ohjeet on mukautettu MuseScore 3:n ohjeista: <https://musescore.org/en/handbook/3/revert-factory-settings>. Ole hyvä ja testaa ohjeet, korjaa mahdolliset virheet ja [poista tämä kappale](https://musescore.org/en/community-documentation).

1. If you have MuseScore open, you need to quit the application first (`MuseScore`→`Quit`)
2. Avaa Pääte (Ohjelmat/Lisäohjelmat-kansiosta tai Spotlight-haun kautta), jolloin istuntoikkunan pitäisi avautua.
3. Kirjoita (tai kopioi ja liitä) seuraava komento Päätteen komentoriville (lisää '/' alkuun):

`/Applications/MuseScore\ 4.app/Contents/MacOS/mscore -F`

This resets all MuseScore preferences to factory settings and immediately launches the MuseScore application. Note that you cannot quit the Terminal without quitting MuseScore. You can safely quit MuseScore, quit the Terminal, and then reopen MuseScore in the normal fashion, ready to continue using.\
For advanced users, the main MuseScore preference file is located at `~/Library/Preferences/org.musescore.MuseScore4.plist`. Often, deleting this file has no effect: macOS stores a cached copy of the settings in some unknown location. The correct way to delete this file, is by running the following command in the Terminal app:\
`defaults delete org.musescore.MuseScore4`

The other preferences (palettes, session, shortcuts, workspaces, logs,...) (Those are not cached by macOS.) are in\
`~/Library/Application\ Support/MuseScore/MuseScore4/`

### Linux

lähde : <https://musescore.org/en/node/345932>

Seuraava pätee Ubuntun kohdalla ja todennäköisesti kaikissa muissa Linux-jakeluissa sekä UNIX-tyyppisissä käyttöjärjestelmissä.

1. If you have MuseScore open, you need to quit the application first (`File`→`Quit`)
2. From the Ubuntu main menu, choose `Applications`→`Accessories`→`Terminal`. A Terminal session window should appear
3. Kirjoita (tai kopioi ja liitä) seuraava komento Päätteen komentoriville (`Ctrl`+`Shift`+`V`):

`mscore -F`\
Or\
`musescore -F`\
Or\
`mscore4portable -F`\
Or, if you are using the AppImage version, use the `cd` command to change directory to wherever you saved the AppImage. For example, if you saved it to your Desktop (and there is only one):\
`cd ~/Desktop`\
`./MuseScore*.AppImage -F`

Tämä nollaa kaikki MuseScoren asetukset tehdasasetuksiksi ja käynnistää sovelluksen välittömästi. Voit nyt sulkea Päätteen ja jatkaa MuseScoren käyttöä.

Edistyneille käyttäjille,

the main MuseScore preference file is located at\
`${XDG_CONFIG_HOME:-~/.config}/MuseScore/MuseScore4.ini`

The other preferences (palettes, session, shortcuts, workspaces,logs, …) are in\
`${XDG_DATA_HOME:-~/.local/share}/MuseScore/MuseScore4/`
