Skip to content

Commit

Permalink
Linux - Setup libsecret
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Dec 11, 2023
1 parent ff86f5f commit 52aceba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup libsecret"
- run: |
sudo apt install libsecret-1-0 libsecret-1-dev libglib2.0-dev
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
- name: "Get Conan"
uses: turtlebrowser/get-conan@main
- name: "Setup Conan Settings"
Expand Down
4 changes: 2 additions & 2 deletions include/keyring/systemcredentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ namespace Nickvision::Aura::Keyring::SystemCredentials
*/
std::optional<Credential> addCredential(const std::string& name);
/**
* @brief Adds a new credential to the system's credential manager.
* @brief Adds a new credential to the system's credential manager. On Linux, only the name and password of a credential will be stored. On Windows, all fields of a credential will be stored.
* @param name The new credential object
* @return True if successful, else false
*/
bool addCredential(const Credential& credential);
/**
* @brief Updates a credential in the system's credential manager.
* @brief Updates a credential in the system's credential manager. On Linux, only the name and password of a credential will be stored. On Windows, all fields of a credential will be stored.
* @param name The updated credential object
* @return True if successful, else false
*/
Expand Down
2 changes: 1 addition & 1 deletion src/keyring/systemcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Nickvision::Aura::Keyring
std::optional<Credential> SystemCredentials::addCredential(const std::string& name)
{
PasswordGenerator passGen;
Credential c{ name, "", "NickvisionKeyring", passGen.next() };
Credential c{ name, "", "default", passGen.next() };
if (addCredential(c))
{
return c;
Expand Down

0 comments on commit 52aceba

Please sign in to comment.