No protection against duplicated names...
There is currently nothing that prevents the user to create 2 profiles with the same name, which leads to very erratic behaviors.
For instance, let's say I:
- save the current profile to "test"
- save the current profile again to "test"
- delete one of the 2 "test" profiles
In the xfce4-panel-profiles GUI, I'll still see one "test" entry, but behind the scenes, the corresponding config files/dir on the FS is destroyed.
As a consequence, if I now try to, e.g., export this remaining "test" profile, the app crashes!
You should really add a protection against creating 2 profiles with the same name!