Tiny Core Extensions > TCE Bugs

Problem with 'flit' in TC10 and TC14

(1/2) > >>

socks:
I've been working at making TC10.1 and/or TC14 my main day to day OS

I wanted a simple gui clock and it seemed that TC's flit might do, but there is a problem.

On TC4.7.7 flit works as described in its 'help' without problems.
Initially there is no .flit.conf file in /home/tc, but if 'Save configuration' is selected from flit's right click popup menu,
the file appears, filled out with the default values of all adjustable items.
Items not accessible from flit's popup menu, can now be changed.

On TC10.1 and TC14, when 'Save configuration' is selected an empty .flit.conf file is created and flit shuts down. Sometimes there is a seg fault.
Starting with an empty .flit.conf results in the same behavior.

The help file from the popup menu says that the layout, syntax and other properties of .flit.conf should be preserved, when making changes.
But since the file is empty, there is no clue to its proper layout and syntax.

I got around this hurdle by copying .flit.conf from TC4.7.
Once the properly structured file is in place, flit behaves as advertised in TCs 10 & 14.
In particular, selecting 'Save configuration' no longer causes problems.

So I am happy with the workaround, but there is obviously a problem with flit

Juanito:
It sounds like the extension should install a default flit.conf when loaded - if you could attach the default created in tc-4.x, the extension can be modified.

Rich:
Hi Juanito
Attached is a more recent config file from:

--- Code: ---Current         2019/03/08 various sound fixes from Rich (juanito)
--- End code ---
The file goes in  usr/local/etc/.flit.conf  in the .tcz.

Also needs  flit.installed:

--- Code: ---#!/bin/sh
read USER < /etc/sysconfig/tcuser
[ -f /home/"$USER"/.flit.conf ] || cp /usr/local/etc/.flit.conf /home/"$USER"/
chown -R "$USER":staff /home/"$USER"/.flit.conf
--- End code ---

Rich:
Hi Juanito
Hold up on that change. I think socks has something
wrong in his setup. I just tried flit under TC10 and
flit was able to create a  .flit.conf  file on its own
just by using the save command.

Juanito:
Ah - too late, I just uploaded the changed extension to the tc-15.x x86 repo.

There's still a problem though (using Xorg-7.7):
--- Code: ---$ flit
No sound found!
X_GetImage: BadMatch (invalid parameter attributes) 0x42
[change clock to 24h, save config]
Segmentation fault
--- End code ---

..and ~/.flit.conf now has 0 bytes file size

Navigation

[0] Message Index

[#] Next page

Go to full version