Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-01-17 20:53:53

LeonardoTevfik
Member
Registered: 2016-01-17
Posts: 1

Changing terminalfc file breaks the config

Greetings.

I'm a complete Linux newbie. Also, English is not my mother language. Please forgive any mistake.

I want to save different xfce4-terminal configs for different situations and switch them on the fly, but when I modify the file in any way, it stops working, and the terminal emulator reverts to its default config.

This is what I do:
- I change some settings via Edit / Preferences.
- I open ~/.config/xfce4/terminal/terminalrc with Sublime Text. I find the settings I changes via Edit / Preferences reflected on the file.
- I change something (or not; just tap CTRL + S).
- The terminal emulator reverts to the default config (white text black background), as if the file was corrupted by opening it.
- If I restart X, the file works correctly.

This doesn't work neither:
- I change some settings via Edit / Preferences.
- I copy terminalrc to a temp directory.
- I change some other settings via Edit / Preferences.
- I copy the previous file from its temp directory to ~/.config/xfce4/terminal
- The terminal reverts to the default config.
- If I restart X, the file works correctly.

Strangely, this does work:
- I change some settings via Edit / Preferences.
- I open terminalrc with nano and change something and save.
- The terminal reflects the changes correctly half a second later.

I'm perplexed by this problem. At first I thought Sublime Text was changing the format of the file (line endings, encoding or something), but the problem still persists when I copy a valid file.

Thanks for your time and help.

Last edited by LeonardoTevfik (2016-01-17 21:06:24)

Offline

#2 2016-01-18 11:58:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Changing terminalfc file breaks the config

Hello and welcome.

I also get inconsistent results when trying to change the settings as you outline. Which distro and which version of xfce4-terminal are you using?

Exactly which settings are you changing on the fly and why?
Here and here are threads that discuss using a secondary XDG_CONFIG_HOME and "--disable-server" to get separate xfce4-terminal configurations. And here (at post #5) discusses how you might be able to use PS1 prompt changes to change colours on the fly.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB