Opened 13 years ago

Last modified 2 years ago

#344 assigned enhancement

Unify file/folder names in ~/config/settings

Reported by: diver Owned by: nobody
Priority: low Milestone: Unscheduled
Component: - General Version: R1/Development
Keywords: R2 Cc:
Blocked By: Blocking: #2836
Has a Patch: no Platform: All

Description (last modified by humdinger)

Could we prettify ~/config/settings? Currently there is no standard settings names for apps/prefs some of them capitalized/underlined or have settings postfix. Maybe would be better to have a standart naming, such as for ex: "$app_name$_settings" or just "$app_name$" in the lower case or 1st letter in upper case like "$App_name$". screenshot of current name hell will follow.

Some folders could also do with a unified name, e.g. in Tracker there's DefaultFolderTemplates and DefaultQueryTemplates, but "Tracker New Templates".

Some folders are lower case, which should be upper case, e.g. deskbar, expander, pe.
What about boot, global, kernel, mime_db, printers, system?

Attachments (1)

settings.PNG (35.6 KB) - added by diver 13 years ago.
settings hell

Download all attachments as: .zip

Change History (18)

comment:1 Changed 13 years ago by diver

attachments.description: setings hellsettings hell

Changed 13 years ago by diver

Attachment: settings.PNG added

settings hell

comment:2 Changed 13 years ago by diver

Owner: changed from sikosis to axeld

comment:3 Changed 13 years ago by axeld

I would like that, too, but we'd need to "break" compatibility for that, ie. when upgrading to Haiku, you'd lose all your settings. Of course, we could make all apps be able to read old settings, but write their settings to a different place afterwards - but that's not very nice, and probably also just not worth the effort.

comment:4 Changed 13 years ago by korli

bug_group: developers

comment:5 Changed 13 years ago by axeld

Description: modified (diff)
Platform: All
Priority: normallow

comment:6 Changed 12 years ago by wkornewald

Do we want to do this, at all? This looks more like something for R2 when we define a real settings API which does this job, automatically.

comment:7 Changed 11 years ago by diver

Type: bugenhancement

comment:8 Changed 11 years ago by nielx

Milestone: R1Unscheduled

Change the milestone according to the type change of the ticket.

comment:9 Changed 10 years ago by diver

Component: Applications- General

I would agree with you 3 years ago, but since it already took 7 years for Haiku, I don't think this would "break" compatibility for that many people, but from consistent POV it would make more point to rename those settings.

comment:10 Changed 10 years ago by diver

Version: R1 development

Ping. Thoughts?

comment:11 Changed 10 years ago by jonas.kirilla

A settings class/API could create settings files of a specific type. This filetype could have attributes for the application name, version and the file's purpose, which the app would supply through the class.

To lessen the risk of name conflict the files' names would be based on the application signature, minus the "application/". Hide the filename column if you like and show only the attribute columns.

A single settings file might not be ideal for every application, so one could allow multiple files (adding a filename suffix) or opt for a folder with contents instead, using the same API.

If the class is made to look up the app name, signature and version on its own, then programmer "lazyness" (not supplying values, not having to invent a filename) might actually help create order.

comment:12 Changed 9 years ago by diver

Version: R1/pre-alpha1R1/Development

comment:13 Changed 5 years ago by waddlesplash

What's the status of this with the PM merge and all?

comment:14 Changed 5 years ago by humdinger

I don't think PM has changed anything about this "settings hell". The issue is still the same only 5 years have gone by... :)

FWIW, while we're repackaging apps for haikuports, I'm all for cleaning up where we can and go with "$app_name$_settings".

comment:15 Changed 5 years ago by humdinger

Description: modified (diff)
Keywords: R2 added
Summary: ~/config/settingsUnify file/folder names in ~/config/settings

comment:16 Changed 5 years ago by humdinger

Blocking: 2836 added

(In #2836) Merged with #344 that deals with similar things. Thanks, Diver!

comment:17 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.