After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 74057 - profile editor should pop up a warning if two profiles would have the same name
profile editor should pop up a warning if two profiles would have the same name
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
list-kmaraas
Depends on:
Blocks:
 
 
Reported: 2002-03-09 12:57 UTC by Avirupa Chakrabarty
Modified: 2005-07-01 23:39 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch (1.22 KB, patch)
2004-12-20 13:03 UTC, egeetha
none Details | Review

Description Avirupa Chakrabarty 2002-03-09 12:57:45 UTC
Reproducibility: Always
Procedure:
1. Start up the gnome terminal and select 'Edit: Profiles... ' option from 
the main menu bar. The 'Manage terminal profiles' dialog box comes up.
2. Click on the 'New...' button. The 'New terminal profile' dialog box 
comes up. Type any name for a profile and clock on the 'Create button. The 
new profile gets created.
3. Repeat steps 1 and 2 and try to create another profile with the same 
name. An error message comes up saying that that profile already exists. 
Repeat steps 1 and 2 and create a profile with a different name.
4.Switch to the profile created by selecting it from the list 
under 'Terminal: Profile'. Then select 'Edit: Current profile...' option. 
The 'Editing profile' dialog box comes up.
5.In the 'General' tab replace the name in the 'Profile name' text box 
with the name of an existing profile. Replace the name from the 'Initial 
title' text box in the 'Title and Command' tab with the name same name of 
an existing profile.Close the dialog box.
6.Select'Terminal: Profile' option to see the list of the existing 
profiles. There exists two profiles with the same name.
How can two profiles have the same name?

This testing has been done on the recent build of Gnome 2.0 done on 
09/03/2002. Version of Gnome terminal is 1.91
Comment 1 Havoc Pennington 2002-03-09 17:10:19 UTC
I don't think this is a big deal; it's quite hard to validate and
introduces thorny questions about how to type in the name "foobar" if
you have a profile named "foo"

gnome-terminal won't break if you have duplicate names, and users will
know how to fix it if they have duplicate names.

So I think it's best to just avoid the code/UI complexity and let you 
name things the same if you want.
Comment 2 Avirupa Chakrabarty 2002-03-10 12:38:45 UTC
Is not this very weird? If this is not a big deal and if it is 
assumed that the user can fix theproblem of having duplicate names 
then why does the error message comes when we are trying to create a 
new profile with a name that already exists? One should be able to 
create profiles with duplicate name also then. Otherwise everything 
becomes inconsistent. 
Comment 3 Havoc Pennington 2002-03-10 13:01:01 UTC
Yeah that's a bit strange. We could change the dialog to be "are you
sure you want two profiles with the same name?" maybe. But I don't
think it matters very much.
Comment 4 Avirupa Chakrabarty 2002-03-19 05:30:18 UTC
I think it matters to a user specially when there is an error message 
coming up while trying to create a profile with the same name. I 
think this incinsistency should be removed. Or else the error message 
should be reframed as you said, Havoc. I would prefer to close the 
bug only after the inconsistency is removed.
Comment 5 Luis Villa 2002-03-27 19:32:45 UTC
I'm retitling to make this a little easier to understand/find, and
correcting the severity. Since the feature /works/ even if it is a bit
confusing, it is not major.
Comment 6 egeetha 2004-12-20 13:03:29 UTC
Created attachment 35044 [details] [review]
Proposed patch

Proposed patch to ask the user's option before creating a new profile with the
same name as an existing profile.
Comment 7 Kjartan Maraas 2005-02-16 10:40:02 UTC
Should go in when the freezes lift again. Too late for 2.10.0 I guess.
Comment 8 Kjartan Maraas 2005-07-01 23:39:02 UTC
Commited to HEAD.