Score:3

gnome-text-editor always crashes because I opened a binary file with session restore enabled

pt flag

I've accidentally opened a binary file in gnome-text-editor, which caused the editor to hang. Since the session is restored, when I reopen the application, I cannot use gnome-text-editor anymore (it just always hangs).

I'm looking for the configuration or cache file so I can remove it or disable session reloading. Where can I find this?

Note that reinstalling the application did not help, neither did opening the application with any flag available in the help menu.

Edit; Running on Ubuntu 22.10, version: 43.1-1ubuntu1, target: amd64, installed via apt

ar flag
Always indicate the Ubuntu version in your question. If you are not using the default text editor in Ubuntu 22.10, indicate how you installed the app, via repository, snap or flatpack?
Score:3
it flag

The session state is stored in the file ~/.local/share/org.gnome.TextEditor/session.gvariant. Removing that file will delete the current session state.

Score:1
id flag

Have you tried to disable restoring session via gsettings?

gsettings set org.gnome.TextEditor restore-session false
pt flag
that does not work
Daria avatar
id flag
first check if restore-session value is set to false via `gsettings get org.gnome.TextEditor restore-session`, then try to open some text file with gnome-text-editor on terminal and look for error messages.
Score:-2
ph flag
NPP

use the following command in terminal:

/usr/bin/gnome-text-editor -i

David avatar
cn flag
It would be a good idea to say why.
pt flag
Unfortunately, non of the parameters to start a new session work
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.