Create Multiple Profiles

edited August 15, 2024
In Windows 10, Zotero 7.0.

I was trying to create multiple profiles, but can't understand the method presented in the post "start > kb > multiple_profiles -> How can I use multiple profiles in Zotero?"
The post explains that on creating a new profile (with -p argument), Zotero will create a new profile folder [that will contain a clean database??] for the new profile. However, it also states that this doesn't always happen.
Is there some way of making it happen?

The post also states "If you see your existing data directory in the new profile, create a new data directory manually..." I'm completely stumped by this text:
Should it read "If you don't see..."?
How do I find the existing data directory in the new profile? What do I name the new data directory? Do I copy the default one? To what path?

Regards,
Lou.

PS: There is no new profile under
"D:\Users\\AppData\Roaming\Zotero\Zotero\Profiles\
"ze91esr8.default" is the default profile, I guess.

Is the new profile on a different path?? Its not in the "...\Local\..." path.

PPS: Is it possible that creating a new profile folder works under Linux and not under Windows? I've read that some people have it work, but it seems to do so under Linux. Does anyone know for sure?
  • edited August 16, 2024
    A new profile is usually associated with a new, different library, so the sentence in the docs "If you see your existing data directory in the new profile, create a new data directory manually..." is correct - you should *not* generally see the data from your original library in the new profile.
    https://www.zotero.org/support/kb/multiple_profiles

    When you start Zotero with the -P option "The Profile Manager window should appear, allow you to select, create, and delete Zotero profiles." That's where you ask it to create a new profile in the same Profiles parent folder. You then start Zotero with the -P in the same way moving forward. You select which of your profiles you want to use for every session.

    The (different) location of the data directory is set for each profile under Advanced preferences.
    https://www.zotero.org/support/preferences/advanced#files_and_folders
    https://www.zotero.org/support/zotero_data

    You don't have to use the command line window to start with the -P option each time. Just add the -P suffix to the end of the shortcut that starts Zotero in your OS.
  • You don't need to edit the shortcut either. You just need to start it once with -P (e.g., via the Run dialog) and make sure "Use the selected profile without asking at startup" is unchecked.

    But I would just reiterate that this is, indeed, an advanced configuration that we can't really spend much time providing support for.
  • Thanks to tim820 and dstillman for your replies.
    @tim820: Re: "you should *not* generally see the data from your original library in the new profile."
    That's exactly the point. I DO see the data from the default profile even though I tried to create a new profile using exactly the process that you described. There doesn't seem to be a new profile file anywhere on the hard drive - not having the profile name that I chose . There is no second file in the Profiles folder. I checked thoroughly. I don't have an online account and do not sync the data. I am familiar with the setting of the Data Directory through the Zotero GUI and have done it many times. I am familiar with command line arguments and so have added the -P argument in the properties of the shortcut to the executable, so that the Profile Manager always appears.

    Again, this is a Windows 10 OS and permissions may be the problem although I have found all permissions set for my ownership. I only use one Windows user account. Other posts seem to use Linux, so perhaps it works there.

    @dstillman: Thanks, but I am aware of the command line usage.
    Re: "we can't really spend much time providing support for. " Aren't you already doing that? Wouldn't it be best to automate this process and get these questions off your development list.
  • edited August 16, 2024
    It is automated — Firefox's profile system is a built-in feature and we (try to) automatically create a new data directory for a new profile. There might be a bug there that causes that to sometimes not happen, but we haven't reproduced that, and that doesn't sound like what you're describing anyway.

    But we can't spend time explaining how all this works or troubleshooting things if people don't understand all the parts. (You said yourself in the other thread that you're not familiar with the Firefox profile system.) Having multiple profiles and data directories and multiple libraries is fundamentally a complicated setup. Since you're having trouble with it, I strongly recommend you not use it. I can't help you further with this, sorry.
  • It sounds like you know your way round Windows and Zotero. So it's possible that you could be hitting a new bug, where the new profile folder is not being created. In which case you would need to describe your exact steps to reproduce it, so that it can be fixed.
    https://www.zotero.org/support/reporting_problems#provide_steps_to_reproduce

    If you want to see how it's all *supposed* to work first, you could try setting up multiple profiles in Firefox if you haven't done that before. It's the same system/code, and there's much more documentation. You should see it create the new profile folder in Windows, under Firefox's Profiles parent folder (each profile is a folder, not a file). Open Firefox with each of the two different profiles.

    Then you'll know what to expect doing the same thing in Zotero. It sounds like you already have the -P suffix on your startup shortcut for Zotero. And that you are getting the Profile Manager dialog ...
    https://s3.amazonaws.com/zotero.org/images/forums/u5906489/00oiylkhu23i68foqx0g.png

    Click on Create Profile and follow the steps. If you don't then see *both* profiles in your list, and if Zotero didn't create the new profile folder under its parent profile folder location below, that would be a (new) bug. Describe your exact steps here to reproduce that bug if you see it. If you *do* see the default and the new profile in the list, uncheck 'Use the selected profile without asking at startup'.
    https://www.zotero.org/support/kb/profile_directory
    (for Windows 10 ... C:\Users\\AppData\Roaming\Zotero\Zotero\Profiles ... see the note at the above link if Appdata is a hidden folder)

    If the new profile folder has been created, and you *select* that new profile in the Zotero profile startup dialog, you *should* see a new Zotero library (data folder) in that new profile. If not (as mentioned as a [different] possible bug in the docs), set the path to a new, *manually-created* data folder location under Advanced prefs as described in the docs below.
    https://www.zotero.org/support/kb/multiple_profiles

    As with all Zotero use, you should have a backup your data folder ...
    https://www.zotero.org/support/zotero_data#backing_up_your_zotero_data
  • @Tim20. I have already answered these topics, as have many others. The reproduction steps don't work, and Firefox should have nothing to do with this, as its Zotero that I'm installing.
  • @dstillman:
    Re: "There might be a bug there that causes that to sometimes not happen, but we haven't reproduced that, and that doesn't sound like what you're describing anyway."
    The bug is that separate Zotero profiles aren't created. That has been described in a number of post over several years. Because, as you claim, this is complicated for us to create, it has to be up to you to reproduce it. I'm trying to get you to do that. Perhaps the Zotero architecture needs a rethink. As a long-time software engineer, I have found this to be the saving solution. In any case, I have to move on to something that works for me. Good luck to you.

  • edited August 17, 2024
    You have no idea what you're talking about. You already admitted to not understanding the Firefox profile system, so I'm not sure why you're arguing with those of us who do. The possible bug we're referring to is about the Zotero data directory setting in newly created profiles and has nothing to do with profiles not being created — I don't recall anyone else reporting that, and it's not even clear that you understand this system well enough to understand or describe the behavior you're seeing.

    The profile system has been used in Firefox for decades, and we inherit that functionality for free. It's very simple and certainly works in general. If there's some bizarre permissions problem on your system that's breaking it, that would have nothing to do with us or Mozilla and obviously isn't something we can help with.

    @tim820 engaged with you in good faith and at length, and you obnoxiously dismissed him. You're welcome to review the Firefox profile documentation, which explains how this works in great detail. As a long-time software engineer, surely you'll have no problem understanding a basic .ini file or debugging a permissions problem.

    I have no idea why you've taken this attitude with us, but I'm closing this so as not to waste any more of anyone's time.
This discussion has been closed.