summaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:35 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:35 +0200
commitd0aaad443a88968dc61172c050084d3d9faa7602 (patch)
treeba9356dd1659416b3217c19bbebda413b8786021 /src/main.vala
parentd443a3c2509889533ca812c163056bace396b586 (diff)
New upstream version 0.32.2upstream/0.32.2
Diffstat (limited to 'src/main.vala')
-rw-r--r--src/main.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.vala b/src/main.vala
index cdc9b27..32e3d83 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -410,7 +410,12 @@ void main(string[] args) {
window.set_title (_("Choose Shotwell's profile"));
var browser = new Shotwell.ProfileBrowser();
browser.profile_activated.connect((profile) => {
- CommandlineOptions.profile = profile;
+ if (profile.id != Shotwell.Profile.SYSTEM) {
+ CommandlineOptions.profile = profile.name;
+ CommandlineOptions.data_dir = profile.data_dir;
+ } else {
+ CommandlineOptions.profile = null;
+ }
window.response(Gtk.ResponseType.OK);
});
window.get_content_area().add(browser);