-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added flatpak-specific build options
- Loading branch information
Mihnea Rădulescu
committed
Sep 9, 2024
1 parent
52de443
commit b413d24
Showing
9 changed files
with
59 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
PasswordSecure/Application/Providers/IEncryptedDataFolderProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace PasswordSecure.Application.Providers; | ||
|
||
public interface IEncryptedDataFolderProvider | ||
{ | ||
string GetEncryptedDataFolderPath(); | ||
} |
9 changes: 9 additions & 0 deletions
9
PasswordSecure/Infrastructure/Providers/DefaultEncryptedDataFolderProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
using PasswordSecure.Application.Providers; | ||
|
||
namespace PasswordSecure.Infrastructure.Providers; | ||
|
||
public class DefaultEncryptedDataFolderProvider : IEncryptedDataFolderProvider | ||
{ | ||
public string GetEncryptedDataFolderPath() => Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); | ||
} |
23 changes: 23 additions & 0 deletions
23
PasswordSecure/Infrastructure/Providers/FlatpakEncryptedDataFolderProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.IO; | ||
using PasswordSecure.Application.Providers; | ||
|
||
namespace PasswordSecure.Infrastructure.Providers; | ||
|
||
public class FlatpakEncryptedDataFolderProvider : IEncryptedDataFolderProvider | ||
{ | ||
public string GetEncryptedDataFolderPath() | ||
{ | ||
var sandboxedApplicationPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) | ||
.Replace("/config", string.Empty); | ||
|
||
var encryptedDataFolderPath = Path.Combine(sandboxedApplicationPath, EncryptedDataFolderName); | ||
return encryptedDataFolderPath; | ||
} | ||
|
||
#region Private | ||
|
||
private const string EncryptedDataFolderName = "EncryptedData"; | ||
|
||
#endregion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.