Persistent Settings #551

Open
opened 2019-09-17 05:16:16 +02:00 by xdmtk · 3 comments
xdmtk commented 2019-09-17 05:16:16 +02:00 (Migrated from github.com)

Hi,
I can't seem to find any sort of config files for the various prebuilt profiles. The default font-scaling is way too large. I've edited the font scaling in the settings menu, but these settings never persist. I've created new Terminal profiles, but they immediately disappear when I close the application or run a new instance of it.

Am I going crazy? I must be missing something very obvious, I'd be really surprised to find out these profiles are somehow embedded into the binary.

Thanks

Hi, I can't seem to find any sort of config files for the various prebuilt profiles. The default font-scaling is way too large. I've edited the font scaling in the settings menu, but these settings never persist. I've created new Terminal profiles, but they immediately disappear when I close the application or run a new instance of it. Am I going crazy? I must be missing something very obvious, I'd be really surprised to find out these profiles are somehow embedded into the binary. Thanks
sabrehagen commented 2019-10-27 07:07:55 +01:00 (Migrated from github.com)

Profiles are located in ~/.local/share/cool-retro-term/QML/OfflineStorage/Databases in a sqlite database. It's a shame the author did not follow the unix philosophy of making everything a file. Instead the config is stored as stringified JSON, for example:

[
  {
    "text": "Real Pretty",
    "obj_string": "{\"ambientLight\":0.1109,\"backgroundColor\":\"#000000\",\"bloom\":0.302,\"brightness\":1,\"burnIn\":0.1451,\"chromaColor\":0,\"contrast\":0.5977,\"flickering\":0,\"fontColor\":\"#ff007f\",\"fontName\":\"COMMODORE_64\",\"fontWidth\":1,\"glowingLine\":0.1041,\"horizontalSync\":0,\"jitter\":0,\"margin\":1,\"rasterization\":2,\"rbgShift\":0,\"saturationColor\":0,\"screenCurvature\":0.0256,\"staticNoise\":0,\"windowOpacity\":1,\"version\":2}",
    "builtin": false
  }
]
Profiles are located in ` ~/.local/share/cool-retro-term/QML/OfflineStorage/Databases` in a `sqlite` database. It's a shame the author did not follow the unix philosophy of making everything a file. Instead the config is stored as stringified JSON, for example: ``` [ { "text": "Real Pretty", "obj_string": "{\"ambientLight\":0.1109,\"backgroundColor\":\"#000000\",\"bloom\":0.302,\"brightness\":1,\"burnIn\":0.1451,\"chromaColor\":0,\"contrast\":0.5977,\"flickering\":0,\"fontColor\":\"#ff007f\",\"fontName\":\"COMMODORE_64\",\"fontWidth\":1,\"glowingLine\":0.1041,\"horizontalSync\":0,\"jitter\":0,\"margin\":1,\"rasterization\":2,\"rbgShift\":0,\"saturationColor\":0,\"screenCurvature\":0.0256,\"staticNoise\":0,\"windowOpacity\":1,\"version\":2}", "builtin": false } ] ```
xdmtk commented 2019-10-30 01:29:45 +01:00 (Migrated from github.com)

Nice, thank you. Can't say I would have been able to find that myself, as it doesn't seem to be documented anywhere. I could throw up a pull request to document this somewhere if that would be a good idea.

Also just to confirm the persistence issue, is this occurring for anyone else? I find it surprising that sqlite was utilized to be read-only.. That might be another useful feature to contribute, so long as this is indeed a bug..

Nice, thank you. Can't say I would have been able to find that myself, as it doesn't seem to be documented anywhere. I could throw up a pull request to document this somewhere if that would be a good idea. Also just to confirm the persistence issue, is this occurring for anyone else? I find it surprising that `sqlite` was utilized to be read-only.. That might be another useful feature to contribute, so long as this is indeed a bug..
nublug commented 2019-12-15 11:15:57 +01:00 (Migrated from github.com)

The only way I've gotten this to work is by creating a new profile with the settings as I want them, exporting the profile to a place of my choosing, then importing that profile on a new instance, and then calling that profile specifically when I open cool-retro-term with the -p option every time from then on. I use i3 so I was able to bind $mod+t to cool-retro-term -p MyProfile, and not have to type that out, but you could also set it up as an alias.

The only way I've gotten this to work is by creating a new profile with the settings as I want them, exporting the profile to a place of my choosing, then importing that profile on a new instance, and then calling that profile specifically when I open cool-retro-term with the -p option every time from then on. I use i3 so I was able to bind $mod+t to cool-retro-term -p MyProfile, and not have to type that out, but you could also set it up as an alias.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#551
No description provided.