Commit Graph
773 Commits
Author SHA1 Message Date
Marcelo C. bf22d7e178 Changed parameter from boolean to Enum for clarity of purpose 2025-04-02 10:15:21 -03:00
Marcelo C. 2da12c12bb Refactoring of how permissions are set whilst obtaining DataFolder
This addresses [Issue](https://github.com/duplicati/duplicati/issues/6114).

Whenever in non-write context, the permissions of the folder are not set.

Changing pattern from static constructor execution.
2025-04-01 15:21:40 -03:00
Kenneth Skovhede 82be38cc99 Cache image handles
This attempts to reduce the number of allocated handles by caching the images used in Duplicati, so they cannot occupy more than a single handle each.
2025-03-26 16:17:48 +01:00
Kenneth Skovhede e056e651f9 Fixed issues with cross-talk options from TrayIcon and Server 2025-03-25 11:36:44 +01:00
Kenneth Skovhede 1a38df7709 Cleaned up some callbacks to not use events with async methods.
Implemented argument validation for the TrayIcon and server startup.
2025-03-25 11:14:03 +01:00
Kenneth Skovhede ee454e0f38 Fixed trayicon shutdown sequence, and made status updates async 2025-03-25 10:56:01 +01:00
Kenneth Skovhede b10f888d86 Updated HttpServerConnection to use async and channels instead of a locked queue with threads 2025-03-25 10:54:10 +01:00
Kenneth Skovhede 6881257c5a Prevent crashes in TrayIcon after stopping it 2025-03-25 10:52:54 +01:00
Kenneth Skovhede fca218dc60 Allow trayicon without server
This adds support for starting the trayicon even if there is no server.

The trayicon will start up in a disconnected state and stay like that until it manages to connect.

This fixes Support TrayIcon running with no connection	#5993
2025-03-25 10:40:45 +01:00
Kenneth Skovhede 5509693137 Added warning state back 2025-03-16 17:26:12 +01:00
Marcelo C. b035c69e4d Integrating the IPv6 & IPv4 detection
It should be noted that I was unable to completely remove IPv4 on Windows 11 to a state where it would not provide the 127.0.0.1 loopback, even when disabling Ipv4 in various ways, including with registry flags.

On ubuntu/linux, after completely disabling ipv4 the ipv6 loopback was returned.
2025-03-11 16:24:15 -03:00
Kenneth Skovhede ddd34ca9c6 Second instance of TrayIcon opens logged in view.
This fixes #6003
2025-03-05 14:53:51 +01:00
Kenneth SkovhedeandGitHub 88f91b5b9e Removed extra sln file 2025-02-18 22:33:47 +01:00
Alex-Heard 64dc7d094f Prevents double clicks from opening two windows by ignoring click events that happen within 1 second of last click 2025-02-17 22:11:41 -05:00
Kenneth Skovhede 68d11a2a8b Improved support for disabled signin tokens and trayicon with a hosted server 2025-02-10 10:22:16 +01:00
Kenneth Skovhede 42044543ff Added support for disabled signin tokens and trayicon 2025-02-09 11:35:27 +01:00
Kenneth Skovhede d9258bfad2 Removed desktop notifications, it did not work 2025-02-09 09:48:04 +01:00
Kenneth Skovhede 4be739ff2f Updated logic for reconnect.
This fixes a case where using a wrong password could cause an infinite loop.
2025-02-08 17:31:49 +01:00
Kenneth Skovhede 5c4a0594a5 Improved TrayIcon detached.
Implemented support for disconneted state with TrayIcon.
Added some notification support (Windows and Linux).
Changed some logic to prevent hangs on clicks.
2025-02-08 17:30:27 +01:00
Kenneth SkovhedeandGitHub 28e3fa1063 Merge pull request #5914 from duplicati/feature/prevent-windows-subfolder-storage
Improve data folder assignment
2025-01-31 14:52:45 +01:00
marceloduplicatiandGitHub 03b7fac65c Merge pull request #5889 from marceloduplicati/feature/unified-help-arguments
Help Command unification
2025-01-30 10:23:10 -03:00
Kenneth Skovhede fac12ba772 Further consolidated the data folder.
Added support for `--portable-mode` and `--server-datafolder` for the CLI, ServerUtil, and Agent.

Fixed a few places where file reads were not cached properly.

Moved some responsibilities of UpdaterManager into DataFolderManager.

This now supports storing `machineid.txt` and `installation.txt` inside the path pointed to by `--server-datafolder` or alternatively with `--portable-mode`.

It is possible that some fringe backwards compatibility is lost with this update.

Fixed an issue with AutoUpdater crashing on check/download.

This fixes #5902
2025-01-28 13:01:35 +01:00
Kenneth SkovhedeandGitHub 997891525a Updated license-updater to update csproj files (#5898)
* Updated license-updater to update csproj files

* License updates
2025-01-22 21:04:19 +01:00
Marcelo C. cee1b8428d Centralizing the check on Helper function. 2025-01-21 12:45:53 -03:00
Marcelo C. 2e502ea7be Help Command unification
All CLI tools and executables now accept a unified set of help command variants:

"help", "/help","--help", "usage", "/usage", "--usage", "/h", "-h"

Affected executables:

Duplicati.Agent
Duplicati.CommandLine
Duplicati.CommandLine.AutoUpdater
Duplicati.CommandLine.BackendTester
Duplicati.CommandLine.BackendTool
Duplicati.CommandLine.ConfigurationImporter
Duplicati.CommandLine.SecretTool
Duplicati.CommandLine.Snapshots
Duplicati.GUI.TrayIcon
Duplicati.Server
Duplicati.Service
Duplicati.WindowsService

Note that SharpAesCrypt command is not included in this because the parameter parsing is part of the SharpAesCrypt code base.
2025-01-17 14:00:14 -03:00
Kenneth SkovhedeandGitHub a49af70af0 Checking if the UI channel is disposed. (#5874) 2025-01-16 13:26:12 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth SkovhedeandGitHub d940af1f64 Fixed TrayIcon disconnecting. (#5819)
This fixes a problem where the exception was not correctly detected causing the token to not be re-obtained.

This fixes #5818
2024-12-28 20:02:21 +01:00
Kenneth SkovhedeandGitHub b69d9ae37b Fixed a thread crash on stop (#5798) 2024-12-19 22:37:44 +01:00
Kenneth SkovhedeandGitHub 58a5fc57f4 Implemented support for emitting intermediate certificates from pfx (#5739)
* Implemented support for emitting intermediate certificates from pfx files

* Added certificate check to crash earlier

* Fixed loading certificate on Windows
2024-12-05 10:34:10 +01:00
Kenneth Skovhede 4e3af5111f Updated menu icons to be less colorfull on non-Windows 2024-11-28 14:40:27 +01:00
Kenneth Skovhede 16ecb2e2ca Implemented support for dark-mode icons on MacOS 2024-11-28 14:33:20 +01:00
Kenneth Skovhede a97a472ab2 Made password source explicit 2024-11-26 11:26:50 +01:00
Kenneth Skovhede 998c564aaf Fixed hang from detached TrayIcon.
This fixes #5703
2024-11-26 11:23:28 +01:00
Kenneth Skovhede 249bb96af8 Added click event handler to tray-icon.
(Does not work on OSX).
2024-11-22 17:07:56 +01:00
Kenneth Skovhede be0ac25eef Bumped Avalonia to match latest Tmds package 2024-11-08 10:47:55 +01:00
Kenneth Skovhede 7475a68419 This adds a few safeguards to the exit.
Related to #5643
2024-11-07 14:01:35 +01:00
Kenneth Skovhede c99e819d70 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-11-01 08:49:52 +01:00
Kenneth Skovhede d9953852ad Fixed compile errors on Windows 2024-10-30 10:51:32 +01:00
Kenneth Skovhede ff25d91663 Simplified code a bit.
Added support for multiple cert-hashes.
Made `server-util` auto-detect hashes as well.
2024-10-29 14:38:23 +01:00
Kenneth Skovhede 56816abed8 Reverted to not storing the certificate as a file, since the x509Certificate loader was the broken part, not Kestrel. 2024-10-29 13:55:12 +01:00
Kenneth Skovhede e914794b30 Simplified running TrayIcon with self-signed certificate.
Added workaround method to avoid loading certificate directly as that crashes .NET with EC-based keys.
2024-10-29 13:28:44 +01:00
Kenneth Skovhede b9f2d16df6 Fixed incorrect reference 2024-10-29 12:24:49 +01:00
Kenneth Skovhede 4783050d53 Simplified logic by having an option to disable https.
Simplified checks for https by having a single property that unifies the logic.
2024-10-29 11:15:06 +01:00
Kenneth Skovhede f9154137a3 Merge remote-tracking branch 'origin/master' into feature/ex-certificates 2024-10-29 09:24:53 +01:00
Kenneth Skovhede 34d13a20e2 Initial version of the external secret provider 2024-10-24 16:06:59 +02:00
Kenneth Skovhede f77338a829 Fixed a stray namespace 2024-10-03 16:33:46 +02:00
Marcelo Ceccon 7b958a0878 Fixes to the multiple instance detection system
Exception was bundled in the innerexception and thus the catch statement was not functioning as expected.

Additionally adding ? operator to the  ApplicationExitEvent ServerStartedEvent events.
2024-10-03 10:05:15 +02:00
Max 1bb03a5673 upstream sync 2024-09-11 21:31:04 +02:00
Kenneth Skovhede 23d74d4e18 Minor tweaks to the logic around starting the hosted instance from the TrayIcon 2024-09-07 08:25:16 +02:00