Board.KolibriOS.org

Official KolibriOS board
It is currently Thu Nov 14, 2019 4:36 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 43 posts ]  Go to page Previous 1 2 3
Author Message
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 12:10 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Years have passed and the urge to store settings in .ini file have risen again.

I propose to commit a new program that loads settings from .ini and applies them to kernel at launch.
This will replace setup application and setup.dat

There is no gui, but settings can be easily changed with any text editor. If somebody feels the urge, they can still write a GUI.

system.ini would look like this:
Code:
[system]
skin=      ; for example: /sys/default.skn
volume=10
language=en   ; Use ISO 639-1 language codes
keyboard=us   ; Use ISO 3166-1 country codes 
speaker=on

[mouse]
speed=2
delay=10

[low-level]   ; Low level access for applications
PCI=on
LBA=off

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 1:00 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
Quote:
Years have passed and the urge to store settings in .ini file have risen again.
It spreads, like a plague, consuming everything on it's pass...

But I personally, have thirst to get rid of that annoying image, to just put kernel on disk or some folder.


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 1:13 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
What does this have to do with my proposal? Do you agree, disagree or just don't care?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 1:45 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
I wander, can I set the 1680x1050 video mode through "vbemode" setting? I did not manage to load KOS with extended primary loader, so maybe this will work?


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 1:54 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
Current idea is just to set all personal configuration into single ini file that can be easily changed by any program: when you set desktop image, change skin, volume, mouse settings, etc - all this points will be saved into ini file and loaded at system start-up.

I think that is very good undertaking.

_________________
Через тернии к звездам


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Aug 02, 2015 2:39 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
... yes, it should have been renamed to "Settings", "Setup" is totally misleading.
Is it so bad, that can not be upgraded?


Top
   
 Post subject: Re: SETUP
PostPosted: Wed Oct 21, 2015 3:00 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
revision #5854
Using system.ini for settings.


Top
   
 Post subject: Re: SETUP
PostPosted: Wed Oct 21, 2015 3:57 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
То, о чем я давно мечтал. Не хватает еще настройки для скина и обоев.
Запилил сохранение и загрузку настроек мыши через system.ini viewtopic.php?f=48&t=3095&p=62822#p62822

_________________
Через тернии к звездам


Top
   
 Post subject: Re: SETUP
PostPosted: Wed Dec 16, 2015 4:54 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
rev #5973
Apply double_click_delay setting from ini file.

_________________
Через тернии к звездам


Top
   
 Post subject: Re: SETUP
PostPosted: Thu Sep 28, 2017 12:50 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
Вынос настройки языка в INI файл сейчас работает не верно.
По-умолчанию пункт language=en нужно удалить из SYSTEM.INI,
в этом случае при запуске SETUP, он должен браться из сисфункции 26.5.

Сейчас же получается нужно дублировать SYSTEM.INI для каждого языка в папке svn://data/, зачем, если ядро и так компилируется с определенным языком.

Из-за этого уже непрвильный язык отображается в программе DRVINST (я потратил какое-то время, чтобы понять в чем проблема).

_________________
Через тернии к звездам


Top
   
 Post subject: Re: SETUP
PostPosted: Sun Mar 10, 2019 2:53 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
Pathoswithin
Напоминаю про баг выше, его нужно исправить.

_________________
Через тернии к звездам


Top
   
 Post subject: Re: SETUP
PostPosted: Tue Mar 12, 2019 3:52 am 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 434
Leency,
I fixed this in the kernel, r7601.
Remove 'language=en' from system.ini if my fix did what you asked for.


Top
   
 Post subject: Re: SETUP
PostPosted: Tue Mar 12, 2019 2:47 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5064
Thanks a lot! Now it is fixed.

_________________
Через тернии к звездам


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 43 posts ]  Go to page Previous 1 2 3

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited