Bug 7273 - Display all configuration files found during the setup process to ease selection
Summary: Display all configuration files found during the setup process to ease selection
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.8 M3
Assignee: Alexandru Damian
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-02-02 17:17 UTC by Belen Barros Pena
Modified: 2015-11-27 11:54 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2015-02-02 17:17:32 UTC
When you set up Toaster, you are shown the different configuration files found one by one. If you select one by typing 'y', the configuration for that file is imported. If you type 'n' instead, you are shown the next configuration file found (if any, otherwise Toaster starts without importing any configuration file).

After some discussion, we have agreed that it might be easier to show all configuration files found on a list, from which users can select by typing a number. Something like so:

Toaster can use a configuration file to set up default project settings and layer information sources. Toaster will now list all the configuration files found in your computer. Select the configuration file you want to use by typing its number, or press Enter to skip this step:

[1] - /home/yocto/master/meta-yocto/conf/toasterconf.json
[2] - /home/yocto/dizzy/meta-yocto/conf/toasterconf.json
[3] - /home/yocto/something/meta-yocto/conf/toasterconf.json

Type the number of the file you want to use or press Enter to skip this step:

If Toaster only finds one configuration file, we can default to that one, like so:

Toaster can use a configuration file to set up default project settings and layer information sources. Toaster has found the configuration file "/home/user/poky/meta-yocto/conf/toasterconf.json". Do you want to use it? (Y/n):
Comment 1 Alexandru Damian 2015-02-05 12:15:49 UTC
Pushed for review on 

poky-contrib:adamian/20150204-bug-7283
Comment 2 Alexandru Damian 2015-02-11 11:48:08 UTC
Merged in master.
Comment 3 Alexandru Roman 2015-11-27 11:54:28 UTC
Verified.