972 Commits

Author SHA1 Message Date
abaf233a07 fix: adjust command line size to allow expanding
Some checks are pending
CodeQL Analysis / codeql (push) Waiting to run
Continuous Integration / ci-passed (push) Blocked by required conditions
Continuous Integration / test-results (push) Blocked by required conditions
Continuous Integration / lint-reuse (push) Waiting to run
Continuous Integration / lint-clang (push) Blocked by required conditions
Continuous Integration / analyze-valgrind (push) Blocked by required conditions
Continuous Integration / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / windows-2022-arm64 (push) Blocked by required conditions
Continuous Integration / macos-arm64 (push) Blocked by required conditions
Continuous Integration / macos-x64 (push) Blocked by required conditions
Continuous Integration / archlinux-x86_64 (push) Blocked by required conditions
Continuous Integration / debian-arm64 (push) Blocked by required conditions
Continuous Integration / debian-x86_64 (push) Blocked by required conditions
Continuous Integration / debian-testing-arm64 (push) Blocked by required conditions
Continuous Integration / debian-testing-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-42-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-42-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-43-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-43-x86_64 (push) Blocked by required conditions
Continuous Integration / opensuse-arm64 (push) Blocked by required conditions
Continuous Integration / opensuse-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-26.04-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-26.04-x86_64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (push) Blocked by required conditions
Continuous Integration / flatpak-aarch64 (push) Blocked by required conditions
Continuous Integration / flatpak-x86_64 (push) Blocked by required conditions
Continuous Integration / release (push) Blocked by required conditions
SonarCloud Analysis / sonar (push) Waiting to run
2026-03-19 10:41:22 +00:00
b251c98a4e fix: kill core orphan on gui death (linux) 2026-03-16 09:38:14 -04:00
23c8496e24 feat: allow users to run a script on entry or exit of a screen 2026-03-16 12:33:45 +00:00
18220a7847 chore: Fix Typo 2026-03-16 12:33:45 +00:00
a26698c377 repo: add an initial code of conduct 2026-03-16 07:28:03 -04:00
ac8cc42b7a fix: retry OpenClipboard() on Windows
OpenClipboard() can fail transiently when another process holds the
clipboard mutex. Add a retry loop (5 attempts, 5ms delay) so that
Deskflow handles brief contention gracefully instead of immediately
failing.
2026-03-12 08:19:43 -04:00
7126f31d3f fix: do not reset network if old interface is missing
fixes: #9552
2026-03-12 10:24:20 +00:00
44db410dad docs: rm copilotnote 2026-03-11 07:48:51 -04:00
bc7b1082e7 doc: fix ssl exception link 2026-03-11 07:48:51 -04:00
ea0bf9d56d docs: Update README.md include Copilot note 2026-03-08 18:38:07 +00:00
6657bdd9b1 build: not using cache to store global state for macOS signing 2026-03-08 18:21:34 +00:00
11871d343d refactor: check for not mac not win in placeof x or wayland in some cases 2026-03-06 08:57:31 -05:00
12cf55d4fc build: Replace WINAPI_CARBON with Q_OS_MAC 2026-03-06 08:57:31 -05:00
e4cf1392c9 build: Replace WINAPI_MSWINDOWS with Q_OS_WIN 2026-03-06 08:57:31 -05:00
f2a54f4af0 buid: replace NIH SYSAPI_WIN32 with Q_OS_WIN 2026-03-06 08:57:31 -05:00
fce1a37e97 build: remove SYSAPI_UNIX define 2026-03-06 08:57:31 -05:00
90e79dad75 refactor: SettingsDialog update ux for initial window state 2026-03-06 13:38:30 +00:00
8f8874370e refactor: SettingsDialog adjust wording of close to tray option 2026-03-06 13:38:30 +00:00
3d67865ffc refactor: SettingsDialog, new Window Behavior tab 2026-03-06 13:38:30 +00:00
22a303842e refactor: Settings Dialog Vertically center contents 2026-03-06 13:38:30 +00:00
c20671f1db build: ensuring macOS codesign is triggered for changes in core 2026-03-05 15:22:46 -05:00
844dac439a ci: macos capture build package attempt do not let it write to stdout 2026-03-04 07:58:39 -05:00
5e781e6095 i18n(es): fixing hostname field translation 2026-03-02 08:11:52 -05:00
2b379b31cd refactor: SettingsDialog adjust tab layout to have consistant top and bottom margins 2026-03-02 06:31:21 -05:00
8bb23179c4 refactor: SettingsDialog, adjust tray icon style layout 2026-03-02 06:31:21 -05:00
a8588ab507 refactor: SettingsDialog, Fix missing spacing in language combobox with some widget sets 2026-03-02 06:31:21 -05:00
c80cd56f27 fix: properly handling infinite timeout for macOS on EventQueue 2026-02-27 19:47:59 -05:00
7743d9008d refactor: checking for server config files read permissions upon start 2026-02-27 16:21:40 -05:00
2ecf91e50a refactor: adding function to check if server config file have the needed read permissions 2026-02-27 16:21:40 -05:00
d8c7367900 fix: visual error if core start emit errors that modify start/restart visibility 2026-02-27 16:21:40 -05:00
8a53b4bc8e ci: split build and package for mac os letting us retry dmg creation upto 5 times 2026-02-27 10:30:10 -05:00
fc1f3b0142 fix: macOS flicker when menu is first clicked if the app is set to autohide on startup
fixes: #9523
2026-02-27 12:25:14 +00:00
814d63af28 refactor: MainWindow::EvenFilter set keyEvent in if only 2026-02-27 12:25:14 +00:00
a9bfcf3c81 refactor: SettingsDialog remove minimum size from vertial spacer on network page 2026-02-26 13:10:24 +00:00
fb8104ff86 fix: security icon not being set for clients
fixes: #9524
2026-02-26 13:10:24 +00:00
a0a28e7a94 chore: remove untriggerable wayland warnings 2026-02-26 12:52:03 +00:00
9188d4b1c1 build: require libportal 0.9.1 2026-02-26 12:52:03 +00:00
d392547fd8 fix: ClientProxyUnknownFailure should also remove its client socket 2026-02-26 12:02:28 +00:00
220bf3178c fix: correctly deletes sockets that failed to become clients 2026-02-26 12:02:28 +00:00
c0692b6fc7 refactor: remove messages::showClientError, fix mainwindow calling showandactive for non error messages 2026-02-24 17:06:17 +00:00
47ed13868f refactor: ScreenSetupView remove unneeded include 2026-02-24 16:10:01 +00:00
09d4b1a27a refactor: Forward Declare more in gui/validators classes 2026-02-24 16:10:01 +00:00
4e641adae9 refactor: ComputerNameValidator define regex static where used 2026-02-24 16:10:01 +00:00
568f5c7fc5 refactor: SpacesValidator, use QChar::Space 2026-02-24 16:10:01 +00:00
a0ac24a42c refactor: NewScreenWidget::mousePressEvent remove remove unused arg 2026-02-24 16:10:01 +00:00
f69bd5601c refactor: make NetworkMonitor::validAddresses static 2026-02-24 16:10:01 +00:00
37728cc7a3 refactor: Settings::cleanComputerName do not store empty QString for nothing 2026-02-24 16:10:01 +00:00
b4dbce385c refactor: Mainwindow: prevent core from running while editing the host name 2026-02-24 15:57:22 +00:00
9aeb04b4a6 refactor: MainWindow do not allow the computer name to be edited if the core is running 2026-02-24 15:57:22 +00:00
3db4c60155 refactor: MainWindow add canRunCore method 2026-02-24 15:57:22 +00:00
c37c7e2354 ci: release dev docs from build/docs 2026-02-23 17:26:19 -05:00
4314159a0b Revert "chore: move LICENSE -> docs/LICENSE"
This reverts commit dd55247380.
2026-02-23 17:26:19 -05:00
7f4b942817 ci: install doxygen with depends everywhere 2026-02-23 17:02:05 -05:00
c2342d5124 docs: Included a generic Readme for the root of the documents 2026-02-23 17:02:05 -05:00
dd55247380 chore: move LICENSE -> docs/LICENSE 2026-02-23 17:02:05 -05:00
fe9407ca33 refactor: move SECURITY.md -> docs/Security.md, install it to CMAKE_INSTALL_DOCDIR 2026-02-23 17:02:05 -05:00
9376c68739 chore: move CONTRIBUTING.md => .github/CONTRIBUTING.md 2026-02-23 17:02:05 -05:00
439541fac1 chore: move README -> .github/README 2026-02-23 17:02:05 -05:00
dfae2aaf20 chore: move doc dir to docs 2026-02-23 17:02:05 -05:00
5ea8874583 refactor: move all status bar items to new status bar widget 2026-02-23 21:48:17 +00:00
07de9efe7c refactor: CoreProcess add signal for when the security level text changes 2026-02-23 21:48:17 +00:00
c791135160 refactor: move CoreProcess::ProcessState => common/Enums deskflow::core::ProcessState 2026-02-23 21:48:17 +00:00
79fdf3a1f6 refactor: mv CoreProcess::ConnectionState -> common/Enums deskflow::core::ConnectionState 2026-02-23 21:48:17 +00:00
76353eceb3 refactor: NetworkMonitor::validAddresses filter our based on humanreadable and add vEth for windows wsl to ignore list 2026-02-23 21:24:56 +00:00
fb60189078 feat: NetworkMointor::validAddresses, return the useable ip4 and ip6 address 2026-02-23 21:24:56 +00:00
3c140ed479 chore: rename NetworkMonitor::getAvalibleIpv4Addresses => NetworkMonitor::validAddresses 2026-02-23 21:24:56 +00:00
5b4dfefcf7 doc: document x / y scroll scale and invert 2026-02-23 21:24:56 +00:00
033e5530c3 refactor: remove the generic connection and hostname failures dialog
this dialog has been the cause of alot of confusion,
it will almost always show up incorrectly at least once when connecting a new client
if you accept the client side dialog before adding the screen to the server
fixes: #9497
2026-02-23 21:03:48 +00:00
727d6ff166 refactor: moving ServerApp::currentConfig to Settings::serverConfigFile 2026-02-23 07:15:49 -05:00
aa54bd329f fix: add Daemon::LogLevel to the list of valid config keys 2026-02-23 07:15:49 -05:00
692f43d8af refactor: SettingsDialog hide Advanced tab for portable version on windows 2026-02-21 07:56:47 +00:00
263a23fcaa fix: Settings dialog blocking return to Automatic
fixes:# 9501
2026-02-21 07:56:47 +00:00
bde89d4026 ci: Use Qt 6.10.2 on mac arm and windows builds 2026-02-20 14:38:42 +00:00
b3cecdde7f ci: remove unused add-kitware-repo action 2026-02-20 14:38:42 +00:00
5534232a1d i18n(ko): Update ko translation by bimppap
new string from https://github.com/deskflow/deskflow/pull/9478\#pullrequestreview-3829032105
2026-02-20 14:24:04 +00:00
4c7f546c60 fix: XWindowScreen, do not send a scroll delta for 0
fixes: #9477
2026-02-18 18:11:38 +00:00
1ca8695659 fix: Read fingerprint data before applying the initial config to prevent the fingerprint from being empty making the button hidden
fixes: #9483
2026-02-18 15:26:17 +00:00
e7363aaf8e ci: remove winget publish from our release
our last release was botched due to our repo being out of sync within a ~12hours of release a winget bot had already
completed the update and caused our future attempts with out now synced repo to fail. Lets lets winget bot do the winget release
2026-02-18 11:34:45 +00:00
6ccef50b7c refactor: SettingsDialog, hide advanced tab when running on macos 2026-02-17 13:41:47 +00:00
d7fb9bc6d2 refactor: SettingsDialog, move language to General 2026-02-17 13:41:47 +00:00
41197334f0 refactor: SettingsDialog move network items to own tab 2026-02-17 13:41:47 +00:00
74c25fdff6 refactor: SettingsDialog rename regular tab to general 2026-02-17 13:41:47 +00:00
f6348736e8 refactor: SettingsDialog, move Log settings to own tab 2026-02-17 13:41:47 +00:00
208556b5aa refactor: SettingsDialog, add reset to default button 2026-02-17 13:41:47 +00:00
58963de10f refactor: SettingsDialog add a reset button for settings, and tooltips for the buttonbox buttons 2026-02-17 13:41:47 +00:00
457c31fbaf refactor: SettingsDialog only allow save if modified 2026-02-17 13:41:47 +00:00
690d6a67ef refactor: SettingsDialog, no longer need coreProccess in the settings dialog 2026-02-17 13:41:47 +00:00
094cbadf91 i18n(ja): update Japanese(ja) translation
Check and update unfinished translation
2026-02-17 04:34:25 +00:00
760e3b99b0 Release 1.26.0
Some checks are pending
Continuous Integration / ci-passed (push) Blocked by required conditions
Continuous Integration / test-results (push) Blocked by required conditions
Continuous Integration / lint-reuse (push) Waiting to run
Continuous Integration / lint-clang (push) Blocked by required conditions
Continuous Integration / analyze-valgrind (push) Blocked by required conditions
Continuous Integration / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / windows-2022-arm64 (push) Blocked by required conditions
Continuous Integration / macos-arm64 (push) Blocked by required conditions
Continuous Integration / macos-x64 (push) Blocked by required conditions
Continuous Integration / archlinux-x86_64 (push) Blocked by required conditions
Continuous Integration / debian-arm64 (push) Blocked by required conditions
Continuous Integration / debian-x86_64 (push) Blocked by required conditions
Continuous Integration / debian-testing-arm64 (push) Blocked by required conditions
Continuous Integration / debian-testing-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-42-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-42-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-43-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-43-x86_64 (push) Blocked by required conditions
Continuous Integration / opensuse-arm64 (push) Blocked by required conditions
Continuous Integration / opensuse-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-26.04-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-26.04-x86_64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (push) Blocked by required conditions
Continuous Integration / flatpak-aarch64 (push) Blocked by required conditions
Continuous Integration / flatpak-x86_64 (push) Blocked by required conditions
Continuous Integration / release (push) Blocked by required conditions
Continuous Integration / winget-publish (push) Blocked by required conditions
2026-02-16 13:22:13 +00:00
042abd699d feat: support horizontal scroll modifiers 2026-02-16 12:45:03 +00:00
f6b1546f8b refactor: use a client config dialog for client options 2026-02-16 12:45:03 +00:00
2cc19c9f1e refactor: rename Settings::Client::InvertScrollDirection -> Settings::Client::InvertYScroll 2026-02-16 12:45:03 +00:00
329cf07275 chore: MainWindow use Connect to to label the client host text entry 2026-02-16 12:45:03 +00:00
99da66dbf7 fix: using a proper std::string to store KeyInfo buffers 2026-02-16 12:13:58 +00:00
3c6aa9999b refactor: MainWindow updateModeControls no longer takes a bool just check the process mode 2026-02-16 11:40:08 +00:00
19724e3b69 fix: enable m_actionStopCore based on cores state 2026-02-16 11:40:08 +00:00
b96619d726 refactor: prevent modecontrols from being updated twice on startup.
Apply config should toggle the core mode to ensure the labels and mode is set correctly post config
2026-02-16 11:40:08 +00:00
c9aaeaee2a refactor: MainWindow::CoreModeToggle set the new core mode here not updateModeControls 2026-02-16 11:40:08 +00:00
1b6def23d8 refactor: MainWindow::CoreModeToggle, use CoreMode type internally 2026-02-16 11:40:08 +00:00
c1172ab8b5 refactor: MainWindow only act on when the rb for mode is Checked, this prevents doing the full coreModeToggled twice when changing modes 2026-02-16 11:40:08 +00:00
12860646d2 i18n(zh_CN): remove extra peroid in translation 2026-02-16 11:40:08 +00:00
869bd0e2aa doc: update link for latest vc_redist 2026-02-14 14:18:33 +00:00
71929e8332 ci: don't fail ci-comment workflow on no PR
Can easily happen on force push
2026-02-12 17:40:34 +00:00
fe285dc192 ci: fix reference to nonexistent $dir var in ci-comment workflow 2026-02-12 17:40:34 +00:00
67066c339e ci: fix edge case in ci-comment workflow where old comment isn't deleted 2026-02-12 17:40:34 +00:00
759ed684e3 ci: count X emoji using grep in test-summary action
ci: handle when grep exits with code 1 in test-summary action
2026-02-12 17:40:34 +00:00
611a3300ba refactor: do not return true when checking physical ip is private or not return if a was private 2026-02-12 17:16:32 +00:00
64c104a5c2 refactor: include a point 2 point check when checking if an interface is virtual 2026-02-12 17:16:32 +00:00
f9857e102a fix: NetworkMonitor virtual sorting
fixes: #9459
make NetworkMonitor::isVirtualInterface a static member of NetworkMonitor
write tests for NetworkMonitor
2026-02-12 17:16:32 +00:00
9dc76c1caf ci: remove concurrency check for valgrind workflow 2026-02-12 16:28:32 +00:00
68f867b914 ci: use concurrency groups to allow updates to a branch to cancel in progress run of old version of that branch 2026-02-12 12:32:45 +00:00
dd77f79b17 build: enables CMP0156 policy if available (de-duplicates libraries on linker calls) 2026-02-11 21:18:22 +00:00
e555b63931 fix: extra "a" with Rime and apply clang-format 2026-02-11 14:33:04 +00:00
b33eb0135d ci: add step to install and test package binaries
fixes: #7774

Signed-off-by: Louis Labeyrie <labeyrielouis@gmail.com>
2026-02-11 13:10:41 +00:00
f9d7c75492 ci: use CodeQL v4
codeQL v3 is EOL in DEC 2026
2026-02-11 12:50:08 +00:00
a532f655c1 feat: support horizontal scrolling
fixes: #7220
based on 9f15b1bcf2
Co-authored-by: Evan Maddock <maddock.evan@vivaldi.net>
2026-02-11 11:59:28 +00:00
82588a7fc9 chore: remove unused privates from PlatformScreen 2026-02-11 11:59:28 +00:00
1f2d169b0d build: fix typo in daemonDepends
fixes: #9439
2026-02-09 12:45:51 +00:00
1c99736c16 refactor: SettingsDialog, scroll scale spinbox remove wraping and make step size .1 2026-02-09 09:02:21 +00:00
050cb649c2 refactor: use ScrollDelta for fakeMouseWheel 2026-02-09 09:02:21 +00:00
5612e99f1d refactor: Move the scrollModifiers to ISecondaryScreen 2026-02-09 09:02:21 +00:00
a520e3b2e9 refactor: check settigns for invertscroll in PlatformScreen 2026-02-06 12:51:39 +00:00
380f65954d chore: remove unused Settings::ScrollSpeed 2026-02-06 12:51:39 +00:00
0f6ec6c196 refactor: XWindowsScreen use a fixed minimum step value in place of the scroll speed setting 2026-02-06 12:51:39 +00:00
857326b274 refactor: rename PlatformScreen::mapClientScrollDirection -> PlatformScreen::applyClientScrollModifier
prepare for horizontal scroll support by having it handle pairs of x and y values
2026-02-06 12:51:39 +00:00
5e8a6f0bcb fix: vertical scroll scaling on all platforms
fixes: #9120
2026-02-06 12:51:39 +00:00
a960f2ff30 doc: update remoteHost comment to include list ability 2026-02-06 12:51:39 +00:00
5c3e1f182c build: add qt6-svg-plugins to the debian pacakges recommends, this should in most cases install the package if your system does not have it. fixes: #9426 2026-02-05 18:30:29 +00:00
84e1e722c0 fix: Send extra mouse buttons on mac os servers to clients 2026-02-04 09:56:10 +00:00
4200de66ee fix: scroll Issue on X11 by not checking for wheel in mapButtonToX 2026-02-04 09:45:25 +00:00
be4e861604 feat: use Computer in settings to replace name
provide Settings::upgradeSettings to upgrade the screenName -> computerName
Make a note to remove "ScreenName" for 2.0
2026-02-03 18:55:17 +00:00
8f5a4106d3 doc: use computer to replace screen when describing options 2026-02-03 18:55:17 +00:00
145e9ec926 chore: add CLAUDE.md to the gitignore 2026-02-03 18:43:41 +00:00
05c050b81e fix: handle back mouse on xwindows and windows
based on : 9f15b1bcf2
fixes: #5682
2026-02-03 09:41:22 +00:00
403c4ad9b9 fix: log protocol mismatch at INFO level
fixes: #7800
2026-01-30 13:07:04 +00:00
f065979b3f Fix: detect key repeat in libei input
For libei, there's no indication that a key is repeated.
However, sending repeated key down events (DKDN instead
of DKRP for the synergy protocol) can be confusing to
clients, which then causes issues like in #7971.

Detect repeated key down events in EiScreen server and
send them to the client with the repeat flag set, so in
e.g. synergy that causes the DKRP messages, to be less
confusing.

For me this fixes an issue where the synergy client is
creating a USB device, which requires repeated events
to be entirely dropped since the host OS where the USB
device is connected will do its own repeat when a key
is held down.
2026-01-30 12:19:29 +00:00
933617d5b1 ci: use Fancy Checkout v2 2026-01-30 09:10:08 +00:00
adbaef7dfb chore: remove unused test files not longer needed from old hellotests 2026-01-28 13:00:54 +00:00
fdf6a5b8f3 refactor: remove kProtocolName vars and use the NetworkProtocol instead
fixes: #9401
2026-01-28 12:12:02 +00:00
028b71a833 docs: remove note from readme about repology new package names 2026-01-28 08:21:24 +00:00
b2b2951fb7 docs: remove bounty links from the readme 2026-01-28 08:21:24 +00:00
dbed37e9ba refactor: networkprotocol, add string / enum conversion methods use them in config and elsewhere 2026-01-26 13:30:24 +00:00
0d3768d838 chore: fix minor typo in doxygen comments for events 2026-01-26 13:14:53 +00:00
be2546c27b refactor: remove legacy deps pattern and hello back class 2026-01-26 13:14:53 +00:00
6459eb40df chore: surface stopping messages in lower log level 2026-01-26 13:14:53 +00:00
555cb6888f build: flatpak update libei and google test to mach flathub build 2026-01-26 12:49:16 +00:00
a00230829c ci: Make sure that the ci-passed fails if any previous steps were not successful 2026-01-26 12:49:16 +00:00
1df5ab0851 ci: bump flatpaks built by runner to use kde-platform 6.10 to keep in sync with what flathub builds 2026-01-26 12:49:16 +00:00
26cb66c1e5 ci: use ubuntu-slim runner for ci comment and issue-check jobs 2026-01-26 12:49:16 +00:00
348e26564f ci: Continuous-Integration use ubuntu-slim runner where possible 2026-01-26 12:49:16 +00:00
1ed394e3ef refactor: remove DEBUG3 and move DEBUG3 messages to DEBUG2 2026-01-26 12:35:00 +00:00
2cf4fc8d0a refactor: remove DEBUG4 level and move any DEBUG4 messages to DEBUG3 2026-01-26 12:35:00 +00:00
d6ffcd37d7 refactor: remove DEBUG5 level and move any DEBUG5 message to DEBUG4 2026-01-26 12:35:00 +00:00
046c15736b chore: DaemonApp, remove unused and unimplemented init function and the enum InitResult return type it returned 2026-01-26 11:33:13 +00:00
6980e86d6a chore: DaemonApp, remove unused showHelp this is left over from when this was an application 2026-01-26 11:33:13 +00:00
973cc76927 chore: remove unused gui/CommandProcess 2026-01-26 11:33:13 +00:00
86c8c66b6e Feat: Add Korean(ko) translation 2026-01-23 13:16:33 +00:00
a5b2a4fab9 Fix: Add exception handling to setValue functions
Replace TODO comments with proper exception handling in ArchMiscWindows::setValue methods.
When a nullptr registry key is passed, the functions now throw std::invalid_argument
instead of silently returning, improving error handling and making bugs easier to detect.

Removed assert statements as they are redundant with the exception handling.

This addresses the TODO comments in lines 163 and 173.
2026-01-23 12:38:32 +00:00
e7eb324f16 chore: fix typos in variable names and log messages 2026-01-22 14:30:45 +00:00
1157bff34b doc: correct typos in README (macOS requirements and installation instructions) 2026-01-22 14:30:45 +00:00
3a242e7fc1 refactor: use windowsErrorToString instead of obsolete winsockErrorToString 2026-01-22 13:46:43 +00:00
fe179556ad fix: Settings, do not remove valid QRects from the state file 2026-01-22 13:30:12 +00:00
c7a427a94c fix: gui crash on clearsettings in debug mode
fixes: #9369
replaces: #9373
2026-01-22 12:51:34 +00:00
ed114252e2 refactor: WlClipboard, close not kill running copy process on exit 2026-01-22 12:35:54 +00:00
34f949dc72 refactor: WlClipboardTest can skip if unable to read data, this happens sometimes with wlclipboard 2026-01-20 11:38:34 +00:00
1763c82ccc refactor: correct WLClipboard test primary clipboard to compare the clipboards not call wait for condition 2026-01-20 11:38:34 +00:00
6d8804f08f chore: remove unused members of WlClipboardTests 2026-01-20 11:38:34 +00:00
ed7e29589b chore: adjust wording in pull request template 2026-01-20 10:16:21 +00:00
7641fe7549 ci: exit ci run if configure causes tr file updates 2026-01-20 10:16:21 +00:00
c63fd21c8e feat: Add a setting to allow the version to be shown in the windows title
fixes: #8538
replaces: #9351
2026-01-20 00:06:49 +00:00
281b3b8d07 fix: Clean settings values on start up
Settings will call cleanSettigs and cleanStateSettings on start up to remove any invalid or empty values in our config
fixes: #9333
2026-01-19 22:54:53 +00:00
d6fe8fa2d5 refactor: Settings::cleanSettings and Settings::cleanStateSettings, remove keys as long as they are empty 2026-01-19 22:54:53 +00:00
ffa887838f refactor: Settings::cleanSettings, skip internalConfig values 2026-01-19 22:54:53 +00:00
49f38c6a8b refactor: Settings::defaultValues, no need to return a QRect() for default windowgeometry as it will be cast to QVariant automaticly on return 2026-01-19 22:54:53 +00:00
7a2ceeedf4 refactor: Remove unneeded QVariant() when setting a setting empty to be removed 2026-01-19 22:54:53 +00:00
b25f083433 refactor: use Settings::value().toString().isEmpty() to check for empty setting values. This is because QVariant::isNull() no longer returns the internal types isNull() method. As a results "" is a non Null QVariant 2026-01-19 22:54:53 +00:00
c45d586bbf i18n(ru): add missing comments in russian ts file 2026-01-19 22:39:11 +00:00
d193af8cc8 feat: Add New Search Widget, use in the log
fixes: #8332
replaces: #9354
2026-01-19 22:39:11 +00:00
bb88bd8695 refactor: remove unneeded QIcon when setting from theme
explict cast when setting update url
2026-01-19 21:55:40 +00:00
73dbe62e48 refactor: ClientApp parse arg for network address use append for list 2026-01-19 21:22:18 +00:00
1163cb842c refactor: do not initilize already initilized screen when not sent with KeyboardbroadCastInfo 2026-01-19 21:22:18 +00:00
15db716f04 refactor: Server::handleSwitchToScreen use const for our info 2026-01-19 21:22:18 +00:00
9f8f805888 build: Add Pull Request Template 2026-01-19 20:07:10 +00:00
119f23a085 i18n(ru): fix and improve Russian translation
- Fixed numerous typos and grammatical errors (e.g., "адресс", "разроботчики").
- Unified technical terminology ("hash", "fingerprint", "IP address").
- Improved stylistic consistency by removing slang.
- Fixed plural forms (numerus) for better Russian localization.
2026-01-19 03:36:25 +00:00
aca274e9ee refactor: add (C) to copyright header where missing 2026-01-18 15:38:59 +00:00
50e7b3aadf Feat: Support multiple server IP addresses (#3665) 2026-01-17 16:26:21 +00:00
e5e53c02b5 Fix: Allow comma and semicolon in hotkey config (#7130) 2026-01-17 14:14:31 +00:00
938db301f0 refactor: modernize Server info structs to use C++ RAII
- Convert LockCursorToScreenInfo, SwitchToScreenInfo, SwitchInDirectionInfo,
  and KeyboardBroadcastInfo from C-style malloc/free structs to proper C++
  classes inheriting from EventData
- Replace char arrays with std::string for safer string handling
- Remove obsolete alloc() static methods in favor of constructors
- Update all call sites to use 'new' with constructors and getDataObject()
  instead of malloc with alloc() and getData()
- Add 'do nothing' comments to empty constructors for SonarQube scans
- Maintain EventFlags::DeliverImmediately for proper event delivery
- Reduces code by 48 lines and eliminates manual memory management
- Improves type safety and follows modern C++20 practices

This change makes the code more maintainable and less prone to memory leaks
by leveraging C++ destructors for automatic cleanup.
2026-01-16 09:38:29 +00:00
d8dfba6372 fix: OSXScreenSaver, do not call CFRelease for empty processesNames 2026-01-13 01:13:32 +00:00
7f57d53494 refactor: CoreProcess use FileTail::setWatchedFile if the file to tail changes 2026-01-12 11:18:40 +00:00
5e61a2b5ce refactor: new FileTail::setWatchedFile 2026-01-12 11:18:40 +00:00
2da14c3da3 fix: Coreprocess will attempt to create a daemon log before returning the path if it does not exist 2026-01-12 11:18:40 +00:00
cab33df72d chore: deskflow-daemon remove install and uninstall from usage 2026-01-12 11:18:40 +00:00
35ee17f959 fix: macOS server crash when client disconnects abruptly 2026-01-12 10:49:02 +00:00
7fdb26f2ea refactor: move deskflow/DaemonApp => apps/deskflow-daemon/DaemonApp 2026-01-07 14:36:55 +00:00
3993449594 refactor: daemonRunning is not used for client / server 2026-01-06 12:05:23 +00:00
f8ae8c5781 chore: remove unused daemonInfo from App and SubClasses 2026-01-06 12:05:23 +00:00
22dad7ac06 chore: remove unused App::daemonMainLoop 2026-01-06 12:05:23 +00:00
db10f1c5a4 chore: remove unused ClientApp / StaticApp daemonMainLoopStatic method 2026-01-06 12:05:23 +00:00
0c368f402b refactor: use ArchDaemonWindows::runDeamon directly
remove now unused ArchMiscWindows::runDaemon
2026-01-06 12:05:23 +00:00
0e04364d17 refactor: use ArchDaemonWindows::daemonFailed directly
remove now unused ArchMiscWindows::daemonFailed
update copyright year
2026-01-06 12:05:23 +00:00
3ff06b7d9a refactor: use ArchDaemonWindows::getDaemonQuitMessage directly
remove now unused ArchMiscWindows::getDaemonQuitMessage
2026-01-06 12:05:23 +00:00
c7da833f07 refactor: use ArchDaemonWindows::daemonRunning directly
removes:
  unused DAEMON_RUNNING define in App.h
  unused ArchMiscWindows::daemonRunning
update copyright years
2026-01-06 12:05:23 +00:00
09c1bd1582 refactor: MainWindow, unify how Automatic and Fixed Ip are displayed 2026-01-05 12:06:20 +00:00
d324dd1a93 refactor: MainWindow::updateIpLabel, simplify IPValid checks 2026-01-05 12:06:20 +00:00
889689bd8e fix: MainWindow, IpLabel Only now NoIP Detected if we are not running or started with no address 2026-01-05 12:06:20 +00:00
844ebf5216 refactor: Remove need for NetworkMonitor::getSuggestedIpAddress. Its always first if there is data 2026-01-05 12:06:20 +00:00
ae9ca35448 refactor: NetworkMonitor: use QStrings
allows us to simplify alot of the code around the lists and lets us also fliter lists easily

update copyright for 2026, add missing deskflow devlopers for mainwindow for 2025 work
2026-01-05 12:06:20 +00:00
dac9539ad9 refactor: EventQueue, use auto for EventQueueTimer pointers 2026-01-05 12:06:20 +00:00
b8e0415632 fix: macOS key repeat not working 2026-01-05 11:47:13 +00:00
3598eb6a47 refactor: RM IEventQueueBuffer::newTimer and IEventQueueBuffer::deleteTimer
port: https://github.com/input-leap/input-leap/pull/1592
Original Message:
  base: Remove IEventQueueBuffor newTimer and deleteTimer APIs
        In the current implementation timers are not platform-specific. On all
        currently supported platforms timer constrution and destruction is
        simple new and delete, so it does not make sense having this
        customization point.
Original Author: p12tic
Ported By: sithlord48
2026-01-02 12:27:24 +00:00
38722f7308 build: macos, add app to the utilities category 2026-01-02 12:03:31 +00:00
8d52facc0b fix: macos, prevent automatic termination during memory pressure
Disable macOS Automatic Termination to prevent the server/client from
being killed during memory pressure events. Adds NSSupportsAutomaticTermination
to Info.plist and programmatically disables termination in the Cocoa app.

Fixes #7329

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-02 12:03:31 +00:00
61fcad2c14 refactor: MainWindow::updateIpLabel, remove single use vars 2026-01-02 11:43:34 +00:00
a84e91a3f2 refactor: Mainwindow::updateIpLabel return early if we are using fixedIp from settings 2026-01-02 11:43:34 +00:00
c2314ad893 refactor: MainWindow, remove m_currentIPValid by reducing its scope to the method where its used 2026-01-02 11:43:34 +00:00
1973005e98 refactor: MainWindow, simplify ip update if core is not running 2026-01-02 11:43:34 +00:00
00235ba189 refactor: NetworkMonitor, use ranged sort for ip ranges 2026-01-02 11:43:34 +00:00
495277c7c9 refactor: NetworkMonitor, use isLocalLink to check for 169.254/16 range 2026-01-02 11:43:34 +00:00
a73057f3a7 refactor: NetworkMonitor, short phyical using isPrivateUse()
this an Ip is considered private when its in a RFC1918 range
10/8, 172.16/12 and 192.168/16 are private IPs
2026-01-02 11:43:34 +00:00
a0f06d907f refactor: NetworkMonitor, set m_isMonitoring initial state in header 2026-01-02 11:43:34 +00:00
3d8cf17d57 chore: gui Remove custom tab stops from settings dialog and use default 2025-12-30 18:31:05 +00:00
ca418b3ba5 chore: gui, Improve log message for disabled update check 2025-12-30 18:31:05 +00:00
189053697b refactor: Log server response on version check error
Qt `errorString()` only contains the error code and error text, but not the response body. And, in HTTP/2 the error string is gone but the error is still printed like it's there: https://bugreports.qt.io/browse/QTBUG-140126
2025-12-30 18:31:05 +00:00
e674d8b27c refactor: Rename setting Settings::Core::UpdateUrl => Settings::Gui::UpdateCheckUrl 2025-12-30 18:31:05 +00:00
7682e17afe refactor: Move src/lib/Config => src/lib/platform/XWindowsConfig
This file is used only in XWindows related platform code.
2025-12-30 17:22:00 +00:00
163ec18730 refactor: VersionInfo is now part of common 2025-12-30 17:22:00 +00:00
d27fd22d8f refactor: SettingsDialog adjust network section so IP is on left and port is on right 2025-12-30 17:03:47 +00:00
cbebaad3b8 feat: add network monitoring and IP address management
- introduce NetworkMonitor class to track network addresses change
- replace QLineEdit with QComboBox for interface selection in settings
- implement automatic IP detection and suggestion logic
- add signal-slot connections for real-time network updates

Log: add network monitoring and IP address management.
2025-12-30 17:03:47 +00:00
16d35349d3 build: use a tweak of 9999 when a valid version tag can not be found
loosely based on https:://github.com/deskflow/deskflow/pull/9303
where it was pointed out that using the gitrev as a fallback could create an invalid version
2025-12-30 13:41:33 +00:00
f8d9de1f2e build: platform, remove unneeeded include_dir for mac os system path 2025-12-30 13:41:33 +00:00
53d2c5e399 build: platform, remove link_wayland_libs macro and do it in its only used place allowing more simplification of the linking platform lib 2025-12-30 13:41:33 +00:00
89ee932db3 build: adjust spacing for cmake files 2025-12-30 13:41:33 +00:00
fb63b70e8d build: lib/common/CMakeLists.txt, remove unneeded unset calls 2025-12-30 13:41:33 +00:00
4a62e51d1d build: unset GITREV after use 2025-12-30 13:41:33 +00:00
2dd0360dec fix: Restore clipboard sharing after 53441821e0
We wanted the value contained in the string as size_t, not the size (length) of
the string. size_t is (normally) an alias for unsigned long, so toUlong() should
do the trick.
2025-12-30 13:16:36 +00:00
9976caafab refactor: LineEditValidator only call errorMessage::isEmpty once 2025-12-30 12:58:11 +00:00
530bcad8a6 chore: remove unused gui/Styles 2025-12-30 12:58:11 +00:00
949913cd6e refactor: use crimson for the error color 2025-12-30 12:58:11 +00:00
1855d33e1f refactor: ValidationError, use palette to set the colors used 2025-12-30 12:58:11 +00:00
ccd40c2927 refactor: validatorError::setMessage return early 2025-12-30 12:58:11 +00:00
6851046c5a refactor: validatorError, make clear a private method 2025-12-30 12:58:11 +00:00
1a9316150d refactor: ValidatorError, m_pLabel -> m_label 2025-12-30 12:58:11 +00:00
b56dd3f387 chore: ValidatorError, create explicit private section 2025-12-30 12:58:11 +00:00
2cbe2c65e8 refactor: screenSettingsDialog, do not set the initial style for name alias lineedits 2025-12-30 12:58:11 +00:00
b8b7799a47 refactor: LineEditValidator, adjust border style based on the Qt Style in use 2025-12-30 12:58:11 +00:00
2b8e7fa6b2 refactor: screensetting dialog, adjust spacers for dead corners 2025-12-30 12:58:11 +00:00
fdb5405e2c refactor: use system color for hyperlinks 2025-12-24 11:23:13 +00:00
0c440843b0 chore: replace deskflow::gui::style::kColorWhite with the svg color white 2025-12-24 11:23:13 +00:00
caf77fe342 chore: remove unused deskflow::gui::style::kLightGreyColor 2025-12-24 11:23:13 +00:00
b432cbc145 fix: error on start shows gui
do not show client errors if the windows is not visible
2025-12-23 13:28:02 +00:00
ce97817d45 refactor: constants, move kTlsFingerprintTrustedClientsFilename => Settings::defaultValue where used 2025-12-22 14:41:04 +00:00
2b4b6a8470 refactor: constants, move kTlsFingerprintTrustedServersFilename => Settings::defaultValue where used 2025-12-22 14:41:04 +00:00
5c34d0edc5 refactor: constants, move kTlsCertificateFileanme to => Settings::defaultValue where used 2025-12-22 14:41:04 +00:00
049f8d718a refactor: constants, move kTlsDir to => Settings::tlsDir where used 2025-12-22 14:41:04 +00:00
c693d258fd refactor: constants, move kDefaultLogFile to => Settings::defaultValue where used 2025-12-22 14:41:04 +00:00
b23e9f9b04 refactor: constants, move kDaemonLogFile => Settings::defaultValue where used 2025-12-22 14:41:04 +00:00
a5bb310e94 chore: constants remove unused kWindowsRegistryKey 2025-12-22 14:41:04 +00:00
7f3d661e31 refactor: net, lookup hostname using any valid Ip4 or Ip6 address
fixes: #9110
2025-12-22 14:24:02 +00:00
6982ce824f build (win32): do not include icu related dlls for windows deployments 2025-12-19 11:57:41 +00:00
0c5b7de554 build: reduce duplication by setting the win32 depends pre and post excludes in src/apps/CMakeLists 2025-12-19 11:57:41 +00:00
2a54f57532 chore: add Q_OBJECT macro to Validators with translations 2025-12-18 13:10:09 +00:00
f0e77c499b chore: settings, remove unneeded {} 2025-12-18 13:10:09 +00:00
fa78b957b5 refactor: settings, use state not settings in the log when changing the state file 2025-12-18 13:10:09 +00:00
60d5bb8378 chore (settings): fix typo peroid -> period 2025-12-18 13:10:09 +00:00
d8e2537d47 refactor: Settings::logLevelToInt simplify the method and add tests to cover it 2025-12-18 13:10:09 +00:00
425d427fce ci: adjust CI to use qt 6.10.1 with 6.9.3 being used for intel macs 2025-12-15 10:00:21 -05:00
8f972bf15e docs: add note about what versions of mac os are supported for arm and intel 2025-12-15 10:00:21 -05:00
c36074df9f docs: Add note to read me that windows 10 v1809 or higher is needed 2025-12-15 10:00:21 -05:00
5e347d8725 fix: Mac os log file not working
fixes: #9274
The log file path is not able to be empty since Settings::value will return the default path if it is, Do not send a c_str to create our FileLogger it wants a QString
2025-12-15 14:41:01 +00:00
ef734a869c build: make sure that translations are built before the source files
this makes sure that the I18N tests are not run before the translation files are generated.
2025-12-15 14:22:40 +00:00
c942de81e7 refactor: I18NTests add additional Tests 2025-12-15 14:22:40 +00:00
dfe6c82a5c refactor: I18N make sure m_currentLang is set to the 639 name on initial load 2025-12-15 14:22:40 +00:00
97b11bf2da refactor: I18n, add static s_prefix -> "_" to use when loading 2025-12-15 14:22:40 +00:00
023c9509e0 refactor: correct typo I18N::langaugesChanged => I18N::languagesChanged 2025-12-09 13:54:05 +00:00
b1bac23dcb chore: Add tests for I18N 2025-12-09 13:54:05 +00:00
13750f4175 chore: remove unused io/Filesystem 2025-12-08 11:24:36 +00:00
27579e4fae refactor: Move file open logic to SecureUtil where its used 2025-12-08 11:24:36 +00:00
cb4621cad7 chore: SecureUtils::generatePemSelfSignedCert take QString for path 2025-12-08 11:24:36 +00:00
2d682d9151 chore: io/FileSystem remove unused methods 2025-12-08 11:24:36 +00:00
26417a2543 ci: add dispatch event to homebrew-tap 2025-12-05 05:23:16 -05:00
87e6521f65 doc: add additional note about damaged app on mac os 2025-12-05 10:06:23 +00:00
b151666f6b refactor: I18N use short (ISO639) names to save and load not native strings, the documentation says we use these already 2025-12-04 08:27:59 -05:00
d1e2865319 fix: macOS not showing Colorful icon
fixes: #9255
2025-12-04 11:09:59 +00:00
70c54d6cf7 chore: remove unused Unicode::UTF8ToUCS4 2025-12-04 10:36:48 +00:00
62a73996b9 chore: remove unused Unicode::UTF8ToUTF32 2025-12-04 10:36:48 +00:00
75a1ab9719 chore: remove unused Unicode::UCS4ToUTF8 2025-12-04 10:36:48 +00:00
6174043c7f chore: remove unused Unicode::UTF32ToUTF8 2025-12-04 10:36:48 +00:00
bfc65ebf6b chore(tr): Add translators as CODEOWNERS for language files 2025-12-03 13:57:59 -05:00
53441821e0 refactor: Replace deskflow::string::stringToSizeType with QString::size() 2025-12-03 12:14:11 +00:00
f012cf2e4b refactor: replace deskflow::string::sizeTypeToString with QString::number() 2025-12-03 12:14:11 +00:00
c73923947a Fix Homebrew tap command in README
The correct command is `brew tap deskflow/tap` not `deskflow/homebrew-tap`.
Homebrew automatically strips the `homebrew-` prefix from repository names.

Related: https://github.com/deskflow/homebrew-tap/pull/6
2025-12-03 11:57:13 +00:00
a6daff59f6 refactor: SecureSocket::doWrite remove unnessessary reset of bufferSize 2025-12-02 08:37:30 -05:00
dc76366a48 fix: SecureSocket::secureConnect, uset SSL host name before connect 2025-12-02 08:37:30 -05:00
9b40bf2f9b chore: remove unused base/Path class 2025-12-02 08:37:30 -05:00
ea0222b1e6 refactor: App::loadConfig(const std::string&) => App::loadConfig(const QString &) 2025-12-02 08:37:30 -05:00
78234f60c4 refactor: base/Path use QString to convert to WString fo windows 2025-12-02 08:37:30 -05:00
7d07222832 refactor: SecureSocket::loadCertificates(const std::string) & => SecureSocket::loadCertificate(const QString &) 2025-12-02 08:37:30 -05:00
e5513101a6 refactor: Use the Settings::Gui::AutoStartCore to control if the Gui should start the core when starting up
removes Settings::Core::StartedBefore
2025-12-02 08:19:46 -05:00
df78f0757e refactor: Gui control if the server first shown message is shown with its own setting 2025-12-02 08:19:46 -05:00
8e8ab25fd0 refactor: use Settings::Gui::ShownFirstConnectionMessage to control message popup on initial connection a to client / server 2025-12-02 08:19:46 -05:00
b4e4277e08 refactor: add missing options 2025-12-02 08:19:46 -05:00
13219ca49c fix: only restore the size if the windows was in the tray
fixes: #9237
2025-12-01 08:39:01 -05:00
0446db93e6 refactor: handle error suppression in gui not message stack 2025-12-01 08:39:01 -05:00
a37d30c6ab refactor: SecureUtils::GenerateFingerprintArt, auto type for char pool 2025-12-01 13:20:47 +00:00
a78702d68f refactor: make DaemonIpcServer::writeToClietnSocket const 2025-12-01 13:20:47 +00:00
7831ba293a fix: Mac os Preferences missing when translated
fixes: #9226
In the MainWindow give all menu items a role to prevent mac os from misplacing them due to their label when translated
2025-11-30 10:14:46 -05:00
a01a6b0b89 fix: key repeat regression for windows caused by #9217 2025-11-30 14:48:35 +00:00
c1b5e125b0 refactor: ServerConnection: keep track of ignored clients so we only prompt for them once 2025-11-30 09:31:08 -05:00
accb9d9c59 refactor: ServerConnection: Handle the new client via signals
Use QtTests now that we can for ServerConnnecitonTests
2025-11-30 09:31:08 -05:00
11fa5d636e refactor: ServerConnection return a bool for the results of the newClientPrompt no Enum needed 2025-11-30 09:31:08 -05:00
cca6f80cb5 refactor: ClientConnection, use signal to ask for dialog
move ClientConnectionTests to Qt Tests
track if the dialog is open in the gui
track suppression in clientConnection based on connect / disconnect message
2025-11-30 14:13:35 +00:00
1ebcab60e2 refactor: Move messages client connection error to common, new common/Enums 2025-11-30 14:13:35 +00:00
2485916ad1 refactor: new signal ClientConnection::requestShowError 2025-11-30 14:13:35 +00:00
5287c51957 refactor: clearer ClientConnection::showMesssage logic 2025-11-30 14:13:35 +00:00
695dc04c00 refactor: new ClientError::NoError 2025-11-30 14:13:35 +00:00
fd94403a73 fix: ServerApp, do not blindly read the external config path for our settings location
use the default value unless the setting for using the external config is also set
fixes: #9227
2025-11-28 16:22:16 +00:00
d35716f574 feat: Configure default screen lock state
fixes: #7907
2025-11-27 08:22:13 -05:00
b6bc9202db chore: remove unused SecureUtils::pemFileCertFingerprint 2025-11-27 08:05:04 -05:00
4cb184989c refactor: TlsUtility::isCertValid we only use RSA keys for now 2025-11-27 08:05:04 -05:00
ff02285a6a refactor: move SecureUtils::getCertLength -> TlsUtility, and use Qt to get the length of the key file 2025-11-27 08:05:04 -05:00
1a6f81a34b refactor: SecureUtils use QStringLiterals where possible 2025-11-27 08:05:04 -05:00
2dfba73cfb refactor: use QCryptographicHash::Algorithm in place of Fingerprint::Type 2025-11-27 08:05:04 -05:00
52e0daba0f fix: deskflow-core always starts a new instance without --new-instance
fixes: #9216
2025-11-27 07:47:39 -05:00
2f5166fafa fix: keyholding
fixes: #7971
suggested by: PseudoResonance https://github.com/deskflow/deskflow/issues/7971#issuecomment-3570046036
2025-11-27 12:05:47 +00:00
274fae1e31 fix: macOS, crash when log is open and you minimize the gui
fixes: #9206
on macOS the minimize creates a race to show and hide the log
2025-11-25 11:54:24 -05:00
7e278b6210 chore: move gui/tls/TlsUtility -> gui/TlsUtility 2025-11-24 11:23:35 +00:00
5736566a79 refactor: TlsUtility a collection of methods in a namespace 2025-11-24 11:23:35 +00:00
bd4db268f1 chore: remove unused TlsCertificate class 2025-11-24 11:23:35 +00:00
c13421c20a refactor: TlsUtility::generateCertificate() handle all the steps internally and make method static 2025-11-24 11:23:35 +00:00
0d5d66b880 chore: remove unused Settings::tlsLocalDb we no longer use the local fingerprint file 2025-11-24 11:23:35 +00:00
ad01e296dc chore: remove unused TlsCertificate::generateFingerprint 2025-11-24 11:23:35 +00:00
4698326717 refactor: MainWindow keep a local copy of the fingerprint
This also makes it so MainWindow does not use the local_fingerprint file
2025-11-24 11:23:35 +00:00
2087097415 refactor: new static TlsUtility::certFingerprint to generate fingerprint on the fly 2025-11-24 11:23:35 +00:00
94eaa79768 chore: rename MainWindow::regenerateLocalFingerprints -> MainWindow::generateCertificate 2025-11-24 11:23:35 +00:00
6f10cd269e refactor: move TlsCertificate::getCertKeyLength -> static TlsUtility::getCertKeyLength 2025-11-24 11:23:35 +00:00
c4a2dfd300 chore: remove unused TlsUtility::persistCertificate 2025-11-24 11:23:35 +00:00
393c2fa9bc refactor: remove unused TlsCertificate::isCertificateValid 2025-11-24 11:23:35 +00:00
91b9680643 refactor: new static TlsUtiliy::isCertValid 2025-11-24 11:23:35 +00:00
4216acdb3a refactor: TlsUtility::isEnabled is now a static member 2025-11-24 11:23:35 +00:00
bc857a7cb4 ci: use debian stable-slim tag for debian builds 2025-11-22 21:43:06 +00:00
2039106be2 ci: reorder fedora so 42 is in the list before fedora 43 2025-11-22 21:43:06 +00:00
18ed5faf99 build: update flatpak recipe to use kde 6.10 platform 2025-11-22 21:43:06 +00:00
cdf9a5606d ci: add debian testing-slim tags 2025-11-22 21:43:06 +00:00
2166de2114 ci: Remove tomlplusplus and cli11 from freebsd build 2025-11-22 21:43:06 +00:00
15b6da097c i18n(ru): remove mistake and remade sentence for more logic meaning 2025-11-21 15:34:20 -05:00
3b2d687bfd ci: add ubuntu 26.04 runners 2025-11-21 15:10:48 -05:00
dc4947af5c ci: remove ubuntu 25.04 runners 2025-11-21 15:10:48 -05:00
1e4d15c4b6 ci: remove fedora 41 runners 2025-11-21 15:10:48 -05:00
d4ff55da13 Release 1.25.0
Some checks are pending
Continuous Integration / ci-passed (push) Blocked by required conditions
Continuous Integration / test-results (push) Blocked by required conditions
Continuous Integration / lint-reuse (push) Waiting to run
Continuous Integration / lint-clang (push) Blocked by required conditions
Continuous Integration / analyze-valgrind (push) Blocked by required conditions
Continuous Integration / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / windows-2022-arm64 (push) Blocked by required conditions
Continuous Integration / macos-arm64 (push) Blocked by required conditions
Continuous Integration / macos-x64 (push) Blocked by required conditions
Continuous Integration / archlinux-x86_64 (push) Blocked by required conditions
Continuous Integration / debian-13-arm64 (push) Blocked by required conditions
Continuous Integration / debian-13-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-41-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-41-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-42-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-42-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-43-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-43-x86_64 (push) Blocked by required conditions
Continuous Integration / opensuse-arm64 (push) Blocked by required conditions
Continuous Integration / opensuse-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.04-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.04-x86_64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.10-x86_64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (push) Blocked by required conditions
Continuous Integration / flatpak-aarch64 (push) Blocked by required conditions
Continuous Integration / flatpak-x86_64 (push) Blocked by required conditions
Continuous Integration / release (push) Blocked by required conditions
Continuous Integration / winget-publish (push) Blocked by required conditions
2025-11-21 10:09:53 -05:00
d8bdad4e1d fix: translate MainWindow::coreProcessError warning 2025-11-21 09:30:36 -05:00
fb119f3c56 refactor: skip wl-clipboard test when not on wayland but wl-clipboard is installed 2025-11-21 08:27:19 -05:00
525123573e chore: use U for wlclipboard setting name 2025-11-21 10:38:50 +00:00
858a5d71bd fix: enable translations for validators 2025-11-20 16:18:16 -05:00
f88f79ef8d chore: update japanese translation 2025-11-20 16:18:16 -05:00
b547493bc5 refactor(ipc): Add newline in utility write function 2025-11-20 15:08:57 +00:00
cace2892ba fix: append newline to logPath response in DaemonIpcServer 2025-11-20 15:08:57 +00:00
82e23716ac docs(build): Fix minor nits in build docs 2025-11-20 08:15:34 -05:00
92e3e9ac64 refactor: wlClipboard fix some sonar issues 2025-11-20 07:57:31 -05:00
50fd3365e8 chore: WlClipboard remove unused process control methods 2025-11-20 07:57:31 -05:00
4ebf5ff479 refactor: WlClipbaord::empty use QProcess 2025-11-20 07:57:31 -05:00
ab4feaa037 refactor: WlClipbaord::add use QProcess to set the clipboard 2025-11-20 07:57:31 -05:00
21900ade68 refactor: make WlClipboard a QObject subclass 2025-11-20 07:57:31 -05:00
7b0e8e8188 chore: WlClipboard remove unused executeCommand 2025-11-20 07:57:31 -05:00
c5f7a3792a refactor: WlClipboard::get use QProcess 2025-11-20 07:57:31 -05:00
7a60f0cc9e refactor: WlClipboard, use QProcess to get available mimeTypes 2025-11-20 07:57:31 -05:00
9ed0b06a42 refactor: WlClipboard mimetypes use QStrings 2025-11-20 07:57:31 -05:00
5ef4f64b11 refactor: use QDateTime::currentMSecsSinceEpoc behind WlClipboard::getCurrentTime 2025-11-20 07:57:31 -05:00
c7e90d3cf5 refactor: WlClipboard::isAvailable use QStandardPaths::findExecutable to check if the apps exist. remove WlClipboard::checkCommandExists 2025-11-20 07:57:31 -05:00
d157713a85 feat: Settings expose settings to use wl-clipboard backend. Disable clipboard on wayland if this settings is disabled 2025-11-20 07:57:31 -05:00
90e7d475f8 refactor: WlClipboardCollection minor sonar cleanup 2025-11-20 07:57:31 -05:00
ecb03297fd refactor: EiScreen Sonar cleanup for new clipboard items 2025-11-20 07:57:31 -05:00
a09dfad22a chore: WlClipboard remove unused private setClipboardData and setClipboardData methods 2025-11-20 07:57:31 -05:00
9960b657e3 chore: rename EiClipboard -> WaylandClipboardCollection 2025-11-20 07:57:31 -05:00
bbabb91d42 chore: rename src/lib/platform/WaylandClipboard -> src/lib/platform/WlClipboard 2025-11-20 07:57:31 -05:00
e55c67fa2f feat: add wayland clipboard support via wl-clipboard
this is currently based on wl-copy/wl-paste.
One could probably just implement wl-copy/wl-paste without adding much
complexity and better performance.

Co-authored-by: KoljaFrahm <GitHub.Kolja@dfgh.net>
2025-11-20 07:57:31 -05:00
56bb41a291 refactor: also check qt6 paths for translations 2025-11-20 07:29:01 -05:00
4285361413 refactor: replace Q_OS_MAC -> Q_OS_MACOS 2025-11-20 07:29:01 -05:00
37177f8e45 refactor: macos move bundle resources to Deskflow.app/Resources/translations 2025-11-20 07:29:01 -05:00
6eadba1ab2 feat: mac os new build option BUILD_OSX_BUNDLE can be disabled to build a non app bundle 2025-11-20 07:29:01 -05:00
aa11dc94ba build: macos, copy translations post build into the bundle no need to install them 2025-11-20 07:29:01 -05:00
82c18e26e5 doc: fix dev documents mis aligned quotes 2025-11-20 07:07:32 -05:00
e7018bd75a fix: Fix broken <br/> tag in the tooltop of suggested IP addresses 2025-11-20 06:29:54 -05:00
10585e6afd build: fix desktop file lint 2025-11-19 20:30:41 +00:00
35d26645a7 build: place core built runtime on mac os in the app bundle, must use generator expression here 2025-11-19 20:30:41 +00:00
2376c61292 feat: Add russian translation 2025-11-19 12:12:16 -05:00
43a04308f0 ci: use macos15 runners 2025-11-19 09:43:58 -05:00
0463518baa build: do not use generator expressions to see install paths 2025-11-19 14:13:21 +00:00
8e7a950d11 feat: Added Chinese (simplified) translation 2025-11-19 07:34:48 -05:00
ae5dc085d5 feat: Added Japanese translation 2025-11-18 06:13:59 -05:00
bc9bc906a5 refactor: EventLogger sonar suggestion to define index2 in the if 2025-11-17 12:07:00 +00:00
0890bcac42 chore: logger make deconstructor an override 2025-11-17 12:07:00 +00:00
22d27f7245 fix: Settings, add a new private cleanScreenName method to update the screenName
Fixes: #9156
Names: contain only A-Z a-z 0-9 or - or . or _
       replace any spaces with _
       are < 256 characters in length
       can not start or end with - _ or .
Set a screen name if the settings does not have one do this instead of returning a default value
2025-11-17 10:21:31 +00:00
94b7e2ffff github: Add more options to the issue config 2025-11-14 10:46:15 -05:00
1a9e468c86 refactor: Settings store envvar checks so they only need to be read once when checking 2025-11-14 09:55:28 -05:00
204a6cca8a refactor: Settings make the name checking regex static in the method 2025-11-14 09:55:28 -05:00
4df7c54afb refactor: Settings make the internal setting objects children 2025-11-14 09:55:28 -05:00
999f174441 fix: Gui save and restore the window when closing and restoring to the tray 2025-11-14 09:55:28 -05:00
aca08a5e74 feat: save geometry into into a state file
fixes: #9132
2025-11-14 09:55:28 -05:00
ddcd2f0ff1 refactor: Logger store a local copy of the used setting value for guiDebug, update it went the settings have changed 2025-11-14 09:22:40 -05:00
ec9f7efcff refactor: Logger is now a proper singleton 2025-11-14 09:22:40 -05:00
8256a3ba43 refactor: allow for movable events
based on: 2f5c612ade
2025-11-14 09:05:37 -05:00
e011351aad refactor: remove event.cpp, event code is just the header now
basedon: 6b7d45e9c4
2025-11-14 09:05:37 -05:00
ad33114e0c chore: remove unused Client::sendEvent data argument
based on: 307fdfe1b3
2025-11-14 09:05:37 -05:00
4728525ece fix: Fix memory leak in EventQueue
Previously empty event targets were never fully removed from EventQueue
even after unregistration. This may lead to unbounded increase of memory
use if new event targets are allocated to new memory locations.
ported: c960360106
2025-11-14 09:05:37 -05:00
cbc74d99b0 refactor: server Store button info by value
based on: 55e727be14
2025-11-14 09:05:37 -05:00
f372ccd2b8 refactor: only include the ISO639Table with X11 support enabled 2025-11-14 13:28:41 +00:00
4d2597c31b refactor: XDGKeyUtil no need to add std:: for uint32_t 2025-11-14 13:28:41 +00:00
281cda1d14 refactor XDGKeyUtil::mapKeyToKeyID cleanup default case make i in the if and not case the already right type returned 2025-11-14 13:28:41 +00:00
4a67694676 build: new build option BUILD_X11 to control building of X11 backend 2025-11-14 13:28:41 +00:00
f45df39032 refactor: XDGKeyUtil, make s_keySymToUCS4 static map 2025-11-14 13:28:41 +00:00
186a20a1ac feat: XDGKeyUtil, use Xkbcommon Keysym names
this removes the need for any x11 releated headers when using EI screens
2025-11-14 13:28:41 +00:00
7eee265010 refactor: make s_map1008FF private static array 2025-11-14 13:28:41 +00:00
b3cd759a4e chore: remove unused KeySyms Tyepdef 2025-11-14 13:28:41 +00:00
93beb491db fix: Split XKB code out of XWindowsUtil to allow building without X11
the xprotoheaders are still required for EI, but nothing more.
2025-11-14 13:28:41 +00:00
6d89ee0660 chore: StreamChunker remove unused includes 2025-11-13 11:40:24 +00:00
b2cdf38fca chore: remove unneeded using namespace std 2025-11-13 11:40:24 +00:00
567766508a ci: do not force ci to rerun if a pr was marked ready for review without additional code changes 2025-11-13 10:17:24 +00:00
1b67293d9c ci: name sonar and codeql jobs after their respective tools making them easier to distinguish on the ci report 2025-11-13 10:17:24 +00:00
75922cb944 ci: Skip CodeQL when the changes will not will change the scan results 2025-11-13 10:17:24 +00:00
e712bf6c8e ci: Skip sonarcloud when the changes will not change the scan results 2025-11-13 10:17:24 +00:00
f26ea08469 docs: Highlight that Input Leap has become inactive
The Input Leap project (an attempt to continue Barrier development, a dead fork) has been inactive for a long while now.

This PR updates the readme to reflect this.
2025-11-11 15:02:56 -05:00
6a86c2990e fix: Adjust OS X MouseMove handling to use live cursor position. 2025-11-11 11:15:41 -05:00
859af720c9 feat: add a new core option --new-instance to skip the core check for a running instance 2025-11-11 09:33:35 -05:00
5441464a1d fix: do not make windows users select .sgc files, enable i18n for the server config dialog 2025-11-11 12:30:36 +00:00
de63751516 refactor: CoreArgParser use kCoreBinName in place of class created static 2025-11-11 12:11:34 +00:00
39382bfd8c fix: Prevent out-of-bounds access for Qt string when building TLS fingerprint
Only happens when using debug build of Qt lib because release Qt is optimized and doesn't check for bounds for the sake of efficiency.
2025-11-10 21:18:56 +00:00
477c7b07e5 chore: Fix typos for var names in formatSSLFingerprintColumns 2025-11-10 21:18:56 +00:00
63026752b5 ci: Use deskflow version in the title for continuous release 2025-11-10 15:59:52 -05:00
5bcefbe582 build: install runtime depends on windows to CMAKE_INSTALL_LIBDIR, set CMAKE_INSTALL_LIBDIR to . on windows 2025-11-10 07:51:12 -05:00
8e754b2ce2 build: linux deploy use CMAKE_INSTALL_DATADIR in place of hard coded share 2025-11-10 07:51:12 -05:00
1556908ef6 build: use CMAKE_INSTALL_BINDIR when installing runtime artifacts
On windows override this to be .
On macOS set it to the MacOS folder in the bundle
2025-11-10 07:51:12 -05:00
57d36b51af build: Simplify the install of translation files 2025-11-10 07:51:12 -05:00
c72cdedd4f build: place the install steps for the license data in the main CMakeLists.txt 2025-11-10 07:51:12 -05:00
759457f739 build: remove option to build gui
The Gui must always be built. The core can not function completely standalone
 it is unable to add new clients or setup screens for example until such a time the gui is not optional.
2025-11-10 07:51:12 -05:00
78c90fe7c6 fix: Crash caused by hostnames with invalid characters returned by machine name.
fixes: #9006

Only cleans the hostname if the system is using the default
Replace Spaces with _
Remove any other non word characters
2025-11-10 07:32:48 -05:00
1875c599a4 refactor: define EventQueueTimer to its own header not once per IEventQueue impl 2025-11-10 07:08:29 -05:00
ab1a87ba04 chore: remove MsWindowClipboardTextConverter 2025-11-10 11:52:42 +00:00
d492ddfbbb chore: LogOutputters remove unused includes 2025-11-07 15:54:19 -05:00
cad92d2ff7 chore: IEventQueue remove unused includes 2025-11-07 15:54:19 -05:00
9737f23f5c chore: FinalAction include utility 2025-11-07 15:54:19 -05:00
e26c737776 chore: EventQueue remove unused includes 2025-11-07 15:54:19 -05:00
d36576a079 chore: StreamChunker include string_view not string 2025-11-07 15:54:19 -05:00
e48ee3d368 chore: ServerApp remove unused includes 2025-11-07 15:54:19 -05:00
891d5c9bb7 chore: Screen remove unused includes 2025-11-07 15:54:19 -05:00
cbf3627ae2 chore: ProtocolUtil remove unused includes 2025-11-07 15:54:19 -05:00
44882cfa7a chore: ProtocolTypes remove unused includes 2025-11-07 15:54:19 -05:00
c91e051082 chore: PlatformScreen remove unused includes 2025-11-07 15:54:19 -05:00
e01837579d chore: PacketStreamFilter remove unused includes 2025-11-07 15:54:19 -05:00
0a5b39be7a chore: OptionTypes removed unused includes 2025-11-07 15:54:19 -05:00
19f49e746b chore: MouseTypes include cstdint directly 2025-11-07 15:54:19 -05:00
8d34bfdcc6 chore: ISecondaryScreen remove unused includes 2025-11-07 15:54:19 -05:00
725c2e96a4 chore: IScreenSaver remove unuse includes 2025-11-07 15:54:19 -05:00
113801f967 chore: IScreen remove unused includes 2025-11-07 15:54:19 -05:00
c3e017bd68 chore: IPrimaryScreen remove unused includes 2025-11-07 15:54:19 -05:00
71bb8eb750 chore: IKeyState remove unused includes 2025-11-07 15:54:19 -05:00
01cdbf48d4 chore: IClipboard remove unused includes 2025-11-07 15:54:19 -05:00
04bea86254 chore: DisplayInvalidException only include stdstring on apple systems 2025-11-07 15:54:19 -05:00
176b5c2459 chore: Chunk remove unused includes 2025-11-07 15:54:19 -05:00
dad46a5a34 chore: AppUtil remove unused includes 2025-11-07 15:54:19 -05:00
997b0c5f1b chore: X11LayoutParser remove unused includes 2025-11-07 15:54:19 -05:00
a13e3f895d chore: DeskflowXkbKeyboard remove unused includes 2025-11-07 15:54:19 -05:00
6a895f5c45 chore: VersionChecker remove unused includes 2025-11-07 15:54:19 -05:00
98a49b7f7a chore: StyleUtils include missing QIcon 2025-11-07 15:54:19 -05:00
4b3399d951 chore: LogDock remove unused includes 2025-11-07 15:54:19 -05:00
2743e1dbae chore: KeySequenceWidget remove unused includes 2025-11-07 15:54:19 -05:00
aff73bbded chore: StreamBuffer remove unused includes 2025-11-07 15:54:19 -05:00
f8b299ff67 chore: IStream remove unused includes 2025-11-07 15:54:19 -05:00
f294daa077 chore: TCPSocketFactoryy remove unused includes 2025-11-07 15:54:19 -05:00
e389b2ed56 chore: TCPSocket remove unused includes 2025-11-07 15:54:19 -05:00
9b145c2739 chore: SocketMultiplexer remove unused includes 2025-11-07 15:54:19 -05:00
bc8dcf76ad chore: SecureUtils remove unused includes 2025-11-07 15:54:19 -05:00
93f42df4db chore: SecureListenSocket remove unused includes 2025-11-07 15:54:19 -05:00
00f10bdb14 chore: NetworkAddress remove unused includes 2025-11-07 15:54:19 -05:00
2ca2500954 chore: ISocket remove unused includes 2025-11-07 15:54:19 -05:00
b20201007e chore: IListenSocket remove unused includes 2025-11-07 15:54:19 -05:00
959e6b2d0d chore: IDataSocket remove unused includes 2025-11-07 15:54:19 -05:00
65a7fbb90b chore: Server remove unused includes 2025-11-07 15:54:19 -05:00
c2ae5eae08 chore:InputFilter remove unused includes 2025-11-07 15:54:19 -05:00
06ac0a747f chore: ClientProxyUnknown remove unused includes 2025-11-07 15:54:19 -05:00
e2a78ac5ac chore: ClientProxy1_7 remove unused includes 2025-11-07 15:54:19 -05:00
9f213fa1dd chore: ClientProxy1_5 remove unused includes 2025-11-07 15:54:19 -05:00
6924c4f09d chore: ClientProxy1_4 remove unused includes 2025-11-07 15:54:19 -05:00
58bb8a0fcf chore: ClientProxy1_3 remove unused includes 2025-11-07 15:54:19 -05:00
e8702cd716 chore: ClientProxy1_1 remove unused includes 2025-11-07 15:54:19 -05:00
fb5e532ff6 chore: ClientProxy remove unused includes 2025-11-07 15:54:19 -05:00
1e371ad84a chore: ClientListener remove unused includes 2025-11-07 15:54:19 -05:00
7ce5ce5d41 chore: XWindowsUtils remove unused includes 2025-11-07 15:54:19 -05:00
68a15486ae chore: XWindowsScreen remove unused includes 2025-11-07 15:54:19 -05:00
bb42cfb8fd chore: XWindows Clipboard remove unused includes 2025-11-07 15:54:19 -05:00
af0321ce77 chore: XDGPowerManager remove unused includes 2025-11-07 15:54:19 -05:00
fbdee8e10e chore: PortalRemoteDesktop remove unneeded includes 2025-11-07 15:54:19 -05:00
489d984ab6 chore: PortalInputCapture remove unused includes 2025-11-07 15:54:19 -05:00
1e672bb8a1 chore: EiScreen remove unused includes 2025-11-07 15:54:19 -05:00
6147e9604b chore: EiEventQueueBuffer remove unneeded includes 2025-11-07 15:54:19 -05:00
97367a20c5 chore: OSXUchrKeyResouce remove unused includes 2025-11-07 15:54:19 -05:00
5a029110a3 chore: OSXScreenSaver remove unused includes 2025-11-07 15:54:19 -05:00
e4557c6b95 chore: OSXScreen remove unused includes 2025-11-07 15:54:19 -05:00
685312866b chore: OSXKeyState remove unused includes 2025-11-07 15:54:19 -05:00
a0959e0334 chore OSXClipboardTextConvertor remove unused includes 2025-11-07 15:54:19 -05:00
a376a714e8 chore: OSXClipboardAnyBitmapConverter remove unused includes 2025-11-07 15:54:19 -05:00
21a7d7db4b chore: OSXClipboard remove unused includes 2025-11-07 15:54:19 -05:00
b4649b4f9c chore: AppUtilWindows remove unused includes 2025-11-07 15:54:19 -05:00
0a407b6726 chore: Remove checkfor windows < xpSp3 we need windows 7 or higher to runthe app now 2025-11-07 15:54:19 -05:00
8b89489d40 chore: MSWindowsHook inclue Directional Types directly not thru protocol types 2025-11-07 15:54:19 -05:00
e8073de989 chore: MSWindowsEventQueueBuffer remove unused includes 2025-11-07 15:54:19 -05:00
74e4f1a1e1 chore: MSWindowsClipboardTextConvertor remove unused includes 2025-11-07 15:54:19 -05:00
d9493da173 chore: MsWindowsClipboardFacade, remove unused includes 2025-11-07 15:54:19 -05:00
0e8fdb18d8 chore: MsWindowsClipboard, remove unused includes 2025-11-07 15:54:19 -05:00
e07a9f58f7 refactor: MSWindowsClipBoard, use Text converter as last option 2025-11-07 15:54:19 -05:00
1f6f6d5dc6 chore: remove unused Common/Common.h 2025-11-07 15:54:19 -05:00
19814c61d7 chore: MSWindowsProcess remove unused includes 2025-11-07 15:54:19 -05:00
66efc9c70e chore: Unicode remove use of common/Common and use system headers needed directly 2025-11-07 15:54:19 -05:00
c4fd8699f9 chore: ArchNetworkBsd Remove unneeded includes 2025-11-07 15:54:19 -05:00
5dc8263e54 chore: ServerProxy remove unused includes 2025-11-07 15:54:19 -05:00
52b23e6609 chore: Client remove unused includes 2025-11-07 15:54:19 -05:00
90fb80872c chore: deskflow-gui remove unneeded includes 2025-11-06 09:12:18 -05:00
754210e8f4 chore: SettingsDialog remove uneeded includes 2025-11-06 09:12:18 -05:00
5966b8f1b8 chore: SecureSocket remove unused includes 2025-11-06 09:12:18 -05:00
72496548de chore: PrimaryClient remove unneeded includes 2025-11-06 09:12:18 -05:00
0091cc5e9a chore: Path remove unneeded includes 2025-11-06 09:12:18 -05:00
241be6abd8 chore: MainWindow remove unneeded includes 2025-11-06 09:12:18 -05:00
f0eaa3efaa chore: IKeyState Remove unneeded includes 2025-11-06 09:12:18 -05:00
f56073a090 chore: FileSystem remove unneeded includes 2025-11-06 09:12:18 -05:00
ca2a7d14f0 chore: DaemonApp remove unneeded includes 2025-11-06 09:12:18 -05:00
3ffe8d7c86 chore: CoreProcess remove unneeded includes 2025-11-06 09:12:18 -05:00
e130cbb706 chore: server/Config remove unneeded includes 2025-11-06 09:12:18 -05:00
e6792b00d7 chore: remove unused includes 2025-11-06 09:12:18 -05:00
f89e857223 refactor: Add deskflow::platform::isMac 2025-11-06 09:12:18 -05:00
5256f05963 refactor: addNew PlatformInfo::isWindows() 2025-11-06 09:12:18 -05:00
8e83b16f5e chore: move platform/Wayland.h -> common/PlatformInfo.h 2025-11-06 09:12:18 -05:00
c18e3c9ef2 refactor: platform/wayland move consts kHasEI etc into wayland Warnings 2025-11-06 09:12:18 -05:00
0a67f63af6 fix: ServerApp use the port configured by the user 2025-11-06 13:30:23 +00:00
8ef2319b0d chore: ServerApp, remove unused includes 2025-11-06 13:30:23 +00:00
0e98702944 chore: ClientApp: remove unused includes 2025-11-06 13:30:23 +00:00
080a6e8b54 fix: ClientApp, use the port in settings in place of default port 2025-11-06 13:30:23 +00:00
8fadbecf00 chore: make TMethodJob const void* 2025-11-05 22:07:16 +00:00
eab38dc23e fix: High Cpu use on windows
port: 95f2a840be
Fixes: #8970
2025-11-05 21:46:20 +00:00
3e76a39326 chore: remove unused IEventQueue::isEmpty
port: 8ab6ad64f9
2025-11-05 21:46:20 +00:00
3af83dd9f2 refactor: remove DotEnv 2025-11-05 11:31:29 +00:00
aba38b949f feat: add new setting Log::GuiDebug to control when the Gui shows debug messages no longer controled by an ENV var 2025-11-05 11:31:29 +00:00
67ceedcad0 refactor: Settings use static list of settings that default to true and another that default to false 2025-11-05 11:31:29 +00:00
6c8c6f5208 feat: Show milliseconds in time values
fixes: #7861
2025-11-04 10:47:14 -05:00
6ab1579d38 refactor: Log remove unneeded includes 2025-11-04 10:47:14 -05:00
fc6e9f1447 refactor: Simplify log::makeMessages method for getting current time by using QDateTime object 2025-11-04 10:47:14 -05:00
1750dd9149 chore: AboutDialog remove unneeded includes 2025-11-04 10:47:14 -05:00
8134521cca chore: remove unused MainWindow::getTimeStamp 2025-11-04 10:47:14 -05:00
b204204920 refactor: Logger::PrintLine use Qt::IsoDate for timestamp 2025-11-04 10:47:14 -05:00
8066ac8e2f refactor: logger::PrintLine use less streams and use the one we need directly 2025-11-04 10:47:14 -05:00
43989dc964 refactor: logger: use QStringLiterals 2025-11-04 10:47:14 -05:00
c066e394a8 refactor: Logger::instance return a pointer to the logger static object 2025-11-04 10:47:14 -05:00
78eae652fd refactor: directly set logger::m_debug using when in debug mode 2025-11-04 10:47:14 -05:00
e1c0803018 chore: remove unused kDebugBuild 2025-11-04 10:47:14 -05:00
1d82be270a chore: remove logger:m_verbose and related method 2025-11-04 10:47:14 -05:00
b22fa1550a refactor: do not mark the protocol names Barrier and Synergy for translation 2025-11-04 10:26:51 +00:00
dc0a85d34f fix: net: use an exception in NetworkAddress::resolve()
Instead of asserting that the number of resolved ipv4 addresses is nonzero,
throw an exception. This will prevent the core from aborting if the host has
no ipv4 addresses.

The host can get into this state if the remote device loses its ipv4
advertisement midway through resolving, such as if an mdns host unpublishes
its ipv4 address as a result of going into a low-power state.

Signed-off-by: Sean Cross <sean@xobs.io>
2025-11-03 10:04:43 -05:00
9f669dbbce ci: Set OSX_DEPLOYMENT_TARGET as a configuration option 2025-11-03 09:40:59 -05:00
a5bcc90988 feat: Added Italian translation 2025-11-03 09:17:37 -05:00
acd4b59b4c refactor: Center drag point for screen management 2025-11-03 08:56:23 -05:00
50240c1fc3 refactor: Arch do not include common/Common.h use config.h where neeed as a result 2025-11-03 13:31:28 +00:00
091d309444 chore: deskflow-core remove unused iostream include 2025-11-03 13:31:28 +00:00
90d6fc6f08 refactor: Assume inet_atom on unix
ported ed2d44c346\#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20a
2025-11-03 13:31:28 +00:00
6ff8b053af refactor: fail without posix sigwait, remove from Config.h.in
based on 998a9d1735
2025-11-03 13:31:28 +00:00
1f950f4c2a refactor: define SYSAPI_WINDOWS and WINAPI_WINDOWS in cmake, remove the define from Common.h 2025-11-03 13:31:28 +00:00
4afc20e2c3 chore: remove unused _THREAD_SAFE define 2025-11-03 13:31:28 +00:00
550f7c3e06 refactor HAS_FORMAT => HAVE_FORMAT 2025-10-31 12:21:47 +00:00
135fe27007 refactor: look for cxx20 format support on all oses 2025-10-31 12:21:47 +00:00
7e6a674210 refactor: forward HAS_FORMAT define into c++ 2025-10-31 12:21:47 +00:00
dc997a80d5 ci: Add Ubuntu 25.10 2025-10-31 10:21:08 +00:00
293c321ba5 ci: Add Fedora 43 2025-10-31 10:21:08 +00:00
4816608c50 chore: add new .qtcreator user dir to ignore list 2025-10-30 17:38:09 +00:00
14fa29505d refactor: Allow for colorful tray icon but fall back to symbolic with fallback 2025-10-30 09:40:00 +00:00
eee4efd59d refactor: Only use symbolic tray icon 2025-10-29 13:23:47 -04:00
066e63cc86 refactor: make sure flatpak and snap use packed icons, they can not detect panel color 2025-10-29 13:23:47 -04:00
f4ca17ba3d refactor: Remove RetryOnFailure, Client will always retry and Server will never retry 2025-10-29 08:32:58 -04:00
8c6fa880b4 refactor: SecureSocket do not set retry on failure to false when disconnecting 2025-10-29 08:32:58 -04:00
83e0a6b1ea refactor: SSL_Options, ignore client disconnect w/o close message 2025-10-29 08:32:58 -04:00
495a5e6479 refactor: MainWindow, do not reinit serverconfig 2025-10-29 08:14:39 -04:00
def479bc7b chore: add missing es translation 2025-10-29 08:14:39 -04:00
0bf6e1e9f8 feat: Apple codesign support for development builds 2025-10-29 07:51:40 -04:00
a140b3bcca refactor: MainWindow update window icon on palette change, prevent issues where the palette change does not change the icon and make its blend weirdly 2025-10-28 07:39:14 -04:00
8b513efc95 feat: mainWindow check panel color on windows when deciding upon try icon color 2025-10-28 07:39:14 -04:00
17392a8e06 refactor: rename symbolic icon to full fqdn name. 2025-10-28 07:39:14 -04:00
ddc827e6f1 feat: support symbolic icon deployment and recoloring linux, unify setTrayIcon to use theme icons only 2025-10-28 07:39:14 -04:00
72792e7d4d chore: simplify deskflow svg icon files 2025-10-28 07:39:14 -04:00
1b6a5ced08 refactor: rename deskflow linux deployed icon to org.deskflow.deskflow 2025-10-28 07:39:14 -04:00
9906421460 feat: Dynamic translation of GUI, able to restart the application without exiting 2025-10-28 07:18:53 -04:00
a62613f219 refactor: deskflow-gui add newline after the lang is written to console 2025-10-28 07:18:53 -04:00
91a82b22b2 refactor: MainWindow make menu items private members 2025-10-28 07:18:53 -04:00
73e44916e7 refactor: SettingsDialog, support LanguageChange Event 2025-10-28 07:18:53 -04:00
84d2c56b54 refactor: LogDock, support LanguageChangeEvent 2025-10-28 07:18:53 -04:00
18d90aa0bf refactor: use curly initilize for list of QDirs in I18N 2025-10-28 07:18:53 -04:00
40c20e3f5e chore: rm Unused gui/DataDownloader 2025-10-28 09:30:36 +00:00
1e0bd5822a chore: remove unused AddClientDialog 2025-10-28 08:59:45 +00:00
7b0d74aace chore: rm unused ServerConfig::ScreenAddResults 2025-10-28 08:59:45 +00:00
becbb01286 chore: rm unimplimented ServerConfig::getClientAddress and ServerConfig::setClientAddress 2025-10-28 08:59:45 +00:00
fc1769ce66 chore: rm Unused ServerConfig::addToFirstEmptyGrid 2025-10-28 08:59:45 +00:00
31573bf6e8 chore: rm Unused ServerConfig::m_pMainwindow 2025-10-28 08:59:45 +00:00
2efcc76933 chore: rm unused ServerConfig::showAddClientDialog 2025-10-28 08:59:45 +00:00
3580b4ead9 chore: rm unused ServerConfig::autoAddScreen 2025-10-28 08:59:45 +00:00
a82e9a4a74 chore: remove unused MainWindow::autoAddScreen 2025-10-28 08:59:45 +00:00
2d7174c3b2 feat: expose language settings, populate a basic spanish translation 2025-10-27 17:54:32 -04:00
c3f0b18df6 feat: support translation generation 2025-10-27 17:54:32 -04:00
71c1bb87ca refactor: Mainwindow prepare for translations by simplifying MainWindow::serverClientsChanged to use plural form always 2025-10-27 17:54:32 -04:00
bf3fd82630 chore: use kAppName and kAppId more to avoid unneed translations of Deskflow / deskflow 2025-10-27 17:54:32 -04:00
bdacd6a994 chore: prepare for translation remove tr calls from placeholder strings in ui files 2025-10-27 17:54:32 -04:00
Gio
f2a3c708a8 refactor: Update footer text in FingerprintDialog
Fix up wording in connection / fingerprint dialog
2025-10-27 16:32:37 +00:00
77bf32cb0e chore: update dmg-volume icon used for mac os dmg 2025-10-27 16:15:33 +00:00
0ca87f7576 docs: Remove github logo image on main page 2025-10-27 15:54:12 +00:00
b96e94be14 docs: Set a fav icon and logo for generated documentation 2025-10-27 15:54:12 +00:00
091dbc0729 chore: IClient.h remove unneeded overrides of nothing 2025-10-27 15:36:40 +00:00
29f7a57d97 chore: App.h remove unneeded forward declration 2025-10-27 15:36:40 +00:00
8d0c1af032 chore: IListenSocket remove unneeed overrides of nothing 2025-10-27 15:36:40 +00:00
2b83a0ac0f chore: IDataSocket remove unneeed overides of nothing 2025-10-27 15:36:40 +00:00
453686655b chore: IPlatformScreen remove unneeed overrides of nothing 2025-10-27 15:36:40 +00:00
61f3113d61 chore: remove unused Arch::setInstance 2025-10-27 15:36:40 +00:00
bf6986bcba chore: remove unused Arch::Arch(Arch *arch) 2025-10-27 15:36:40 +00:00
6b2c3c1844 chore: remove unused ILogOutputters:show 2025-10-27 15:36:40 +00:00
023e8dc78e chore: remove unused ARCH->showLog 2025-10-27 15:36:40 +00:00
b5c188abbc refactor: use theme icon for tray on windows 2025-10-24 16:26:38 +01:00
8226c4162b fix: [build]Fix build issue without format support
add C++20 <format> support checks in Unix libraries and update logging format usage.

Log: Fix build issue without format support.
2025-10-24 15:08:11 +00:00
2016ce887b fix: stuck modifiers after screen unlock on windows
Fix stuck modifiers (like the windows key) after unlock on Windows
by updating keyboard state after every desk switch.
2025-10-24 15:38:27 +01:00
4a0e2c492c docs: Add CODEOWNERS file to for default PR review requests 2025-10-24 14:04:01 +00:00
a34971fee7 refactor: call xkb_keymp_num_levels_for_key, to apply shift in EiState::mapKeyfromKeyval 2025-10-24 14:46:49 +01:00
5fc4e9dba6 fix: ctrl+alt+fn issue 2025-10-24 00:30:38 +00:00
42b90a2b14 feat: update icon theme on theme change 2025-10-21 11:05:10 -04:00
6b05c2abc0 refactor: use QPushButtons and fake toolbutton style without using a style sheet 2025-10-21 11:05:10 -04:00
697cd57adb refactor: rename MainWindow::setIcon -> MainWindow::setTrayIcon to better reflect what the method does 2025-10-21 11:05:10 -04:00
88e385d050 refactor: move icon theme settings to styleUtils::updateIconTheme 2025-10-21 11:05:10 -04:00
91b836a486 fix: SettingsDialog, set the UAC hidden by default unless on windows
fixes: #9054
2025-10-21 14:36:17 +01:00
b8bd6903e4 fix: client to server modifier press/release
Pressing a modifier on the client and moving to the server and releasing
it breaks the modifier on the client. This resolves the issue.
2025-10-21 13:54:40 +01:00
ea7a493c13 fix: dangling pointer from scoped var 2025-10-21 13:32:13 +01:00
e108afdb80 chore: remove Cpp file for ArchDaemonNone 2025-10-17 09:41:56 +01:00
4be0dd3d9d chore: remove unneeded ArchDaemonUnix subclass 2025-10-17 09:41:56 +01:00
55a9596bd5 chore: use Settings::setingsFile in place of instance()->.. 2025-10-17 09:07:21 +01:00
71fc1a47fb chore: update generated pkgbuild to be more like the aur deskflow-git one 2025-10-17 09:07:21 +01:00
d036c5a07c chore: set CMAKE_PROJECT_HOMEPAGE_URL value 2025-10-17 09:07:21 +01:00
e1fbcb379e chore: Sub classes and overloads not usings parameters of the base methods have the varible names removed 2025-10-17 09:07:21 +01:00
ed8e71072e refactor: use first(n) in place of mid(0, n) 2025-10-17 09:07:21 +01:00
dbc3229b40 refactor: ArchNetworkBSD, set addr to nullprt after delete to avoid returning invalid pointer 2025-10-17 09:07:21 +01:00
8b489b8301 chore: remove unneeded semi colons from several places 2025-10-17 09:07:21 +01:00
d32b98ec34 refactor: EiScreen Define Spaceship op for EiScreen::HotKeyItem 2025-10-17 09:07:21 +01:00
78e394a210 fix: apply scroll lock setting on initialization
Co-authored-by: Nick Bolton <nick@symless.com>
2025-10-17 03:50:53 -04:00
c11a1caf59 fix: handle xkb_keymap_mod_get_mask returning 0 2025-10-16 11:57:11 -04:00
debfd4dc69 refactor: deskflow core print any parser errors 2025-10-15 15:04:08 +01:00
41d5359f4d Refactor: deskflow-core remove non essential options move CoreArgs and CoreArgParse to apps/deskflow-core 2025-10-15 15:04:08 +01:00
34f56af6d6 refactor: set Remote host when it changes on the line edit. 2025-10-15 09:38:11 -04:00
687fd5411a refactor: Rename setSettingFile to setSettingsFile for consistency 2025-10-15 08:59:09 -04:00
bb1394ceeb feat: Change to local user ini (not native)
Windows registry is horrible to deal with and makes it impractical to pass settings to the Core when run via daemon on Windows.

- Pass settings path to Core when launched via daemon
- Introduce portable mode detection logic on Windows
- Generalize `m_settingsFile` use
- Reduce #ifdef size for Settings ctor path logic
2025-10-15 08:59:09 -04:00
3ece50e292 fix: Invert noHooks to useHooks to match new config 2025-10-14 09:04:00 -04:00
497813e198 docs: Move Windows redist instructions up 2025-10-14 12:37:32 +01:00
a4aa540bc8 ci: make vcpkg pull from master on ci 2025-10-13 20:13:12 +01:00
58c750471f ci: Use Qt 6.10 2025-10-13 10:19:42 -04:00
7c3ec372df chore: use std::ignore in diagnostic reset 2025-10-13 10:19:42 -04:00
0f335d46bb fix: Store server config window state in memory instead of on disk 2025-10-13 08:50:30 -04:00
2b203c8cdd refactor: use CoreProcess::CorrectedAddress in CoreProcess::setAddress 2025-10-13 08:34:12 -04:00
ac7bd1ceca refactor: CoreProcess make wrapIpv6, Simplify wrapIpV6 method 2025-10-13 08:34:12 -04:00
de6be901b9 refactor: CoreProcess use Settings::defaultvalue for server Config in place of constructing in CoreProcess 2025-10-13 08:34:12 -04:00
0ab65410cc refactor: CoreProcess::restart simplify method 2025-10-13 08:34:12 -04:00
a057437e1a refactor: MainWindow::coreProcessStarting move logic into coreProcessStateChanged 2025-10-13 08:34:12 -04:00
f9c007cc3a refactor: CoreProcess Remove the starting signal and use it like the others via CoreProcess::coreProcessStateChanged 2025-10-13 08:34:12 -04:00
d45196304f chore: CoreProcess remove unsed includes 2025-10-13 08:34:12 -04:00
004089f887 refactor: Coreprocess remove single use one liner persistLogDir, make dir in start if needed 2025-10-13 08:34:12 -04:00
13990438d3 refactor: CoreProcess::processStateToString use QVariant conversion to string, make static member of CoreProcess 2025-10-13 08:34:12 -04:00
a120441a10 refactor: CoreProcess::processModeToString use QVariant::fromValue().toString().toLower() to create the string, make method static member of CoreProcess 2025-10-13 08:34:12 -04:00
26c2f672be chore: remove unimplimented CoreProcess::processModeString 2025-10-13 08:34:12 -04:00
48195f9347 refactor: CoreProcess::start seed args with value of coreMode, use it when checking if server 2025-10-13 08:34:12 -04:00
5a632bbb6d refactor: remove CoreProcess::modeString 2025-10-13 08:34:12 -04:00
173638d6f5 refactor: CoreProcess remove addSeverArgs handle server config in CoreProcess::start 2025-10-13 08:34:12 -04:00
bd0c5a68f1 refactor: CoreProcess append log option in start Method, remove now unused addClientArgs , and args parameter from addServerArgs 2025-10-13 08:34:12 -04:00
e3f940c70a refactor: Simplify CoreProcess::QuoteArgs, use QString::Simplify and simplify logic in the loop 2025-10-13 08:34:12 -04:00
bb1e2ecc78 refactor: makeQuotedArgs is now a static private member or CoreProcess 2025-10-13 08:34:12 -04:00
8d0c368c8f refactor: CoreProcess::start return early if called with coreMode of None 2025-10-13 08:34:12 -04:00
9e94a4fe0e refactor: CoreProcess::start, early return if process is already started 2025-10-13 08:34:12 -04:00
8d577aaa93 fix: Always rune code scanning, even if draft PR 2025-10-13 08:10:30 -04:00
47662c359e chore: Use new SonarCloud action
refactor: Rename job from 'sonarcloud-analysis' to 'analyze' in SonarCloud workflow

refactor: Reorder SonarQube scan and build wrapper installation steps in SonarCloud workflow

refactor: Update SonarQube scan step to use new action and streamline options

fix: Update SonarQube scan step to correctly pass coverage report paths and environment variables

fix: Set CPU core count to a fixed value in SonarCloud analysis workflow

refactor: Move 'Install Build Wrapper' step to the correct position in the SonarCloud analysis workflow

refactor: Remove unused Sonar Scanner environment variables from analysis workflow
2025-10-13 08:10:30 -04:00
4fb76bec41 refactor: Remove matrix strategy for CodeQL analysis and set language directly 2025-10-13 08:10:30 -04:00
5945114b7b refactor: Run SonarCloud workflow standalone and cleanup comments
fix: Prevent SonarCloud analysis from running on draft pull requests
2025-10-13 08:10:30 -04:00
559b7b5a17 chore: Standardize quotes and formatting in CI workflow 2025-10-13 08:10:30 -04:00
a346ff6161 chore: X11LayoutsParser remove stray semi colon 2025-10-13 12:45:44 +01:00
eed4b49ea0 chore: remove unused member App::configSection 2025-10-13 12:45:44 +01:00
88c0c49ba3 chore: remove unused member App::s_helpVersionArgs 2025-10-13 12:45:44 +01:00
f64d430f96 fix: Remove assertion for unused name parameter in daemonize function 2025-10-13 07:23:59 -04:00
f4a6d3d43d chore: fix up feature request yml 2025-10-09 09:28:19 -04:00
04b3f5c769 chore: remove unused name parameter from ARCH->daemonize 2025-10-09 13:30:41 +01:00
aae3067f03 fix: stop retry if core has crashed
fixes: #9003
2025-10-07 14:57:22 +01:00
0820c5a188 chore: add note to feature request for up or down vote 2025-10-07 08:25:47 -04:00
8ea2671e65 refactor: cleanup daemonApp args 2025-10-07 13:01:47 +01:00
12ea23a3bd refactor: App::run remove unused args 2025-10-07 13:01:47 +01:00
0bc82c3a57 refactor App::runInner remove unused argc and argv 2025-10-07 13:01:47 +01:00
3270b40455 refactor: App, remove args from static startup methods to make StartupFunc no longer take args 2025-10-07 13:01:47 +01:00
9f2327932d refactor: IApp::start remove unused args 2025-10-07 13:01:47 +01:00
1b44a24d75 refactor: IApp::initApp remove unused args 2025-10-07 13:01:47 +01:00
8db65da345 refactor: use QString to set log level value
fixes: #8999
2025-10-07 12:40:18 +01:00
558833ca05 fix: windows, unable to use settings until a QApp is made
fixes: #9000
2025-10-07 12:22:46 +01:00
06263ceaad feat: drop cli11 2025-10-01 10:55:03 -04:00
4a5f173422 feat: remove toml config file only use our QSettings based format
remove deskflow/Config and related tests
2025-10-01 09:41:12 -04:00
e30025ea8b feat: SettingsDialog, add control to adjust scrollSpeed option for clients 2025-09-30 06:39:54 -04:00
59d860874e refactor: App::ParseArgs remove all unneeed arguments 2025-09-30 06:39:54 -04:00
5978694d95 chore: remove unused ArgParser 2025-09-30 06:39:54 -04:00
d98f8a524d remove: argsBase 2025-09-30 06:39:54 -04:00
37827f0540 refactor: remove ClientArgs 2025-09-30 06:39:54 -04:00
6fa8ba087a refactor: move remoteHost to coreArgs 2025-09-30 06:39:54 -04:00
a78959e66f refactor: move invert-scroll to coreArgs 2025-09-30 06:39:54 -04:00
5fc00f7af4 refactor: use bool for invert scrolling 2025-09-30 06:39:54 -04:00
2cb36777f9 refactor: move languageSync to coreArgs 2025-09-30 06:39:54 -04:00
b0fe79d527 refactor: move yscroll to coreArgs 2025-09-30 06:39:54 -04:00
efebe9ca56 refactor: remove ServerArgs 2025-09-30 06:39:54 -04:00
bf7a50ab0e refactor: move -c --config to coreArgs 2025-09-30 06:39:54 -04:00
cfedfc2c1e refactor: move peerCert option to coreArgs 2025-09-30 06:39:54 -04:00
cfd580fb21 refactor: move ArgsBase:m_pname to App 2025-09-30 06:39:54 -04:00
1884ab3555 refactor: move --no-hooks to coreArgs 2025-09-30 06:39:54 -04:00
eeaf139bd9 refactor: move no-restart to CoreArgs
chore: Client remove unused ClientArgs member m_args
2025-09-30 06:39:54 -04:00
295137dbd2 refactor: CoreArgs Add display option 2025-09-30 06:39:54 -04:00
c2ee366e23 refactor: move preventsleep option into CoreArgs 2025-09-30 06:39:54 -04:00
a8348b1ccb refactor: move tls-cert to coreArgs 2025-09-30 06:39:54 -04:00
ff4c9dc421 refactor: move enable-crypto to new core option secure to set the TLS setting 2025-09-30 06:39:54 -04:00
53b36801e1 refactor: move Log option to coreArgs 2025-09-30 06:39:54 -04:00
f3a1bbaf5b refactor: move setting of log level to CoreArgParser 2025-09-30 06:39:54 -04:00
05f377e21b refactor: Handle Name option in CoreArgParser 2025-09-30 06:39:54 -04:00
ead49c4025 refactor: move address option to deskflow-core, split into --interface (-i) and --port (-p) options 2025-09-30 06:39:54 -04:00
5e02adc772 refactor: deskflow-core take over --version arg for App class
change the serverAppTest to not call version
2025-09-30 06:39:54 -04:00
10f34f214f refactor: new Classes CoreArg and CoreArgParser to use to create and parse core options 2025-09-30 06:39:54 -04:00
6f574a3076 refactor: set const for Reverse FQDN name to use for deployment on linux 2025-09-30 06:17:23 -04:00
dc86538456 feat: Set app id on wayland this is required for restore tokens to work correctly 2025-09-30 06:17:23 -04:00
7698980576 refactor: simplify desktop::platform::isWayland 2025-09-30 06:17:23 -04:00
9fe445ebd0 feat: add methods to check if running from a sandbox, flatpak and or snap 2025-09-30 06:17:23 -04:00
087afd22b2 refactor: use CoreProcess::m_appPath to store app 2025-09-28 10:53:16 -04:00
8192d7b2d8 refactor: remove Settings::Client::Binary and Settings::Server::Binary use kCoreBinName, instead 2025-09-28 10:53:16 -04:00
d9ce9c4f10 chore: remove unused CoreProcess::extracted 2025-09-28 10:53:16 -04:00
4dfc98c93c fix: SettingsDialog, ensure debug warning is shown without changing the combobox 2025-09-28 10:36:23 -04:00
abbfc91192 chore: PriorityQueue::comp add no_unique_address attritribute 2025-09-25 15:01:17 +01:00
e3f5e045b7 chore: FileLogOutputter::write use Static QFile::rename in place of local file method 2025-09-25 15:01:17 +01:00
7f7e7de841 chore: SecureSocket serviceConnect / serviceAccept make anonymous ISocketMultiplexer a pointer const 2025-09-25 15:01:17 +01:00
bd63d54a9e chore: EiScreen::m_powerManager add no_unique_address 2025-09-25 15:01:17 +01:00
9dae55fc6f chore: remove unused ClientProxy1_5::m_events 2025-09-25 15:01:17 +01:00
e35a2b1c29 chore: remove unused ClientProxy1_7::m_events 2025-09-25 15:01:17 +01:00
4157367aaa chore: remove unused InputFilter::RestartServer::m_events 2025-09-25 15:01:17 +01:00
3945dc927c chore: remove unused ArgsBase::m_disableTray 2025-09-25 14:41:35 +01:00
801ada88b7 fix: correct spelling of convertLayoutToISO in X11LayoutsParser 2025-09-25 09:18:06 -04:00
c234f2fc66 fix: Do not reuse listen sockets on Windows 2025-09-25 14:00:48 +01:00
7b866ec632 refactor: make sure to use static args on ArgParsers::NameTest 2025-09-24 16:28:19 +01:00
ff1726677b chore: remove unused --service and --relaunch options for windows 2025-09-24 16:28:19 +01:00
57e34ded54 chore: rename IApp::standardStartup -> IApp::start 2025-09-24 16:28:19 +01:00
03e014c753 feat: Remove daemon / no-daemon option 2025-09-24 16:28:19 +01:00
fd7950bc04 ci: use mac os 14 large to build x86 2025-09-23 07:33:41 -04:00
9f8c45b449 fix: XWindowsScreen: stop centering panned screens on client when leaving screen
panned screens still needs `xtestIsXineramaUnaware` option enabled. this change
forcefully uses XTest only when leaving
useful examples:
* double 1 FullHD screen (main output) by:
	`xrandr --fb 3840x1080 --output DP-1 --panning 3840x1080+0+0/3840x1000+0+80`,
	leaving top 80 pixels for moving mouse out without actual panning
* dedicate right half of framebuffer to FullHD TV (second output):
	`xrandr --fb 3840x1080 --output HDMI-0 --panning 1920x1080+1920+0`
2025-09-23 12:12:59 +01:00
bf5b0de6ee fix: XWindowsScreen: properly calculate xrandr/xinerama screens
this allows screens to overlap, use panning, etc
2025-09-23 12:12:59 +01:00
3aef2f4309 chore: XWindowsScreen: remove duplicate function 2025-09-23 12:12:59 +01:00
134c8fd1c1 ci: fix names of suse and arch architecture postfix 2025-09-16 12:46:18 +01:00
35c7fe7fc4 fix: screensettingsDialog, do not allow aliases to be ip addresses
fixes: #8952
2025-09-15 16:31:52 +01:00
612ca91f9c chore: rename XWindowsPowerManager => XDGPowerManager
fixes: 8949
2025-09-15 13:21:51 +01:00
4632bec405 ci: be sure to always run CI checks 2025-09-15 12:58:10 +01:00
fcdea215be Reapply "refactor: App use Uniqueprt for SocketMultiplexer"
This reverts commit 6f18cf74c5.
2025-09-12 16:03:22 +01:00
6f18cf74c5 Revert "refactor: App use Uniqueprt for SocketMultiplexer"
This reverts commit 4d738b4784.
2025-09-12 15:03:52 +01:00
162cb85811 fix: Improve output loop error handling in MSWindowsWatchdog
Prevents high CPU usage while waiting for data (ERROR_NO_DATA)
2025-09-12 13:17:50 +01:00
5ea8d0326a fix: Use QString for Windows error functions
Was returning only first char of error message (mild-mojibake)
2025-09-12 13:17:50 +01:00
7a2591a1fa fix: wayland sleep inhibit on client
Fixes #8827
Adds the XWindowsPowerManager to the EiScreen as, despite the name, this
works on Wayland as well.
2025-09-12 10:54:25 +01:00
56a1bd68dd Release 1.24.0
Some checks are pending
Continuous Integration / pr-comment-flags (push) Blocked by required conditions
Continuous Integration / ci-passed (push) Blocked by required conditions
Continuous Integration / test-results (push) Blocked by required conditions
Continuous Integration / lint-reuse (push) Waiting to run
Continuous Integration / lint-clang (push) Blocked by required conditions
Continuous Integration / analyse-valgrind (push) Blocked by required conditions
Continuous Integration / analyse-sonarcloud (push) Blocked by required conditions
Continuous Integration / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / windows-2022-arm64 (push) Blocked by required conditions
Continuous Integration / macos-14-arm64 (push) Blocked by required conditions
Continuous Integration / macos-13-x64 (push) Blocked by required conditions
Continuous Integration / archlinux-x86_84 (push) Blocked by required conditions
Continuous Integration / debian-13-arm64 (push) Blocked by required conditions
Continuous Integration / debian-13-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-41-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-41-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-42-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-42-x86_64 (push) Blocked by required conditions
Continuous Integration / opensuse-arm64 (push) Blocked by required conditions
Continuous Integration / opensuse-x86_84 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.04-arm64 (push) Blocked by required conditions
Continuous Integration / ubuntu-25.04-x86_64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (push) Blocked by required conditions
Continuous Integration / flatpak-aarch64 (push) Blocked by required conditions
Continuous Integration / flatpak-x86_64 (push) Blocked by required conditions
Continuous Integration / release (push) Blocked by required conditions
Continuous Integration / winget-publish (push) Blocked by required conditions
2025-09-11 14:59:52 +00:00
2f2754ab97 refactor: LogDock::eventFilter mark as override 2025-09-11 14:53:20 +01:00
9883fb988a refactor: remove Arch::hostname, use QSysInfo::machineHostName directly in the only place its used 2025-09-11 14:53:20 +01:00
38a74d7d0f refactor: Arch::getHostName(), use QSysInfo::machineHostname in place of system specific impl 2025-09-11 11:18:12 +01:00
949f1d6534 refactor: MainWindow, minimize / restore action use window-*-pip icons 2025-09-11 10:57:08 +01:00
de42f53d68 refactor: new LogDock, handle hiding and float correctly' 2025-09-11 10:57:08 +01:00
247d48d318 docs: Simplify bug_report.yml to make it easier to use 2025-09-11 00:13:39 +00:00
c4c2f7f37f feat: begin to use QStrings for strings
feat: get windows building with the UNICODE forced by using Qt
refactor: remove ARCHString use QString to convert to / from utf8
build: (arch) link to common
build: (base) link to arch
build: (io) Link to common
build: (client) link to common
build: (server) link to common
fix: Append to log file instead of creating a new one each log line
refactor: Trim cipher description for neater log output
fix: Update log messages to use wide string format for Unicode support
fix: Correct event creation to use wide string for Unicode compatibility
refactor: Use QStringDecoder for UTF-8 handling on Windows Daemon child process
fix: Use correct wide type for Win32 consts
2025-09-10 18:15:19 +01:00
66a022a012 fix: Adjust log level for unconfigured client as we react to this in the gui 2025-09-10 14:31:13 +01:00
19eefd65c1 fix: Prevent log visibility toggle when window is hidden 2025-09-10 11:51:37 +00:00
ad383ad9d4 chore: Remove unused daemon installation and uninstallation methods 2025-09-10 11:32:02 +00:00
539ddcaf48 refactor: ScreenConfigDialog, make sure to populate the screen model with the server config after its been made 2025-09-09 15:59:07 +00:00
b30f8d253c refactor: XWindowsKeyState remove name for unused KeyId in remapKeyModifiers 2025-09-05 11:52:17 +01:00
c477d0fcc6 refactor: XWindowsKeyState::init remove unused display var 2025-09-05 11:52:17 +01:00
bc63961e7e refactor: EIEventQueueBuffer remove unused screen from constructor 2025-09-05 11:52:17 +01:00
30ce0bdf45 refactor: SecureSocket, remove names for unused parameters for socket service accept and serviceConnect 2025-09-05 11:52:17 +01:00
dd66dd21bb refactor: IDataSocket, add maybe_unused for constructors event pointer 2025-09-05 11:52:17 +01:00
27075a0260 refactor: StreamBuffer::write use emplace when adding m_chunks 2025-09-05 11:52:17 +01:00
6cfd89af8c refacor: ServerConfigDialog::toggleClipboard use static access to ServerConfig::defaultClipboardSharingSize 2025-09-05 11:52:17 +01:00
8e99700657 refactor: ServerConfigDialog mark that deselected maybe_unused when calling the selectionChanged for our lists 2025-09-05 11:52:17 +01:00
e21c4cdd4d refactor: CoreProcess::addGenericArgs remove unused processMode var 2025-09-05 11:52:17 +01:00
88efc14bc2 refactor: ServerConfig, use static access to switchCornerNames() 2025-09-05 11:52:17 +01:00
a9d518fbc8 refactor: X11LayoutParser:appendVectorUniq, capture elem by ref in our lambda 2025-09-05 11:52:17 +01:00
43b1014700 refactor: X11LayoutParser::getAllLanguageData , do not shadow variables from outer for loop with the inner one (i.e use differnt nanes for each var) 2025-09-05 11:52:17 +01:00
2e722bdfeb refactor: Server::handleToggleScreenEvent remove name of the incomming event var to indicate its not used in the method 2025-09-05 11:52:17 +01:00
aedbffa809 refactor: server/Config use empty() to check if args are empty 2025-09-05 11:52:17 +01:00
dc0db9d192 refactor: LogWidget remove unused Q_SIGNALS delclaration 2025-09-05 11:52:17 +01:00
9f3e724218 refactor: ScreenSettingsDialog::removeAlias make const 2025-09-05 11:52:17 +01:00
f98f8b10d1 refactor: Construct std::string outside critical section
There's no need to hold the mutex while constructing a `std::string`
from the `char` string.

Also use `inet_ntop` instead of the potentially thread-unsafe
`inet_ntoa` that might use a static buffer for the result.

This makes the `INet` case match the `INet6` case below.
2025-09-04 16:56:46 +01:00
b788d63044 refactor: Give internal linkage to global mutex
The `static` keyword was removed by #8674 but I think it should be
restored so that this global can't clash with anything else called
`::s_mutex` elsewhere in the executable.
2025-09-04 16:56:46 +01:00
d5936a9e08 refactor: ScreenSettingsDialog, do not use auto connect slots 2025-09-03 10:38:59 +01:00
81c53d3690 refactor: ScreenSettingsDialog, conform to naming conventions 2025-09-03 10:38:59 +01:00
89003082d7 refactor: continue to improve the screen settings dialog ui 2025-09-03 10:38:59 +01:00
fe1a48fa28 refactor: Rework Computer Settings
Removed almost half of the lines, and still made it
more pretty.
2025-09-03 10:38:59 +01:00
c4b2f91424 refactor: Move ServerConfig to the config folder 2025-09-03 10:38:59 +01:00
f16c13fa54 refactor: ScreenSettingsDialog, Constify validator variables 2025-09-03 10:38:59 +01:00
43ce3c50e5 refactor: move log to dockwidget simplifying resize code 2025-09-01 18:12:41 +01:00
204a6b5a44 refactor: New LogWidget to handle log output in the mainwindow 2025-09-01 18:12:41 +01:00
a6dc455477 fix: Settings reset on windows, create new profile dir when not in native mode
fixes: #8916
2025-09-01 17:22:15 +01:00
138ede0536 refactor: use If in place of switch that looks for single case 2025-09-01 16:57:39 +01:00
eae089d3ec chore: ServerConfigDialog, conform to naming standards for members 2025-09-01 16:57:39 +01:00
340df69ca2 refactor: ServerConfigDialog, set members in alphbetical order, correct initlization order 2025-09-01 16:57:39 +01:00
507c98adff refactor: EIKeyState::fakeKey use if in place of a switch that cares only about a single case 2025-09-01 16:57:39 +01:00
0501f2892d chore: Messages::showClientError remove unneeded capture from lambda 2025-09-01 16:57:39 +01:00
104d2facdb feat: add switchToNextScreen hotkey to cycle through computers 2025-09-01 11:39:52 -04:00
398c9726f3 fix: fixes the mouse label issue 2025-09-01 11:39:52 -04:00
eb2f885983 chore: conform CoreProcess to naming standards 2025-09-01 16:18:02 +01:00
4a16931c5d refactor: Remove QProcessProxy and simplify CoreProcess
Making a proxy class for QProcess to make GTest work is an excellent example of over-abstraction making simple things hard to do. I just wanted to call a function on QProcess and had to jump through hoops to do it.

Bye bye QProcessProxy! We can do much better with QTest.
2025-09-01 16:18:02 +01:00
78b83c5639 fix: Use correct log function for process exit status in onProcessFinished 2025-09-01 08:05:07 -04:00
9cf25c4caf feat: Allow suppression of generic client connection dialog
fixes 8907
2025-09-01 10:57:59 +01:00
f0e02724ee refactor: CoreProcess::onProcessFinished add using for ProcessState enum 2025-09-01 10:04:52 +01:00
60e71aad38 fix: missing IPC messages
fixes #8905
2025-09-01 10:04:52 +01:00
d1897efa8b chore: LogTests, Fix codeQL issue with args in the printTestWithArgs test 2025-08-30 10:07:41 +01:00
490dac5048 refactor: LogTests use private log member 2025-08-30 10:07:41 +01:00
549133e619 refactor: LogTests, read buffer capture before release 2025-08-28 08:20:14 +01:00
323d011476 chore: remove unused include for ArchString 2025-08-28 08:20:14 +01:00
4e8a67925f refactor: Add Tooltip to log levels and show a label with info about debug level affecting performance
fixes: #8889
2025-08-28 00:45:40 +01:00
cba3881f41 refactor: Move all messages that are checked for by GUI in the log to new IPC Level so the gui can work with any filter level 2025-08-28 00:45:40 +01:00
78eb353985 refactor: Settings Allow all log levels to be shown in the Gui 2025-08-28 00:45:40 +01:00
e7880b72f1 chore: Mainwindow convert comments for regenerateLocalFingerprint to doxygen comments 2025-08-27 19:18:59 -04:00
d864361085 feat: Improve fingerprint comparison dialog, to show both remote and local prints (server is always on left of dialog)
fixes: #8866
2025-08-27 19:18:59 -04:00
66366dd95b refactor: Fingerprintprevew, Add optional title text, remove label for cypher type and add option to toggle the sha mode so art or hash is visible 2025-08-27 19:18:59 -04:00
2c6c65f71e refactor: MainWindow new localFingerprint method to read the local fingerprint from the db, this is split from showMyFingerprint 2025-08-27 19:18:59 -04:00
9eede5470c refactor: TLSUtil do not check it tls is enabled before regenerating the certificate
fixes #8890
2025-08-27 05:51:15 -04:00
07edccb469 fix: Add 'Hyper' key handling
In the X11 code, we mapped hyper to super, so perhaps it makes sense to do that here too:

`src/lib/platform/XWindowsUtil.cpp`
```
  case XK_Super_L:
  case XK_Super_R:
  case XK_Hyper_L:
  case XK_Hyper_R:
    return kKeyModifierBitSuper;
```
2025-08-26 09:52:43 -04:00
927075688c fix: Pass ClientScrollDirection to EiScreen 2025-08-26 09:08:45 -04:00
ddadd4ad83 ci: use action checkout v5 2025-08-26 08:45:45 -04:00
b18c3b588f refactor: EIKeyState, compare to the current state when seeing if modifiers are inactive, suggested by wismill 2025-08-26 11:23:29 +01:00
fb144a5e66 refactor: LogTests are now built with QTest 2025-08-26 05:20:34 -04:00
34c439b3de refactor: Use single case to ignore mods in EI mod mask 2025-08-22 17:04:16 +01:00
934ddf1499 fix: Disable meta mod (fixes alt key bug) 2025-08-22 17:04:16 +01:00
4302d50a42 feat: Use xkb_keymap_mod_get_mask in EiKeyState if available
Introduced in xkbcommon v1.10.0
2025-08-22 16:06:03 +01:00
3e96c4d0aa refactor: Include breeze fallback icons for connect and disconnect 2025-08-22 09:54:20 +01:00
53f787d6ea refactor: deskflow-core adjust already running message 2025-08-22 09:54:20 +01:00
d368b92165 refactor: CoreProcess::onProcessFinished Stop trying to restart the core process if its already running 2025-08-22 09:54:20 +01:00
97e3524a24 build: SecureSocket, include io/FileSystem in SecureSocket.cpp 2025-08-22 09:54:20 +01:00
299ebea0e2 refactor: replace QString::toStdString().c_str with qPrintable(...) 2025-08-22 09:54:20 +01:00
7e12c5b76d doc: document the gui config 2025-08-21 07:54:21 -04:00
3a66969dec refactor: add XdpRestoreToken to list of valid keys so its not removed if cleansettings is run 2025-08-21 07:54:21 -04:00
65c5d3673d refactor: add header info to deskflow-core help message 2025-08-21 12:34:50 +01:00
e2b4bc45bd feat: add --version option to deskflow-core 2025-08-21 12:34:50 +01:00
d3c0ce8895 refactor: move all exit codes to new ExitCodes
add new exitcode s_exitDuplicate for when exiting because of already running instance
2025-08-21 12:34:50 +01:00
2b3e7adc0b feat: Prevent core, client and or server from running at the same time
fixes: #8258
2025-08-21 12:34:50 +01:00
26983dc0e4 refactor MainWindow, move start and restart inline with mode options
update labels for the mode buttons actions and menu actions
                     use callstart / callstop for connect and disconect icons
2025-08-20 16:09:08 -04:00
a0d75b28ba refactor: SettingsDialog, group client options together into a groupClientOptions 2025-08-20 15:50:26 -04:00
e9cec877f2 fix: SettingDialog, only lock the check peers checkbox in updateTlsControls when in client mode
fixes #8870
2025-08-20 15:50:26 -04:00
0bb8ff646a refactor: SettingsDialog, prevent updateControls from being called twice at startup 2025-08-20 15:50:26 -04:00
9268fef89d refactor: SettingsDialog remove duplicate code by calling updateTlsControlsEnabled inside updateTlsControls 2025-08-20 15:50:26 -04:00
6f8b3f481d refactor: adjust the help message for core to combine server and client message fixing man page deployment 2025-08-20 20:33:20 +01:00
3b2d7fc0b3 feat: Switch to deskflow-core instead of split binaries 2025-08-20 20:33:20 +01:00
7cac145500 fix: Allow Gui to work with core ,server or client binaries
fixes: #7951
2025-08-20 20:33:20 +01:00
b2aa638b1f feat: Support Remote Desktop token persistance 2025-08-19 15:46:14 +01:00
2990a1f686 refactor: Server, reorder private member vars to avoid un unessary padding 2025-08-18 11:45:21 +01:00
c3f2c04a28 refactor: remove IAppUtil. AppUtil is the base class now 2025-08-18 11:45:21 +01:00
347cb46f15 refactor: remove IEventJob 2025-08-18 11:45:21 +01:00
bcb6c368b1 refactor: remove unneeded common/Common includes 2025-08-18 11:45:21 +01:00
a9e87d5ef5 refactor: remove INode class as base for Server and Client objects 2025-08-18 11:45:21 +01:00
4eec183598 refactor: remove IInterface class, that only adds a virtual construcor 2025-08-18 11:45:21 +01:00
6c6e5fc4d2 refactor: MainWindow use static for cleanup of QLocalServer 2025-08-15 12:15:40 +01:00
0d7d21aeb2 refactor: Action LockCursorMode => Action::LockCursorMode enum class 2025-08-15 12:15:40 +01:00
ea6f4ce221 refactor: Action SwitchDirection => Action::SwitchDirection enum class 2025-08-15 12:15:40 +01:00
1c7d5de01b refactor Action::ActionType => Action::Type enum class 2025-08-15 12:15:40 +01:00
d2d28f5ad6 refactor: XWinowsUtil make s_keymap a std::array 2025-08-15 12:15:40 +01:00
04ca52b94e fix: resolve issues with some swedish characters
fixes: #8839
2025-08-14 17:57:26 -04:00
e369e1ed80 build: update REUSE.toml to check a files before applying our override identifier 2025-08-14 17:50:07 +01:00
0dfd4ebc4a refactor: Mainwindow, adjust how and where the ip address is shown.
- Add a new method updateNetworkInfo to update lblIpAddresses
   This method can be hooked to the system network info in the future
   when we want to have this be more dynamic.
 - Only show the IP address when in server mode.
 - When showing the IP address show either the suggested IP or a message the user maybe offline
 - Use the linkVisited color to for our error message
2025-08-12 13:04:09 -04:00
a7048f76f9 refactor: GUI, Mainwindow use the system hyperlink color to color the text of the 'primary' Ip address 2025-08-12 13:04:09 -04:00
8d92a8df68 refactor: On windows use the old malloc method to prevent random test failure in IKeyState 2025-08-12 12:14:21 -04:00
d6b53ea718 fix: failures in big endian machines tests 2025-08-12 16:56:17 +01:00
64dc2299da docs: expand user configuration documentation 2025-08-11 17:59:40 +01:00
2e193c6a78 chore: PortalInputCapture, conform to naming conventions 2025-08-11 12:58:52 -04:00
f95230549a chore: EiScreen: conform to nameing conventions 2025-08-11 12:58:52 -04:00
a13803df94 chore: EiKeyState, conform to naming conventions 2025-08-11 12:58:52 -04:00
2ba7fb2f05 chore: EiEventQueueBuffer, conform to naming conventions 2025-08-11 12:58:52 -04:00
9442295227 chore: remove unused HYPER key 2025-08-11 12:32:50 -04:00
8d87f3250d refactor: ScreenSettingsDialog use qDeleteAll to clear list of items on alias remove 2025-08-11 12:32:50 -04:00
e700867a32 refactor: remove ServerConfig remove const qualifer from QString return 2025-08-11 12:32:50 -04:00
a21d48defb refactor: reorder initilization order in XWindowEventQueueBuffer constructor 2025-08-11 12:32:50 -04:00
3770e2c39e chore: XWindowsScreen::handleSystemEvent, remove unused Window variables 2025-08-11 12:32:50 -04:00
8d90515446 chore: define var on seperate line from type 2025-08-11 12:32:50 -04:00
db67550db3 refactor: server: use contains when possible 2025-08-11 12:32:50 -04:00
85e7d95188 refactor: server/Config use contains 2025-08-11 12:32:50 -04:00
651e093e04 refactor: clientProxy1_4 do not create pointless override that just call the baseclass 2025-08-11 12:32:50 -04:00
02fb9915bf refactor: Arch, only define init override on windows, where its ambiguious 2025-08-11 12:32:50 -04:00
6153f64fb7 chore: remove uneeded casts 2025-08-11 12:32:50 -04:00
f91df1639b refactor: make sure to state type of access to base class 2025-08-11 12:32:50 -04:00
63bd2e71b0 refactor: CoreProcess fully qualify enums used in signals 2025-08-11 12:32:50 -04:00
e1d00d59a4 refactor: ScreenSetupModel::isFull compaire same type of iterator 2025-08-11 12:32:50 -04:00
5def3f1f6a refactor: DaemonApp add context object for lambda starting the thread
chore: DaemonApp, remove unnessary QObject:: for connect calls
2025-08-11 12:32:50 -04:00
6840e1e7eb fix: Better description for InvalidProtocolException
fixes: #8830
2025-08-11 17:14:45 +01:00
85d89f9846 refactor: XArch Classes => Arch Exception Classes 2025-08-11 17:14:45 +01:00
8929f85bf7 refactor: XConfigRead => ServerConfigReadException 2025-08-11 17:14:45 +01:00
9601180e1b refactor: XBase Classes => BaseException 2025-08-11 17:14:45 +01:00
64786ddcb7 refactor: XDeskflow Classes => DeskflowException Classes 2025-08-11 17:14:45 +01:00
e4a9d1eb78 refactor: XScreen Classes => ScreenException Classes 2025-08-11 17:14:45 +01:00
1b04b1137c refactor: XIO Classes => IOException Classes 2025-08-11 17:14:45 +01:00
813b0c3828 refactor: mt/XThread Classes => mt/ThreadException Classes 2025-08-11 17:14:45 +01:00
22a358fb49 refactor: XMT Classes => MTException Classes 2025-08-11 17:14:45 +01:00
ada2813f9f refactor: XSocket Classes => XSocketException Classes 2025-08-11 17:14:45 +01:00
906c07e4fd fix: MainWindow::setHostName only check if the screen is existing when in server mode, In severmode update the serverConfig serverName to prevent a case where the server screen is on the grid with the old name breaking the layout 2025-08-11 16:49:25 +01:00
a4c0e30bb8 fix: Ignore Mod2 and Mod3 to make log quieter 2025-08-07 15:31:52 -04:00
a5c9744258 fix: Account for more modifiers in the EI keymap calculation
Some modifiers, notably LevelThree, were not accounted for in the
modifier mask calculation. This leads to an incorrect keymap where some
key symbols were listed for keys without (or insufficient) modifiers.
Emulating those keys can then produce the wrong keysyms.

Reproducible with server and client on English(UK) layout and typing
e.g. [. That key has its own key AD11 (right of P) but is also on
the third level of AE08 (the 8 key). When the server sends the keyid 91
(for [) the client looks it up in the pre-generated keymap. It is found
first on the 8 key with no modifiers (because LevelThree was previously
ignored), hence the client simulates a key 8 press without modifiers.
This erroneously produced an 8 instead of the wanted [.

Fix this by ensuring that all modifiers are accounted for in the key
map. This fix is likely incomplete as it does not account for the full
virtual modifier to real modifier mappings possible (e.g. Mod5 *may* be
something other than AltGr) but it does push the can a bit further down
the road, for someone else to release the worms.

Closes: #8168
2025-08-07 15:31:52 -04:00
a8bf217e62 ci: Rename job 'reuse-lint' to 'lint-reuse' for consistency 2025-08-06 23:29:56 +01:00
fff25b4144 ci: Rename lint-check action to lint-clang 2025-08-06 23:29:56 +01:00
82ba5a4b97 ci: Remove redundant markdown header 2025-08-06 23:29:56 +01:00
436f5b7f0a ci: Fix naming conventions for step names and bash vars 2025-08-06 23:29:56 +01:00
cf1789545a ci: Surface lint and test results to comment
It's a bit annoying how you have to go to the workflow result to see the lint error and test results. This surfaces it to the comment in the PR.
2025-08-06 23:29:56 +01:00
d7f882f0c4 ci: Include clang-format version in lint summary
This could help confused developers understand why their clang-format is working differently to CI
2025-08-06 23:29:56 +01:00
2a84ef0ebf refactor: update log calls to LOG_... fixes #8819 2025-08-06 16:18:38 +01:00
4f644acbca ci: Use cat directly when printing PR comments
Wrapping in echo was stripping newlines.
2025-08-06 10:47:13 -04:00
9a9bd7e262 chore: Improve logging for active sides
For the longest time, this log line has bugged me:
```
active sides: e
```

It's hex, but it looks like a bug, since there's no `0x` prefix. Also, most humans can't read hex, so I added a string representation.

New version:
```
[2025-08-06T11:56:00] DEBUG: active sides: LRT (0x0e)
```
2025-08-06 08:38:00 -04:00
47bb33e065 fix: update inclusion of climits and cstdint headers
For INT_MAX and SIZE_MAX.
2025-08-06 13:03:52 +01:00
40423397e3 refactor: Config remove redundant != Operator in server/Config 2025-08-06 11:44:38 +01:00
4955e8c2ba refactor: Fingerprint, KeyMap, KeySequence and Action use default == operator 2025-08-06 11:44:38 +01:00
24480ce946 refactor: AppUtilUnix remove name from unused IEventQueue pointer 2025-08-06 11:44:38 +01:00
76d5ac0a34 refactor: KeyTypes::KeyModifierNameMapEntry, remove commented code 2025-08-06 11:44:38 +01:00
d20887f34a refactor: KeyState::updateModifierState, use std::ranges::set_difference in place of std::set_difference 2025-08-06 11:44:38 +01:00
0cbc922478 refactor: MSWindowsDesks::getCursorPos initialize pos to 0,0 2025-08-06 11:44:38 +01:00
38866cf2c1 refactor: remove unneeed constructors from DisplayInvalidExecption 2025-08-06 11:44:38 +01:00
32165f5b58 refactor: IKeyState remove need for malloc in alloc methods 2025-08-06 11:44:38 +01:00
1968669a39 refactor: App make m_bye private access it from the method bye 2025-08-06 11:44:38 +01:00
3b2b8a9ebe refactor: IKeyState: directly make string when spilting as arg to emplace 2025-08-06 11:44:38 +01:00
048ce47008 refactor: ServerConfig: used ranged loop to process neighbours 2025-08-06 11:44:38 +01:00
d321e2a874 refactor: TCPSocket Init m_socket before m_events 2025-08-06 11:44:38 +01:00
21f47de36c ci: Use reuse-actionv5 2025-08-06 05:54:25 -04:00
0352e1c6d6 chore: Improve logging in Server::onClipboardChanged 2025-08-05 14:41:50 -04:00
98d03fb098 chore: Improve logging in Server::handleClipboardGrabbed 2025-08-05 14:41:50 -04:00
739cdc1752 chore: Improve logging for DESKFLOW_MOUSE_ADJUSTMENT env var
We plan to move this elsewhere, but in the meantime, the DEBUG1 logging was too noisy. Also fixed some code style that was bugging me.
2025-08-05 14:41:50 -04:00
54a7ef24d9 refactor: Remove unused includes from KeyMap.cpp and use correct <algorithm> include 2025-08-05 08:56:53 -04:00
c4ff0b1832 refactor: Remove unnecessary debug log from KeyState::fakeKeys 2025-08-05 08:56:53 -04:00
b70c6556c9 refactor: mainwindow show displayVersion with start up info 2025-08-05 13:36:04 +01:00
80408b985e refactor: show display version for --version 2025-08-05 13:36:04 +01:00
ff1e7f3c9f refactor: ClientApp / ServerApp, remove do nothing updateStatus methods and calls 2025-08-04 13:46:27 +01:00
b2eb3a036d refactor: move ClientApp::handleScreenError / ServerApp::handleScreenError to base App Class 2025-08-04 13:46:27 +01:00
229fedf347 refactor: App::m_bye make protected 2025-08-04 13:46:27 +01:00
cfccee1592 refactor: TCPSocket, make m_events private access via getEvents method 2025-08-04 13:46:27 +01:00
0c728beb01 refactor: TCPListenSocket, replace make protected members private, use protected methods to acces them in the subclasses 2025-08-04 13:46:27 +01:00
4e01e3f337 refactor: make APP:m_events private access via exsisting getEvents method 2025-08-04 13:46:27 +01:00
92ae41852d chore: remove Unused Stopwatch::double operator 2025-08-04 13:46:27 +01:00
4f9b042f5a refactor: explicit constructor for PlatformScreen, FileTail, FunctionJob, FunctionEventJob, ServerConfig, ScreenSettingsDialog, KeySequenceWidget, NetworkAddress, AddClientDialog, ConfigReadContext, LockCursorToScreenAction, RestartServer And KeyboardBroadcastAction 2025-08-04 13:46:27 +01:00
1236fa4cab fix: server: initialize the m_protocol member with a default value
It is likely random whether the server works or not without
a manually configured protocol option, which is neither documented
nor enforced to be set.
With a random uninitialized value in m_protocol, this can happen:
[2025-08-03T12:39:57] NOTE: accepted client connection
[2025-08-03T12:39:57] FATAL: a runtime error occurred: XInvalidProtocol

Reports of "it works with debug enabled" are likely due to having
parts of the memory space the server object is allocated into being
cleared, and thus having a 0 (Synergy) startup value.
2025-08-04 12:47:13 +01:00
e69be64773 refactor: remove redundant != operators c++20 std will generate the !=operator as long as the class has an ==operator 2025-08-01 13:03:51 -04:00
c2db28a624 refactor: ServerProxy::setActiveServerLanguage take std::string_view 2025-08-01 13:03:51 -04:00
1f92f2a2ed chore: XWindowsScreen declare vars on seperate lines 2025-08-01 13:03:51 -04:00
74bbd5af25 chore: Fingerprint, remove unneed private label in struct 2025-08-01 13:03:51 -04:00
023037f7ee refactor: XWindowsClipboard, user std::format_to_n in place of snprintf 2025-08-01 13:03:51 -04:00
fe19f4de66 refactor: ServerProxy::setActiveServerLanguage, use std::string size method to get string in place of strlen 2025-08-01 13:03:51 -04:00
d120cc853d refactor: InputFilter, user std::ranges::partial_sort in == operator 2025-08-01 13:03:51 -04:00
c78665dc35 refactor: XWindowsKeyState, updateKeysymMap use std::ranges::fill to fill modifier array 2025-08-01 13:03:51 -04:00
c4c4c09eb2 refactor: XwindowsClipboard , use std::ranges::for_each in sendReply 2025-08-01 13:03:51 -04:00
2cccc3d0c8 refactor: use std::ranges::find_if when possible 2025-08-01 13:03:51 -04:00
59c414ebad refactor: IKeyState: use emplace in place of insert for set addition 2025-08-01 13:03:51 -04:00
1e7143b85e refactor: IKeyState, remove name from unused IEventQueue in constructor 2025-08-01 13:03:51 -04:00
a6068ad6f6 refactor: Log use std::format in place of snprintf, when not running on macOS... 2025-08-01 13:03:51 -04:00
11caf55522 fix: Wrong m_buttons vector size in case of maxButton inferior to numButtons 2025-08-01 08:18:57 -04:00
f73d098b1f refactor: Unify ENetworkProtocol and ServerProtocol into new enum Class NetworkProtocol in new file base/NetworkProtocol.h 2025-07-31 13:41:29 +01:00
9673943556 refactor: OptionTypes, Remove corner related enums and uses static items for corner masks instead 2025-07-31 13:41:29 +01:00
7c06ae39ef refactor: AddResults => enum class ScreenAddResults 2025-07-31 13:41:29 +01:00
ffa5b88cdf refactor: ServerApp::EServerState => Enum class ServerApp::ServerState 2025-07-31 13:41:29 +01:00
8977d70dd9 refactor: IClipboard::EFormat => enum class Clipboard::Format 2025-07-31 13:41:29 +01:00
943141d65c chore: use Deskflow name in copy text sample, rename ClipboardTest::text285 -> longerText 2025-07-31 13:41:29 +01:00
49e36cfdc6 refactor: Event, make non default constructors explicit 2025-07-29 13:41:34 +01:00
283e0c6367 refactor: KeyMap EType => enum class KeyType 2025-07-29 13:41:34 +01:00
902f5823f2 refactor: KeyMap::keysToRestoreModifiers, use ranged for loops 2025-07-29 13:41:34 +01:00
7785c954d5 refactor: KeyMap::mapCommandKey to use ranged loop 2025-07-29 13:41:34 +01:00
db841f71bd refactor: PriorityQueue, Use std::ranges version of heap methods 2025-07-29 13:41:34 +01:00
84c2234869 refactor: ActionDialog use proper ActionDialog::itemToggled in place of lambda 2025-07-29 13:41:34 +01:00
51e467d45e feat: Enable 'MouseKeys' on screen setup and never restore old settings
Previously we were toggling the 'MouseKeys' Windows accessibility feature on and off, but this was causing many bugs; cursor show delay while Windows brings up the mouse stack(?) and often forever lost mouse cursor when toggling off the 'MouseKeys' feature. After a few days of hacking away at this, it seems safest to just leave it on.
2025-07-28 21:45:05 +01:00
e184475a24 feat: Add logging in MSWindowsScreen for setup and cursor centering 2025-07-28 21:45:05 +01:00
1fb2789cb1 fix: Prevent flicker on desk leave with 30ms delay 2025-07-28 21:45:05 +01:00
8979d7f94f feat: Cursor visibility retry mechanism
The `ShowCursor` function does not directly show/hide the cursor; it increments or decrements the internal display counter. When that counter reaches a certain positive/negative number, then the cursor is shown or hidden at a particular threshold.
2025-07-28 21:45:05 +01:00
9033198aed refactor: Change mouse keys functions names to expose actual behavior 2025-07-28 21:45:05 +01:00
db55c3f0e7 build: remove unused includes from MSWindowsDesks.cpp|h 2025-07-28 21:45:05 +01:00
ba4375a28b build: fix cmake error with git version if no tags / git repo 2025-07-28 09:52:21 +01:00
669 changed files with 25297 additions and 17089 deletions

9
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1,9 @@
# Apply to all files
* @nbolton @sithlord48
# Translators
translations/deskflow_es.ts @sithlord48
translations/deskflow_it.ts @sithlord48
translations/deskflow_ja.ts @ykasap
translations/deskflow_ru.ts @levpr1c
translations/deskflow_zh_CN.ts @sailordiary

18
.github/CODE_OF_CONDUCT.md vendored Normal file
View File

@ -0,0 +1,18 @@
# Deskflow Code of Conduct
## Our Pledge
We want the Deskflow community to be one where everyone can work together. We pledge to keep our community focused on the project and the code around the project.
## Community Standards
* Keep interactions respectful and focused on the project
* Contributions are expected to follow the [contribution guide](https://github.com/deskflow/deskflow/wiki/Contributing).
## Enforcement
Enforcement will be done at the descression of the Deskflow Moderators.
1. Warning
2. Temporary ban
3. Permanent banning

View File

@ -4,21 +4,21 @@ type: "Triage [bug]"
body:
- type: markdown
attributes:
value: Thanks for taking the time to help us improve Deskflow.
value: |
Thanks for taking the time to help us improve Deskflow.
- type: dropdown
id: project
- type: checkboxes
id: sanity-checks
attributes:
label: Project
description: Are you using Deskflow or a fork/derivative?
label: Sanity checks
description: |
Before reporting a bug, please first:
1. Try the latest [continuous build](https://github.com/deskflow/deskflow/releases).
2. Wayland users, please review the [known issues](https://github.com/deskflow/deskflow/discussions/7499).
3. macOS users, if the app crashes, try [Apple's solution](https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unknown-developer-mh40616/mac).
options:
# Empty option to force selection
-
- Deskflow
- Barrier
- Input Leap
- Synergy
default: 0
- label: I have done the sanity checks, and my issue persists
- label: These sanity checks are not relevant to the bug
validations:
required: true
@ -66,59 +66,20 @@ body:
validations:
required: true
- type: checkboxes
id: linux-wayland
attributes:
label: Wayland on Linux
description: If using Wayland on Linux, please review the [known issues](https://github.com/deskflow/deskflow/discussions/7499) before reporting.
options:
- label: I have reviewed the Wayland [known issues](https://github.com/deskflow/deskflow/discussions/7499) and my issue is new
- label: I am not using Wayland on Linux
- type: checkboxes
id: mac-signing
attributes:
label: Signing on macOS
description: If using macOS and the app crashes, try [Apple's solution](https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unknown-developer-mh40616/mac) before reporting.
options:
- label: I have authorized the app to run on my Mac
- label: I am not using macOS
- type: checkboxes
id: continuous-build
attributes:
label: Continuous build
description: Please try the latest [continuous build](https://github.com/deskflow/deskflow/releases) of Deskflow. It may have a fix for your issue.
options:
- label: I have tried the latest continuous build and the issue persists
- label: I am unable to try the latest continuous build
- type: textarea
id: os-version
attributes:
label: OS versions/distros
description: |
Please provide the version number of your operating system (OS).
If you're using Linux, please provide the name of the distribution.
placeholder: |
- Windows 11
- macOS 15
- Ubuntu 24.04
- FreeBSD 14.0
validations:
required: true
- type: textarea
id: config
attributes:
label: Deskflow configuration
description: |
Please provide a very brief description of your configuration.
Let us know what OS your server and client are running.
Let us know what OS your server and client are running, including all OS versions.
If you're using Linux, please provide the name of the distribution.
placeholder: |
- Windows 11 server, macOS 15 client
- Each computer has a single monitor
- Windows is on the left, macOS is on the right
validations:
required: true
- type: textarea
id: repro-steps

View File

@ -1 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/deskflow/deskflow/discussions/new?category=q-a
about: Where to ask general questions.
- name: Show and Tell
url: https://github.com/deskflow/deskflow/discussions/new?category=show-and-tell
about: Show off things you have done with Deskflow
- name: Chat with us
url: https://matrix.to/#/#deskflow:matrix.org
about: Join us in live chat.

View File

@ -14,3 +14,14 @@ body:
Please describe the feature you have in mind.
validations:
required: true
- type: textarea
id: votes
attributes:
label: Voting Instructions
description: Do not modify these instructions
value: |
React with :+1: or :-1: to vote on this request
validations:
required: true

View File

@ -22,8 +22,14 @@ TLS encryption is enabled by default. Wayland is supported. Clipboard sharing is
[![Downloads: Stable Release](https://img.shields.io/github/downloads/deskflow/deskflow/latest/total?style=for-the-badge&logo=github&label=Download%20Stable)](https://github.com/deskflow/deskflow/releases/latest)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![Downloads: Continuous Build](https://img.shields.io/github/downloads/deskflow/deskflow/continuous/total?style=for-the-badge&logo=github&label=Download%20Continuous)](https://github.com/deskflow/deskflow/releases/continuous)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![Download From Flathub](https://img.shields.io/flathub/downloads/org.deskflow.deskflow?style=for-the-badge&logo=flathub&label=Download%20from%20flathub)](https://flathub.org/apps/org.deskflow.deskflow)
> [!NOTE]
> On Windows, you will need to install the
> [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version).
> Download latest: [`vc_redist.x64.exe`](https://aka.ms/vc14/vc_redist.x64.exe) [`vc_redist.arm64.exe`](https://aka.ms/vc14/vc_redist.arm64.exe)
> [!TIP]
> For macOS users, the easiest way to install and stay up to date is to use [Homebrew](https://brew.sh) with our [homebrew-tap](https://github.com/deskflow/homebrew-tap).
> macOS reports unsigned apps as damaged. This occurs because we do not use an Apple certificate for notarization. Clear the quarantine attribute to run the app: `xattr -c Deskflow.app`
To use Deskflow, download one of our [packages](https://github.com/deskflow/deskflow/releases), install `deskflow` (from your package repository), or [build it](https://github.com/deskflow/deskflow/wiki/Building) from source.
@ -45,7 +51,7 @@ To use Deskflow, download one of our [packages](https://github.com/deskflow/desk
## Contribute
[![Good first issues](https://img.shields.io/github/issues/deskflow/deskflow/good%20first%20issue?label=good%20first%20issues&color=%2344cc11)](https://github.com/deskflow/deskflow/labels/good%20first%20issue) [![Open bounty issues](https://img.shields.io/github/issues/deskflow/deskflow/%F0%9F%92%8E%20bounty?label=💎%20open%20bounty%20issues&color=%2344cc11)](https://github.com/deskflow/deskflow/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22%F0%9F%92%8E%20bounty%22) [![Rewarded bounties](https://img.shields.io/github/issues-search/deskflow/deskflow?query=label%3A%22%F0%9F%92%B0%20rewarded%22&label=%F0%9F%92%B0%20rewarded%20bounties&color=yellow)](https://github.com/deskflow/deskflow/issues?q=label%3A%22%F0%9F%92%B0%20rewarded%22%20sort%3Aupdated-desc)
[![Good first issues](https://img.shields.io/github/issues/deskflow/deskflow/good%20first%20issue?label=good%20first%20issues&color=%2344cc11)](https://github.com/deskflow/deskflow/labels/good%20first%20issue)
There are many ways to contribute to the Deskflow project.
@ -59,14 +65,9 @@ For instructions on building Deskflow, use the wiki page: [Building](https://git
We support all major operating systems, including Windows, macOS, Linux, and Unix-like BSD-derived.
> [!NOTE]
> On Windows, you will need to install the
> [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version).
> Download latest: [`vc_redist.x64.exe`](https://aka.ms/vs/17/release/vc_redist.x64.exe) [`vc_redist.arm64.exe`](https://aka.ms/vs/17/release/vc_redist.arm64.exe)
Windows 10 v1809 or higher is required.
Windows 10 or higher is required.
macOS 12 or higher is required.
macOS 13 or higher is required to use our CI builds for Apple Silicon machines. macOS 12 or higher is required for Intel macs or local builds.
Linux requires libei 1.3+ and libportal 0.8+ for the server/client. Additionally, Qt 6.7+ is required for the GUI.
Linux users with systems not meeting these requirements should use flatpak in place of a native package.
@ -80,8 +81,6 @@ versions across them and gathering other information.
[![Repology](https://repology.org/badge/vertical-allrepos/deskflow.svg?exclude_unsupported=1)](https://repology.org/project/deskflow/versions)
**Note:** We are working with package maintainers to have our new package name adopted.
## Installing on macOS
When you install Deskflow on macOS, you need to allow accessibility access (Privacy & Security) to both the `Deskflow` app and the `deskflow` process.
@ -94,12 +93,12 @@ on the allowed list you will need to manually remove them before accessibility a
macOS users who download directly from releases may need to run `xattr -c /Applications/Deskflow.app` after copying the app to the `Applications` dir.
It is recommend to install Deskflow using [Homebrew](https://brew.sh) from our [homebrew-tap](https://github.com/deskflow/homebrew-tap)
It is recommended to install Deskflow using [Homebrew](https://brew.sh) from our [homebrew-tap](https://github.com/deskflow/homebrew-tap)
To add our tap, run:
```
brew tap deskflow/homebrew-tap
brew tap deskflow/tap
```
Then install either:
@ -115,11 +114,10 @@ mouse and keyboard sharing tools. We aim for idea sharing and interoperability.
- [**Lan Mouse**](https://github.com/feschber/lan-mouse) -
Rust implementation with the goal of having native front-ends and interoperability with
Deskflow/Synergy.
- [**Input Leap**](https://github.com/input-leap/input-leap) -
Deskflow/Synergy-derivative with the goal of continuing what Barrier started, after Barrier
became a dead fork.
- [**Synergy**](https://symless.com/synergy) -
Downstream commercial fork. Synergy sponsors Deskflow with financial support and contributes code ([learn more](https://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy)).
- [**Input Leap**](https://github.com/input-leap/input-leap) -
Inactive Deskflow/Synergy-derivative with the goal continuing Barrier development (now a dead fork).
## FAQ
@ -186,4 +184,4 @@ Deskflow is made by possible by these contributors.
## License
This project is licensed under [GPL-2.0](LICENSE) with an [OpenSSL exception](LICENSES/LicenseRef-OpenSSL-Exception.txt).
This project is licensed under [GPL-2.0](LICENSE) with an [OpenSSL exception](../LICENSES/LicenseRef-OpenSSL-Exception.txt).

View File

@ -1,34 +0,0 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
name: "Add Kitware repo"
description: "Add Kitware repo for Debian-like distros"
inputs:
distro:
description: "Ubuntu codename, Kitware uses: noble, jammy, focal"
required: true
runs:
using: "composite"
steps:
# This mirrors instructions at https://apt.kitware.com
- name: Add repo
run: |
apt update -y -qqq
apt install ca-certificates gpg wget -y -qqq
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - \
> /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ ${{ inputs.distro }} main' \
> /etc/apt/sources.list.d/kitware.list
apt update -y -qqq
env:
# Prevent apt prompting for input.
DEBIAN_FRONTEND: noninteractive
shell: bash

View File

@ -30,7 +30,7 @@ runs:
if: ${{ runner.os != 'Windows' }}
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install googletest openssl --quiet
brew install googletest openssl doxygen --quiet
elif [ "$RUNNER_OS" == "Linux" ]; then
if [ ${{inputs.like}} == "debian" ]; then
apt update -qqq > /dev/null
@ -38,26 +38,22 @@ runs:
xorg-dev libx11-dev libxtst-dev libssl-dev \
libglib2.0-dev libxkbfile-dev qt6-base-dev qt6-tools-dev \
libgtk-3-dev libgtest-dev libgmock-dev \
libei-dev libportal-dev libtomlplusplus-dev libcli11-dev \
help2man -y >/dev/null
libei-dev libportal-dev help2man doxygen -y >/dev/null
elif [ ${{inputs.like}} == "fedora" ]; then
dnf install -y cmake make ninja-build gcc-c++ \
rpm-build openssl-devel glib2-devel \
libXtst-devel libxkbfile-devel qt6-qtbase-devel qt6-qttools-devel \
gtk3-devel gtest-devel gmock-devel \
libei-devel libportal-devel tomlplusplus-devel \
cli11-devel help2man
dnf install -y cmake make ninja-build gcc-c++ rpm-build openssl-devel \
glib2-devel libXtst-devel libxkbfile-devel qt6-qtbase-devel qt6-qttools-devel \
gtk3-devel gtest-devel gmock-devel libei-devel libportal-devel help2man doxygen
elif [ ${{inputs.like}} == "suse" ]; then
zypper refresh
zypper install -y --force-resolution \
cmake make ninja gcc-c++ rpm-build libopenssl-devel \
glib2-devel libXtst-devel libxkbfile-devel qt6-base-devel qt6-tools-devel gtk3-devel \
googletest-devel googlemock-devel libei-devel \
libportal-devel tomlplusplus-devel cli11-devel help2man
glib2-devel libXtst-devel libxkbfile-devel qt6-base-devel qt6-tools-devel \
qt6-linguist-devel gtk3-devel doxygen \
googletest-devel googlemock-devel libei-devel libportal-devel help2man
elif [ ${{ inputs.like }} == "arch" ]; then
pacman -Syu --noconfirm base-devel cmake ninja \
gcc openssl glib2 libxtst libxkbfile gtest libei libportal \
qt6-base qt6-tools qt6-svg gtk3 tomlplusplus cli11 help2man doxygen graphviz rsync
qt6-base qt6-tools qt6-svg qt6-translations qt6-declarative gtk3 help2man doxygen graphviz rsync
else
echo "Unknown like"
fi
@ -85,6 +81,23 @@ runs:
extra-args: --classic --host-triplet=${{inputs.vcpkg-triplet}}
triplet: ${{inputs.vcpkg-triplet}}
token: ${{ github.token }}
revision: master
- name: Cache Chocolatey
id: cache-choco
if: (runner.os == 'Windows')
uses: actions/cache@v4
with:
path: |
C:/ProgramData/chocolatey/bin/
C:/ProgramData/chocolatey/lib/doxygen.install
C:/Program*/doxygen/
key: cache-chocolatey${{ matrix.config.arch }}-doxygen
- name: Install doxygen (windows)
if: ((runner.os == 'Windows') && (steps.cache-choco.outputs.cache-hit != 'true'))
shell: bash
run: choco install doxygen.install
- name: Install Wix
if: ${{ runner.os == 'Windows' }}
@ -94,3 +107,4 @@ runs:
wix extension add --global WixToolset.Util.wixext/5.0.2
wix extension add --global WixToolset.Firewall.wixext/5.0.2
shell: pwsh

View File

@ -1,5 +1,5 @@
name: "Lint Check"
description: "Checks for lint errors and posts a helpful comment"
name: "Lint Clang"
description: "Checks for Clang lint errors and posts a helpful comment"
runs:
using: "composite"
@ -48,8 +48,10 @@ runs:
run: |
code_block="\`\`\`"
clang_version=$(clang-format --version | sed -n 's/^.*version //p')
summary=$(cat <<EOF
❌ \`clang-format\`: It looks like your changes don't match our code style.
❌ \`clang-format\` \`v${clang_version}\`: It looks like your changes don't match our code style.
🛠️ Please either run \`clang-format -i\` on the file or apply this patch with \`git apply\`:
@ -57,12 +59,21 @@ runs:
$code_block diff
${{ steps.changes.outputs.diff }}
$code_block
Hint: Install the right version of \`clang-format\`, e.g.: \`pipx install --global clang-format==${clang_version}\`
EOF
)
echo "$summary" >> $GITHUB_STEP_SUMMARY
file="ci_summary.md"
echo "❌🛠️ \`clang-format\`: Lint errors, fix available." >> $file
pr_comment=$(cat <<EOF
### Lint result
$summary
EOF
)
file="ci-summary.md"
echo "$pr_comment" | tee $file
echo "file=$file" >> $GITHUB_OUTPUT
shell: bash

View File

@ -16,7 +16,7 @@ runs:
steps:
- name: Unit Tests
id: unittests
id: unit-tests
env:
QT_QPA_PLATFORM: offscreen
run: |
@ -30,7 +30,7 @@ runs:
continue-on-error: true
- name: Legacy Tests
id: legacytests
id: legacy-tests
env:
QT_QPA_PLATFORM: offscreen
run: |
@ -48,12 +48,12 @@ runs:
run: |
pass="✅ Pass"
fail="❌ Fail"
unittests_outcome="${{ steps.unittests.outcome }}"
legacytests_outcome="${{ steps.legacytests.outcome }}"
unittests=$( [ "$unittests_outcome" = "success" ] && echo $pass || echo $fail )
legacytests=$( [ "$legacytests_outcome" = "success" ] && echo $pass || echo $fail )
echo "unittests=$unittests" >> $GITHUB_OUTPUT
echo "legacytests=$legacytests" >> $GITHUB_OUTPUT
unit_tests_outcome="${{ steps.unit-tests.outcome }}"
legacy_tests_outcome="${{ steps.legacy-tests.outcome }}"
unit_tests=$( [ "$unit_tests_outcome" = "success" ] && echo $pass || echo $fail )
legacy_tests=$( [ "$legacy_tests_outcome" = "success" ] && echo $pass || echo $fail )
echo "unit-tests=$unit_tests" >> $GITHUB_OUTPUT
echo "legacy-tests=$legacy_tests" >> $GITHUB_OUTPUT
shell: bash
- name: Summary row
@ -63,8 +63,8 @@ runs:
row=""
row+="| ${{ inputs.job }} "
row+="| ${{ steps.results.outputs.unittests }} "
row+="| ${{ steps.results.outputs.legacytests }} "
row+="| ${{ steps.results.outputs.unit-tests }} "
row+="| ${{ steps.results.outputs.legacy-tests }} "
echo "$row" > $file
echo "file=$file" > $GITHUB_OUTPUT
@ -77,7 +77,7 @@ runs:
path: ${{ steps.row.outputs.file }}
- name: Check test outcome
if: (steps.unittests.outcome != 'success' || steps.legacytests.outcome != 'success')
if: (steps.unit-tests.outcome != 'success' || steps.legacy-tests.outcome != 'success')
run: |
echo "Tests failed"
exit 1

49
.github/actions/test-package/action.yml vendored Normal file
View File

@ -0,0 +1,49 @@
name: "Test Package"
description: "Installs the built package and verifies the installed binaries can run"
inputs:
like:
description: "Used only on linux distro type: debian, fedora, suse, arch"
required: false
default: ""
runs:
using: "composite"
steps:
- name: Test package
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
dmg=$(ls build/deskflow-*.dmg | head -1)
echo "Y" | hdiutil attach "$dmg" -nobrowse -mountpoint /tmp/deskflow-dmg
/tmp/deskflow-dmg/Deskflow.app/Contents/MacOS/deskflow-core --version
hdiutil detach /tmp/deskflow-dmg
elif [ "$RUNNER_OS" == "Windows" ]; then
7z x build/deskflow-*-portable.7z -otmp/deskflow-pkg
exe=$(find tmp/deskflow-pkg -name "deskflow-core.exe" -type f | head -1)
exe_dir=$(dirname "$exe")
pkg_root=$(dirname "$exe_dir")
export PATH="$exe_dir:$pkg_root:$pkg_root/lib:$PATH"
"$exe" --version
elif [ "$RUNNER_OS" == "Linux" ]; then
if [ "${{inputs.like}}" == "debian" ]; then
apt-get install -y ./build/deskflow-*.deb
elif [ "${{inputs.like}}" == "fedora" ]; then
dnf install -y build/deskflow-*.rpm
elif [ "${{inputs.like}}" == "suse" ]; then
zypper install -y --allow-unsigned-rpm build/deskflow-*.rpm
elif [ "${{inputs.like}}" == "arch" ]; then
pacman -U --noconfirm build/deskflow-*.pkg.tar.zst
else
echo "Unknown like: ${{inputs.like}}"
exit 1
fi
deskflow-core --version
else
echo "Unknown OS: $RUNNER_OS"
exit 1
fi

View File

@ -28,8 +28,7 @@ runs:
# Builds a markdown table from the row artifacts.
header=$(cat <<EOF
# Test results
| Job name | Unit tests | Integration tests |
| OS | Unit tests | Legacy tests |
| --- | --- | --- |
EOF
)
@ -57,15 +56,25 @@ runs:
if [ -z "$table" ]; then
echo "No test results found" | tee $GITHUB_STEP_SUMMARY >&2
exit 1
else
echo "$table" > $GITHUB_STEP_SUMMARY
fi
count=$(echo "$table" | awk -v RS='' '{gsub(/[^❌]/, ""); print length}')
file="ci-summary.md"
echo "$table" > $GITHUB_STEP_SUMMARY
count=$(echo "$table" | { grep -o '❌' || true; } | wc -l)
# Keep at this indentation level for heredoc.
fail_summary=$(cat <<EOF
### Test result
❌🔬 Tests failed: $count
$table
EOF
)
file="ci-summary.md"
if [ $count -gt 0 ]; then
echo "❌🔬 Tests failed: $count" | tee $file
echo "$fail_summary" | tee $file
echo "file=$file" >> $GITHUB_OUTPUT
else
# For debugging; don't send success to CI summary (reduce noise).

View File

@ -1,33 +0,0 @@
name: Winget Publish
description: A composite action to publish packages to the Windows Package Manager (Winget) repository
inputs:
release-version:
description: "Version to publish to Winget package manager (without 'v' prefix)"
required: true
token:
description: "GitHub token with public read permissions on the source repo"
required: true
runs:
using: "composite"
steps:
- name: Submit package to Windows Package Manager Community Repository
if: ${{ runner.os == 'Windows' }}
env:
GITHUB_TOKEN: ${{ inputs.token }}
run: |
# Download latest wingetcreate
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
$packageId = "Deskflow.Deskflow"
$x64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-x64.msi"
$arm64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-arm64.msi"
# Submit package update
.\wingetcreate.exe update "$packageId" `
--version "${{ inputs.release-version }}" `
--urls "$x64Url|x64" "$arm64Url|arm64"`
--submit `
--token "${{ inputs.token }}"
shell: pwsh

15
.github/pull_request_template.md vendored Normal file
View File

@ -0,0 +1,15 @@
## Description
<!--- Describe your what your changes do -->
## Disclosure of AI use
<!--- Disclouse your use of AI Tools used to make this pr -->
<!--- If any AI tools were used to crate the code let us know -->
## Related Issue
<!--- If fixing an issue you must add a `fixes` line for each issues fixed-->
<!--- Example, if fixing Issues #1234 you would add -->
<!--- fixes: #1234 -->
## How Has This Been Tested?
<!--- Please describe how you tested your changes -->
<!--- Include details of your testing environment -->

View File

@ -18,12 +18,15 @@ on:
jobs:
summary:
if: github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
# If the workflow fails before uploading summaries, no artifacts exist and this step fails.
# Allow failure so the "Delete PR comment" step still runs to clean up stale comments.
- name: Download summaries
id: download
uses: actions/download-artifact@v4
continue-on-error: true
with:
run-id: ${{ github.event.workflow_run.id }}
pattern: summary-*
@ -54,15 +57,16 @@ jobs:
console.log("Found PR:", pr.number);
return pr.number;
} else {
core.setFailed("PR not found");
core.warning("PR not found for SHA (maybe removed by force push)");
}
- name: Merge summaries
if: steps.get-pr-number.outputs.result
id: summary
run: |
ls -R
files=$(find $dir -type f)
files=$(find summaries -type f 2>/dev/null || true)
if [ -z "$files" ]; then
echo "No files found in dir: $dir"
exit 0
@ -76,7 +80,7 @@ jobs:
echo "## CI Summary"
for file in $files; do
echo $(cat $file)
cat $file
done
echo
@ -85,7 +89,7 @@ jobs:
} >> $GITHUB_OUTPUT
- name: Set PR comment
if: steps.summary.outputs.message
if: steps.get-pr-number.outputs.result && steps.summary.outputs.message
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.get-pr-number.outputs.result }}
@ -93,7 +97,7 @@ jobs:
message: ${{ steps.summary.outputs.message }}
- name: Delete PR comment
if: ${{ !steps.summary.outputs.message }}
if: ${{ steps.get-pr-number.outputs.result && !steps.summary.outputs.message }}
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.get-pr-number.outputs.result }}

View File

@ -1,42 +1,37 @@
name: "CodeQL Analysis"
# According to the docs, the CodeQL workflow should be triggered directly by push to master
# and by pull requests (we only run this on open PRs as it's very slow). We also use the
# `workflow_dispatch` event is also enabled to allow manual triggering of the workflow for testing.
#
# We should not trigger this workflow with `workflow_call` as this causes the error:
# "1 configuration present on `master` was not found"
#
# Sadly, this means we can't roll it into our monolithic CI workflow.
# This is best run as a standalone workflow, not as part of another workflow like CI
# because of how GitHub understands the code scanning workflows in it's UI.
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '**/*.md'
- '.github/ISSUE_TEMPLATE/**'
- '.editorconfig'
- '.env-example'
- '.gitignore'
- '.gitattributes'
- 'cspell.json'
paths:
- '.github/workflows/codeql-analysis.yml'
- 'cmake/Libraries.cmake'
- 'CMakeLists.txt'
- 'src/**'
- '!src/res/**'
- '!src/unittests/**'
push:
branches: [master]
paths:
- '.github/workflows/codeql-analysis.yml'
- 'cmake/Libraries.cmake'
- 'CMakeLists.txt'
- 'src/**'
- '!src/res/**'
- '!src/unittests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
if: ${{ !github.event.pull_request.draft }}
name: Analyze
codeql:
runs-on: ubuntu-latest
container: debian:trixie-slim
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
language: ["cpp"]
steps:
- name: Install container dependencies
run: |
@ -44,7 +39,7 @@ jobs:
apt install -qqq git > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- name: Install dependencies
uses: ./.github/actions/install-dependencies
@ -52,12 +47,12 @@ jobs:
like: "debian"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
languages: cpp
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4

View File

@ -8,21 +8,12 @@ on:
push:
branches: [master]
tags:
- 'v*'
- "v*"
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- '**/*.md'
- '.github/ISSUE_TEMPLATE/**'
- '.editorconfig'
- '.env-example'
- '.gitignore'
- '.gitattributes'
- 'cspell.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
@ -31,40 +22,20 @@ env:
CMAKE_CONFIGURE: "cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DSKIP_BUILD_TESTS=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON"
jobs:
# Always run this job, even if not on PR, since other jobs need it.
pr-comment-flags:
runs-on: ubuntu-latest
needs: lint-check
outputs:
no-sonar: ${{ steps.check.outputs.no-sonar }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check PR comment for flags
if: ${{ github.event_name == 'pull_request' }}
id: check
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
no_sonar="{no-sonar}"
if echo $PR_BODY | grep -q "$no_sonar"; then
echo "Flag $no_sonar found in PR body."
echo "no-sonar=true" >> $GITHUB_OUTPUT
else
echo "No $no_sonar flag found in PR body."
fi
# Quality gate to allow PR merge, used in the branch protection rules.
ci-passed:
runs-on: ubuntu-latest
needs: [test-results, unix, flatpak]
needs: [main-build, test-results, unix, flatpak]
if: always()
steps:
- run: echo "✅ CI passed" > $GITHUB_STEP_SUMMARY
- name: Check all steps passed
run: |
if [[ ${{needs.main-build.result}} == 'success' && ${{needs.test-results.result}} == 'success' && ${{needs.unix.result}} == 'success' && ${{needs.flatpak.result}} == 'success' ]]; then
echo "✅ CI passed" > $GITHUB_STEP_SUMMARY
else
exit 1
fi
# Summary of test results, combined from test result artifacts.
# Runs even if the tests fail to provide a summary of the failures.
@ -72,52 +43,45 @@ jobs:
needs: main-build
if: always() && needs.main-build.result != 'skipped'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Test summary
uses: ./.github/actions/test-summary
reuse-lint:
lint-reuse:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v4
uses: fsfe/reuse-action@v5
lint-check:
needs: [reuse-lint]
runs-on: ubuntu-latest
lint-clang:
needs: [lint-reuse]
runs-on: ubuntu-slim
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Lint Checker
uses: ./.github/actions/lint-check
uses: ./.github/actions/lint-clang
analyse-valgrind:
needs: lint-check
analyze-valgrind:
needs: lint-clang
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/valgrind-analysis.yml
analyse-sonarcloud:
needs: pr-comment-flags
if: ${{ needs.pr-comment-flags.outputs.no-sonar != 'true' }}
uses: ./.github/workflows/sonarcloud-analysis.yml
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
main-build:
needs: lint-check
needs: lint-clang
name: ${{ matrix.target.name }}
runs-on: ${{ matrix.target.runs-on }}
container: ${{ matrix.target.container }}
@ -133,40 +97,54 @@ jobs:
runs-on: "windows-2022"
timeout: 30
config-args: "-G Ninja"
qt-version: 6.9.0
vcpkg-triplet: x64-windows-release
arch: "amd64"
qt-version: 6.10.2
- name: "windows-2022-arm64"
runs-on: "windows-11-arm"
timeout: 30
config-args: "-G Ninja"
qt-version: 6.9.1
vcpkg-triplet: arm64-windows
arch: "arm64"
qt-version: 6.10.2
- name: "macos-14-arm64"
runs-on: "macos-14"
- name: "macos-arm64"
runs-on: macos-15
timeout: 10
config-args: "-DCMAKE_OSX_ARCHITECTURES=\"arm64\" -DCMAKE_OSX_SYSROOT=/Applications/Xcode_15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
qt-version: 6.9.1
qt-version: 6.10.2
config-args: '-DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=14 -DCMAKE_OSX_SYSROOT=/Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
- name: "macos-13-x64"
runs-on: macos-13
- name: "macos-x64"
runs-on: macos-15-intel
timeout: 20
config-args: "-DCMAKE_OSX_ARCHITECTURES=\"x86_64\" -DCMAKE_OSX_SYSROOT=/Applications/Xcode_15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
qt-version: 6.9.1
qt-version: 6.9.3
config-args: '-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=12 -DCMAKE_OSX_SYSROOT=/Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
- name: "debian-13-x86_64"
- name: "debian-x86_64"
runs-on: ubuntu-latest
container: debian:trixie-slim
container: debian:stable-slim
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "debian-13-arm64"
- name: "debian-arm64"
runs-on: ubuntu-24.04-arm
container: debian:trixie-slim
container: debian:stable-slim
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "debian-testing-x86_64"
runs-on: ubuntu-latest
container: debian:testing-slim
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "debian-testing-arm64"
runs-on: ubuntu-24.04-arm
container: debian:testing-slim
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
@ -185,21 +163,21 @@ jobs:
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "fedora-41-x86_64"
- name: "fedora-43-x86_64"
runs-on: ubuntu-latest
container: fedora:41
container: fedora:43
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "fedora-41-arm64"
- name: "fedora-43-arm64"
runs-on: ubuntu-24.04-arm
container: fedora:41
container: fedora:43
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "opensuse-x86_84"
- name: "opensuse-x86_64"
runs-on: ubuntu-latest
container: opensuse/tumbleweed:latest
like: "suse"
@ -213,23 +191,37 @@ jobs:
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "archlinux-x86_84"
- name: "archlinux-x86_64"
runs-on: ubuntu-latest
container: archlinux:latest
like: "arch"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DEV_DOCS=ON"
- name: "ubuntu-25.04-x86_64"
- name: "ubuntu-25.10-x86_64"
runs-on: ubuntu-latest
container: ubuntu:25.04
container: ubuntu:25.10
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "ubuntu-25.04-arm64"
- name: "ubuntu-25.10-arm64"
runs-on: ubuntu-24.04-arm
container: ubuntu:25.04
container: ubuntu:25.10
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "ubuntu-26.04-x86_64"
runs-on: ubuntu-latest
container: ubuntu:26.04
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "ubuntu-26.04-arm64"
runs-on: ubuntu-24.04-arm
container: ubuntu:26.04
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
@ -255,7 +247,7 @@ jobs:
# Fancy checkout gets all the tags
# it also makes sure we can use git --describe correctly
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
# This effectively runs `vcvarsall.bat`, etc. It's not actually installing
# VC++ as that's already pre-installed on the Windows runner.
@ -265,7 +257,6 @@ jobs:
with:
arch: ${{matrix.target.arch}}
- name: Install dependencies
id: get-deps
uses: ./.github/actions/install-dependencies
@ -277,6 +268,11 @@ jobs:
- name: Get version
uses: ./.github/actions/get-version
- name: Update Windows Paths
if: (runner.os == 'Windows')
shell: pwsh
run: echo "C:\Program Files\doxygen\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Configure
run: ${{env.CMAKE_CONFIGURE}} ${{ matrix.target.config-args }} ${{ steps.get-deps.outputs.vcpkg-cmake-config }} -DPACKAGE_VERSION_LABEL="${{env.DESKFLOW_PACKAGE_VERSION}}"
@ -284,7 +280,21 @@ jobs:
shell: bash
run: |
if [[ "${{matrix.target.like}}" != "arch" ]]; then
if [ "$RUNNER_OS" != "macOS" ]; then
cmake --build build --config Release -j8 --target package
else
cmake --build build --config Release -j8
for i in $(seq 1 5); do
cmake --build build --config Release -j8 --target package 2>&1
if [ $? -eq 0 ]; then
echo "Package successful"
break
else
echo "Package attempt $i failed"
sleep 1
fi
done
fi
else
cmake --build build --config Release -j8
useradd -m build
@ -297,18 +307,31 @@ jobs:
cd ..
fi
- name: Check for unexpected repo changes
shell: bash
run: |
if [[ `git status --porcelain` ]]; then
echo "Unexpected changes to the repo, Often caused by forgetting to commit the updated translation files"
exit 1
fi
- name: Tests
uses: ./.github/actions/run-tests
timeout-minutes: 2
with:
job: ${{ matrix.target.name }}
- name: Test package
uses: ./.github/actions/test-package
with:
like: ${{ matrix.target.like }}
- name: Update Development Documentation
if: matrix.target.like == 'arch' && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
branch: gh-pages
folder: build/doc/dev/html
folder: build/docs/dev/html
- name: Upload
uses: actions/upload-artifact@v4
@ -318,7 +341,7 @@ jobs:
# Technically, "unix" is a misnomer, but we use it here to mean "Unix-like BSD-derived".
unix:
needs: lint-check
needs: lint-clang
name: unix-${{ matrix.distro.name }}
runs-on: ${{ vars.CI_UNIX_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 20
@ -334,7 +357,7 @@ jobs:
# Fancy checkout gets all the tags
# it also makes sure we can use git --describe correctly
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- name: Build on FreeBSD
if: ${{ matrix.distro.name == 'freebsd' }}
uses: vmactions/freebsd-vm@v1
@ -342,20 +365,20 @@ jobs:
usesh: true
run: |
pkg install -y cmake ninja gmake gcc12 openssl glib \
libX11 libXtst libxkbfile qt6-base qt6-tools gtk3 googletest \
tomlplusplus cli11 pkgconf libei libportal
libX11 libXtst libxkbfile qt6-base qt6-tools gtk3 \
googletest pkgconf libei libportal doxygen
${{env.CMAKE_CONFIGURE}} -G Ninja
cmake --build build -j16
# Integration tests are flakey by nature, make them optional.
export QT_QPA_PLATFORM=offscreen
./build/bin/unittests || true
flatpak:
needs: lint-check
needs: lint-clang
name: flatpak-${{matrix.flatpak.arch}}
runs-on: ${{matrix.flatpak.runs-on}}
timeout-minutes: 60
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
options: --privileged
strategy:
fail-fast: false
@ -367,7 +390,7 @@ jobs:
arch: aarch64
steps:
- name: Check out repository
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- run: git config --global protocol.file.allow always
@ -405,7 +428,7 @@ jobs:
steps:
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- name: Get version
uses: ./.github/actions/get-version
@ -429,7 +452,7 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
prerelease: true
title: 'Continuous Build'
title: "Continuous v${{env.DESKFLOW_VERSION}}"
files: |
deskflow-*
sums.txt
@ -444,19 +467,12 @@ jobs:
deskflow-*
sums.txt
winget-publish:
needs: release
if: contains(github.ref, 'tags/v')
runs-on: windows-latest
steps:
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
- name: Get version
uses: ./.github/actions/get-version
- name: Submit
uses: ./.github/actions/winget-publish
with:
release-version: ${{env.DESKFLOW_PACKAGE_VERSION}}
token: ${{ secrets.WINGET_DEPLOY_TOKEN }}
- name: Update Homebrewtap
shell: bash
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DF_TAP_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/deskflow/homebrew-tap/dispatches \
-d '{"event_type":"update_tap"}'

View File

@ -5,7 +5,7 @@ on:
jobs:
stale-issues:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
timeout-minutes: 10
steps:

View File

@ -1,14 +1,36 @@
name: "SonarCloud Analysis"
# This is best run as a standalone workflow, not as part of another workflow like CI
# because of how GitHub understands the code scanning workflows in it's UI.
on:
workflow_dispatch:
workflow_call:
secrets:
SONAR_TOKEN:
required: true
pull_request:
paths:
- '.github/workflows/sonarcloud-analysis.yml'
- 'sonar-project.properties'
- 'cmake/Libraries.cmake'
- 'CMakeLists.txt'
- 'src/**'
- '!src/res/**'
- '!src/unittests/**'
push:
branches: [master]
paths:
- '.github/workflows/codeql-analysis.yml'
- 'cmake/Libraries.cmake'
- 'CMakeLists.txt'
- 'src/**'
- '!src/res/**'
- '!src/unittests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sonarcloud-analysis:
sonar:
# This job would fail for contributors who open PRs as the workflow runs outside of our repo
# in this scenario. Having a var that only we set to true prevents this job from running.
if: ${{ vars.SONAR_SCANNER_ENABLED }}
runs-on: ubuntu-latest
@ -16,10 +38,7 @@ jobs:
timeout-minutes: 20
env:
SONAR_SCANNER_VERSION: 6.1.0.4477
SONAR_SCANNER_OPTS: -server
SONAR_SCANNER_URL_BASE: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli
CPU_CORE_COUNT: ${{ vars.SONAR_SCANNER_CPU_COUNT || 4 }}
CPU_CORE_COUNT: 4
steps:
- name: Install container dependencies
@ -28,15 +47,15 @@ jobs:
apt install -qqq git curl unzip gcovr > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- name: Install project dependencies
uses: ./.github/actions/install-dependencies
with:
like: "debian"
- name: Install sonar-scanner and build-wrapper
uses: sonarsource/sonarcloud-github-c-cpp@v3
- name: Install Build Wrapper
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v6
- name: Configure
run: |
@ -71,11 +90,11 @@ jobs:
fi
echo "csv=$paths" >> $GITHUB_OUTPUT
- name: Run SonarScanner
run: |
export PATH=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64/bin:$PATH
sonar-scanner \
-Dsonar.coverageReportPaths=${{ steps.coverage-paths.outputs.csv }} \
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
with:
args: >
-Dsonar.coverageReportPaths=${{ steps.coverage-paths.outputs.csv }}
-Dsonar.cfamily.threads=${{ env.CPU_CORE_COUNT }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

View File

@ -17,7 +17,7 @@ jobs:
apt install -qqq git valgrind > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
uses: sithlord48/fancy-checkout@v2
- name: Install dependencies
uses: ./.github/actions/install-dependencies

7
.gitignore vendored
View File

@ -25,6 +25,9 @@ deskflow-config.toml
/*.user
*.ui.autosave
#Qt creator 18 user files
/.qtcreator
# generated vcpkg file
vcpkg.json
@ -42,3 +45,7 @@ CMakeFiles/*
# scripts folder
/scripts
# Ai helperfilers
**/[cC]laude.[mM][dD]
**/CLAUDE.[mM][dD]

View File

@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2024 - 2025 Deskflow Developers
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-FileCopyrightText: (C) 2024 - 2026 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.24)
@ -11,6 +11,11 @@ cmake_policy(SET CMP0003 NEW)
# Fix define escaping
cmake_policy(SET CMP0005 NEW)
# De-duplicate libraries on linker calls
if(POLICY CMP0156)
cmake_policy(SET CMP0156 NEW)
endif()
# Set CXX Requirements
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
@ -18,7 +23,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Fallback for when git can not be found
set(DESKFLOW_VERSION_MAJOR 1)
set(DESKFLOW_VERSION_MINOR 23)
set(DESKFLOW_VERSION_MINOR 26)
set(DESKFLOW_VERSION_PATCH 0)
set(DESKFLOW_VERSION_TWEAK 0)
@ -32,24 +37,14 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
OUTPUT_VARIABLE GIT_SHA_SHORT
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-list --tags --count
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
OUTPUT_VARIABLE GIT_TAG_COUNT
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(GIT_TAG_COUNT EQUAL 0)
set(DESKFLOW_VERSION_TWEAK "9999")
else()
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --long --match v* --always
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
OUTPUT_VARIABLE GITREV
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
string(FIND ${GITREV} "v" isRev)
if(NOT ifRev EQUAL -1)
string(FIND "${GITREV}" "v" isRev)
if(NOT ${isRev} EQUAL -1)
string(REGEX MATCH [0-9]+ MAJOR ${GITREV})
string(REGEX MATCH \\.[0-9]+ MINOR ${GITREV})
string(REPLACE "." "" MINOR "${MINOR}")
@ -61,10 +56,10 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
set(DESKFLOW_VERSION_MINOR ${MINOR})
set(DESKFLOW_VERSION_PATCH ${PATCH})
set(DESKFLOW_VERSION_TWEAK ${TWEAK})
elseif(NOT ${GITREV} STREQUAL "")
set(DESKFLOW_VERSION_TWEAK ${GITREV})
endif()
else()
set(DESKFLOW_VERSION_TWEAK "9999")
endif()
unset(GITREV)
endif()
endif()
@ -82,13 +77,16 @@ project(
deskflow
VERSION "${DESKFLOW_VERSION_MAJOR}.${DESKFLOW_VERSION_MINOR}.${DESKFLOW_VERSION_PATCH}.${DESKFLOW_VERSION_TWEAK}"
DESCRIPTION "Keyboard and mouse sharing utility"
LANGUAGES C CXX)
HOMEPAGE_URL "https://deskflow.org"
LANGUAGES C CXX
)
# Define Additional "PROJECT" vars for packaging and metadata
set(CMAKE_PROJECT_PROPER_NAME "Deskflow")
set(CMAKE_PROJECT_VENDOR "${CMAKE_PROJECT_PROPER_NAME} Devs")
set(CMAKE_PROJECT_COPYRIGHT "(C) 2024-2025 ${CMAKE_PROJECT_VENDOR}")
set(CMAKE_PROJECT_COPYRIGHT "(C) 2024-2026 ${CMAKE_PROJECT_VENDOR}")
set(CMAKE_PROJECT_CONTACT "${CMAKE_PROJECT_PROPER_NAME} <maintainers@deskflow.org>")
set(CMAKE_PROJECT_REV_FQDN "org.deskflow.deskflow")
#Unset the vars used in the project call
unset(DESKFLOW_VERSION_MAJOR)
@ -101,7 +99,7 @@ message(STATUS "Building ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
# Set lib versions
set(REQUIRED_OPENSSL_VERSION 3.0)
set(REQUIRED_LIBEI_VERSION 1.3)
set(REQUIRED_LIBPORTAL_VERSION 0.8)
set(REQUIRED_LIBPORTAL_VERSION 0.9.1)
set(REQUIRED_QT_VERSION 6.7.0)
if (WIN32)
@ -144,11 +142,6 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DNDEBUG)
endif()
# Set required macOS SDK
if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET 12)
endif()
# Set Output Folders
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
@ -157,38 +150,56 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
# Instead use Q_SIGNAL, Q_SLOT and Q_EMIT
# prevents issues when used with glib for libportal
add_definitions(-DQT_NO_KEYWORDS)
include(cmake/Libraries.cmake)
include(GNUInstallDirs)
#Options for Linux platform support
if(UNIX AND NOT APPLE)
option(BUILD_X11_SUPPORT "Build with x11 support" ON)
elseif (APPLE)
option(BUILD_OSX_BUNDLE "Build mac os bundle" ON)
endif()
include(cmake/Libraries.cmake)
configure_libs()
add_subdirectory(doc)
add_subdirectory(src)
# Install License, License is in the App Bundle on mac os (src/gui)
if(WIN32)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE
DESTINATION .
)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt
DESTINATION .
RENAME LICENSE_EXCEPTION
)
elseif(UNIX AND NOT APPLE)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE
DESTINATION share/licenses/deskflow
)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt
DESTINATION share/licenses/deskflow
RENAME LICENSE_EXCEPTION
)
if(BUILD_OSX_BUNDLE AND APPLE_CODESIGN_DEV)
include(cmake/MacCodesign.cmake)
endif()
# setup install paths
include(GNUInstallDirs)
if (WIN32)
set(CMAKE_INSTALL_BINDIR .)
set(CMAKE_INSTALL_LIBDIR .)
set(CMAKE_INSTALL_DOCDIR docs)
set(CMAKE_INSTALL_LICENSE_DIR .)
set(CMAKE_INSTALL_I18N_DIR translations)
elseif(BUILD_OSX_BUNDLE)
set(CMAKE_INSTALL_BINDIR ${CMAKE_PROJECT_PROPER_NAME}.app/Contents/MacOS)
set(CMAKE_INSTALL_LICENSE_DIR ${CMAKE_PROJECT_PROPER_NAME}.app/Contents/Resources)
else()
set(CMAKE_INSTALL_LICENSE_DIR ${CMAKE_INSTALL_DATADIR}/licenses/${CMAKE_PROJECT_NAME})
set(CMAKE_INSTALL_I18N_DIR ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/translations)
endif()
add_subdirectory(docs)
# build translations before source, I18N unit tests fail if they are missing
add_subdirectory(translations)
add_subdirectory(src)
option(BUILD_INSTALLER "Build installer" ON)
if(BUILD_INSTALLER)
add_subdirectory(deploy)
endif()
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE
DESTINATION ${CMAKE_INSTALL_LICENSE_DIR}
)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt
DESTINATION ${CMAKE_INSTALL_LICENSE_DIR}
RENAME LICENSE_EXCEPTION
)

View File

@ -17,7 +17,7 @@ path = [
, "sonar-project.properties"
, "cmake/vcpkg.json.in"
, "**/*.md"
, "doc/**"
, "docs/**"
, "deploy/linux/flatpak/**"
, "deploy/linux/org.deskflow.deskflow.metainfo.xml"
, "deploy/windows/wix-patch.xml.in"
@ -26,8 +26,9 @@ path = [
, "src/apps/deskflow-server/deskflow-server.exe.manifest"
, "src/apps/res/manpage.txt"
, "src/apps/res/deskflow.plist.in"
, "src/apps/res/entitlements-dev.plist"
, "translations/*.ts"
]
precedence = "override"
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "MIT"
@ -35,7 +36,7 @@ SPDX-License-Identifier = "MIT"
path = [
"deploy/mac/dmg-background.tiff"
, "deploy/mac/dmg-volume.icns"
, "deploy/linux/deskflow.png"
, "deploy/linux/org.deskflow.deskflow.png"
, "deploy/windows/wix-banner.png"
, "deploy/windows/wix-dialog.png"
, "src/apps/res/icons/deskflow-**/apps/64/deskflow*.svg"
@ -44,19 +45,16 @@ path = [
, "src/apps/res/deskflow.ico"
, "src/apps/res/deskflow.qrc"
]
precedence = "override"
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "GPL-2.0-only"
[[annotations]]
path = "src/apps/res/icons/deskflow-**/**/**/**.svg"
precedence = "override"
SPDX-FileCopyrightText = "Kde Breeze Icons"
SPDX-License-Identifier = "LGPL-2.1-only"
[[annotations]]
path = "src/apps/res/icons/deskflow-**/index.theme"
precedence = "override"
SPDX-FileCopyrightText = "Chris Rizzitello <sithlord48@gmail.com>"
SPDX-License-Identifier = "LGPL-2.1-only"
@ -65,6 +63,5 @@ path = [
"src/lib/gui/MainWindow.ui"
, "src/lib/gui/dialogs/*.ui"
]
precedence = "override"
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "GPL-2.0-only WITH LicenseRef-OpenSSL-Exception"

View File

@ -1,9 +1,9 @@
# SOURCE https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake
# SPDX-FileCopyrightText: 2020 Bob Apthrope
# SPDX-FileCopyrightText: 2019 Anatolii Kurotych
# SPDX-FileCopyrightText: 2019 - 2020 Frank Dana
# SPDX-FileCopyrightText: 2013 Joakim Söderberg
# SPDX-FileCopyrightText: 2012 - 2017 Lars Bilke
# SPDX-FileCopyrightText: (C) 2020 Bob Apthrope
# SPDX-FileCopyrightText: (C) 2019 Anatolii Kurotych
# SPDX-FileCopyrightText: (C) 2019 - 2020 Frank Dana
# SPDX-FileCopyrightText: (C) 2013 Joakim Söderberg
# SPDX-FileCopyrightText: (C) 2012 - 2017 Lars Bilke
# SPDX-License-Identifier: MIT
# USAGE:

View File

@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: 2024 - 2025 Deskflow Developers
# SPDX-FileCopyrightText: 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2024 - 2025 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2024 Symless Ltd
# SPDX-License-Identifier: MIT
macro(configure_libs)
@ -49,6 +49,20 @@ macro(configure_libs)
message(STATUS "Qt version: ${Qt6_VERSION}")
# Check if <format> header is available
check_cxx_source_compiles("
#include <format>
int main() {
char buffer[100];
std::format_to_n(buffer, 100, \"test {}\", 42);
return 0;
}
" HAVE_FORMAT)
if(HAVE_FORMAT)
add_definitions(-DHAVE_FORMAT)
endif()
option(ENABLE_COVERAGE "Enable test coverage" OFF)
if(ENABLE_COVERAGE)
message(STATUS "Enabling code coverage")
@ -89,6 +103,7 @@ macro(configure_unix_libs)
include(CheckIncludeFileCXX)
include(CheckSymbolExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
check_include_files(sys/socket.h HAVE_SYS_SOCKET_H)
if (NOT HAVE_SYS_SOCKET_H)
@ -102,30 +117,8 @@ macro(configure_unix_libs)
endif()
check_function_exists(sigwait HAVE_POSIX_SIGWAIT)
check_function_exists(inet_aton HAVE_INET_ATON)
# For some reason, the check_function_exists macro doesn't detect the
# inet_aton on some pure Unix platforms (e.g. sunos5). So we need to do a more
# detailed check and also include some extra libs.
if(NOT HAVE_INET_ATON)
set(CMAKE_REQUIRED_LIBRARIES nsl)
check_c_source_compiles(
"#include <arpa/inet.h>\n int main() { inet_aton (0, 0); }"
HAVE_INET_ATON_ADV)
set(CMAKE_REQUIRED_LIBRARIES)
if(HAVE_INET_ATON_ADV)
# Override the previous fail.
set(HAVE_INET_ATON 1)
# Assume that both nsl and socket will be needed, it seems safe to add
# socket on the back of nsl, since socket only ever needed when nsl is
# needed.
list(APPEND libs nsl socket)
endif()
if (NOT HAVE_POSIX_SIGWAIT)
message(FATAL_ERROR "Missing posix sigwait")
endif()
# pthread is used on both Linux and Mac
@ -148,11 +141,11 @@ macro(configure_unix_libs)
${lib_ScreenSaver} ${lib_IOKit} ${lib_ApplicationServices}
${lib_Foundation} ${lib_Carbon} ${lib_UserNotifications}
)
add_definitions(-DWINAPI_CARBON=1 -D_THREAD_SAFE)
else()
if (BUILD_X11_SUPPORT)
configure_xorg_libs()
endif()
include(FindPkgConfig)
find_package(PkgConfig)
@ -162,19 +155,12 @@ macro(configure_unix_libs)
find_library(LIBM m)
include_directories(${LIBXKBCOMMON_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS}
${LIBM_INCLUDE_DIRS})
message(STATUS "xkbcommon version: ${LIBXKBCOMMON_VERSION}")
else()
message(WARNING "pkg-config not found, skipping wayland libraries")
endif()
endif()
# Unix only: For config.h, save the results based on a template (config.h.in).
# Note that this won't work on Windows because filenames are not case sensitive,
# and we have header files named "Config.h" (upper case 'C').
configure_file(${CMAKE_SOURCE_DIR}/src/lib/Config.h.in
${CMAKE_BINARY_DIR}/src/lib/Config.h @ONLY)
add_definitions(-DSYSAPI_UNIX=1 -DHAVE_CONFIG_H)
endmacro()
#

51
cmake/MacCodesign.cmake Normal file
View File

@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: (C) 2025-2026 Deskflow Contributors
# SPDX-License-Identifier: MIT
# Warning: Do not use for CI/production, as the `entitlements-dev.plist` file adds special
# entitlements that are only appropriate for local development.
#
# macOS made TCC stricter so that if you don't sign your local dev builds properly, macOS will
# nag you to remove and re-approve the app every time you make a change to the binary which is
# extremely annoying during development.
#
# If you were to use ad-hoc signing (i.e. not specify a certificate), TCC would still nag you
# because the binary identity is anchored not on the app ID, but on the CD hash (which changes
# based on the binary contents).
#
# To use, simply generate a personal certificate for free with Xcode and pass the ID to CMake.
# Full instructions are in the docs.
function(configure_mac_codesign target)
set_property(GLOBAL APPEND PROPERTY _MAC_CODESIGN_DEPENDS $<TARGET_FILE:${target}>)
get_property(deferred GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED)
if(NOT deferred)
set_property(GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED TRUE)
message(STATUS "Apple codesign ID for development only: ${APPLE_CODESIGN_DEV}")
cmake_language(DEFER DIRECTORY ${CMAKE_SOURCE_DIR} CALL _finalize_mac_codesign)
endif()
endfunction()
function(_finalize_mac_codesign)
get_property(depends GLOBAL PROPERTY _MAC_CODESIGN_DEPENDS)
set(stamp_file "${CMAKE_BINARY_DIR}/CMakeFiles/codesign-dev.stamp")
# Use a stamp file because codesign modifies the binaries it signs.
add_custom_command(
OUTPUT ${stamp_file}
COMMAND /usr/bin/codesign
--force
--options runtime
--entitlements "${CMAKE_SOURCE_DIR}/src/apps/res/entitlements-dev.plist"
--sign "${APPLE_CODESIGN_DEV}"
"$<TARGET_BUNDLE_DIR:${CMAKE_PROJECT_PROPER_NAME}>"
COMMAND ${CMAKE_COMMAND} -E touch ${stamp_file}
DEPENDS ${depends}
COMMENT "Codesigning ${CMAKE_PROJECT_PROPER_NAME}"
VERBATIM
)
add_custom_target(codesign-dev ALL DEPENDS ${stamp_file})
endfunction()

View File

@ -21,6 +21,7 @@
"dotenv",
"Evenson",
"Feder",
"Flatpaks",
"Fourdan",
"gdrive",
"Hadzhylov",
@ -38,6 +39,7 @@
"Kitware",
"Kutytska",
"Lanz",
"legacytests",
"libei",
"Libera",
"libportal",
@ -45,6 +47,7 @@
"logonui",
"Lysytsia",
"macdeployqt",
"mojibake",
"msvc",
"noquote",
"NOSONAR",
@ -76,6 +79,8 @@
"Serhii",
"shemp",
"SNAPPROCESS",
"sonarcloud",
"sonarqube",
"Sorin",
"subproject",
"subprojects",
@ -91,7 +96,9 @@
"Volker",
"whot",
"winget",
"wismill",
"writef",
"xkbcommon",
"XWINDOWS"
],
"ignoreWords": [],

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
# Copy License with txt ext for picky package creation tools
@ -8,7 +8,6 @@ file(COPY_FILE
ONLY_IF_DIFFERENT
)
# Generic Package Items
set(CPACK_STRIP_FILES TRUE)
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})

View File

@ -1,16 +1,17 @@
# SPDX-FileCopyrightText: 2024 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
# SPDX-License-Identifier: MIT
# Maintainer: Deskflow Developers
pkgname=deskflow
_basename=@CMAKE_PROJECT_NAME@
pkgname=${_basename}-git
pkgver=@CMAKE_PROJECT_VERSION@
pkgrel=1
pkgdesc="Mouse and keyboard sharing utility"
url='https://deskflow.org'
pkgdesc="@CMAKE_PROJECT_DESCRIPTION@"
url="@CMAKE_PROJECT_HOMEPAGE_URL@"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
license=(LicenseRef-GPL-2.0-only-WITH-OpenSSL-Exception)
conflicts=('synergy-git' 'synergy-1.6' 'synergy1-bin' 'synergy2-bin' 'synergy3-bin' 'synergy3-beta-bin' 'synergy3-stable-bin' 'barrier' 'barrier-git' 'barrier-headless' 'barrier-headless-git' 'input-leap' 'input-leap-git' 'input-leap-headless-git' 'input-leap-headless' 'waynergy' 'waynergy-git' 'qsynergy' 'slim-synergy' 'quicksynergy' 'deskflow')
provides=("deskflow-git${pkgver}")
provides=("$_basename")
depends=(
gcc-libs
glib2
@ -33,7 +34,7 @@ depends=(
openssl
qt6-base
qt6-svg
tomlplusplus
qt6-translations
)
options=('!debug')

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
# HACK This is set when the files is included so its the real path
@ -7,21 +7,23 @@ set(MY_DIR ${CMAKE_CURRENT_LIST_DIR})
# Install our desktop file
install(
FILES ${MY_DIR}/org.deskflow.deskflow.desktop
DESTINATION share/applications
FILES ${MY_DIR}/${CMAKE_PROJECT_REV_FQDN}.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
)
# Install our icon
install(FILES ${MY_DIR}/org.deskflow.deskflow.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/512x512/apps/)
# Install our symbolic icon
install(
FILES ${MY_DIR}/deskflow.png
DESTINATION share/icons/hicolor/512x512/apps/
RENAME org.deskflow.deskflow.png
FILES ${CMAKE_SOURCE_DIR}/src/apps/res/icons/deskflow-light/apps/64/org.deskflow.deskflow-symbolic.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/symbolic/apps/
)
# Install our metainfo
install(
FILES ${MY_DIR}/org.deskflow.deskflow.metainfo.xml
DESTINATION share/metainfo/
FILES ${MY_DIR}/${CMAKE_PROJECT_REV_FQDN}.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo/
)
# Prepare PKGBUILD for Arch Linux
@ -31,9 +33,9 @@ configure_file(
@ONLY
)
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "qt6-svg-plugins")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
set(CPACK_RPM_PACKAGE_GROUP "Applications/System")

View File

@ -1,6 +1,6 @@
app-id: org.deskflow.deskflow
runtime: org.kde.Platform
runtime-version: "6.9"
runtime-version: "6.10"
sdk: org.kde.Sdk
command: deskflow
finish-args:
@ -17,7 +17,6 @@ cleanup:
- /lib/cmake
- /lib/pkgconfig
- /share/pkgconfig
- /share/tomlplusplus
- /share/cmake
- /share/doc
- /share/gir-1.0
@ -30,8 +29,12 @@ modules:
--prefix=${FLATPAK_DEST} --no-build-isolation Jinja2
sources:
- type: file
url: https://files.pythonhosted.org/packages/30/6d/6de6be2d02603ab56e72997708809e8a5b0fbfee080735109b40a3564843/Jinja2-3.1.3-py3-none-any.whl
sha256: 7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa
url: https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl
sha256: 85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
x-checker-data:
type: pypi
name: Jinja2
packagetype: bdist_wheel
- type: file
url: https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz
sha256: d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b
@ -46,8 +49,11 @@ modules:
sources:
- type: git
url: https://gitlab.freedesktop.org/libinput/libei
tag: 1.4.1
commit: 9e0413cbc7d3ae6656266890425f152589ddf74d
tag: 1.5.0
commit: 19b64535408aa47abbc8151bc2c925afd6583851
x-checker-data:
type: git
tag-pattern: ^([\\d.]+)$
- name: libportal
buildsystem: meson
config-opts:
@ -63,29 +69,16 @@ modules:
commit: 8f5dc8d192f6e31dafe69e35219e3b707bde71ce
- type: patch
path: libportal-qt69.patch
- name: cli11
buildsystem: cmake-ninja
config-opts:
- -DCLI11_BUILD_TESTS=OFF
sources:
- type: git
url: https://github.com/CLIUtils/CLI11
tag: v2.5.0
commit: 4160d259d961cd393fd8d67590a8c7d210207348
- name: tomlplusplus
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/marzer/tomlplusplus
tag: v3.4.0
commit: 30172438cee64926dc41fdd9c11fb3ba5b2ba9de
- name: gtest
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/google/googletest.git
tag: v1.15.2
commit: b514bdc898e2951020cbdca1304b75f5950d1f59
tag: v1.17.0
commit: 52eb8108c5bdec04579160ae17225d66034bd723
x-checker-data:
type: git
tag-pattern: ^([\\d.]+)$
cleanup:
- '*'
- name: deskflow

View File

@ -11,3 +11,12 @@ Icon=org.deskflow.deskflow
Terminal=false
Categories=Utility;
Keywords=keyboard;mouse;sharing;network;share;
Name[zh_CN]=Deskflow
Comment[zh_CN]=键鼠共享工具
Keywords[zh_CN]=键盘;鼠标;网络;共享;
Name[ru]=Deskflow
Comment[ru]=Приложения чтобы использовать одну мышку и клавиатуру с разными устройствами
Keywords[ru]=Передача;Трансляция;barrier;input-leap;
Name[ko]=Deskflow
Comment[ko]=마우스 및 키보드 공유 유틸리티
Keywords[ko]=키보드;마우스;공유;네트워크;

View File

@ -8,10 +8,18 @@
<name>Deskflow Developers</name>
</developer>
<summary>Software Keyboard and mouse sharing</summary>
<summary xml:lang="zh_CN">用软件共享键鼠</summary>
<summary xml:lang="ko">키보드 및 마우스 공유 소프트웨어</summary>
<description>
<p>
Use the keyboard, mouse, or trackpad of one computer to control nearby computers, and work seamlessly between them.
</p>
<p xml:lang="zh_CN">
使用一台计算机的键盘、鼠标或触控板来控制附近的其它计算机,并在它们之间无缝工作。
</p>
<p xml:lang="ko">
한 대의 컴퓨터에 연결된 키보드, 마우스 또는 트랙패드로 주변의 다른 컴퓨터를 제어하고, 컴퓨터 사이를 끊김 없이 오가며 작업할 수 있습니다.
</p>
</description>
<launchable type="desktop-id">org.deskflow.deskflow.desktop</launchable>
<url type="homepage">https://deskflow.org</url>
@ -22,12 +30,28 @@
<url type="contribute">https://github.com/deskflow/deskflow/wiki/Contributing</url>
<screenshots>
<screenshot type="default">
<image>https://deskflow.org/screenshots/deskflow.png</image>
<caption>Deskflow's mainwindow on KDE</caption>
<image>https://deskflow.org/screenshots/deskflow-client.png</image>
<caption>Deskflow in client mode on KDE</caption>
</screenshot>
<screenshot>
<image>https://deskflow.org/screenshots/deskflow-dark.png</image>
<caption>Deskflow's mainwindow on KDE (dark mode)</caption>
<image>https://deskflow.org/screenshots/deskflow-server.png</image>
<caption>Deskflow in server mode on KDE</caption>
</screenshot>
<screenshot>
<image>https://deskflow.org/screenshots/deskflow-log.png</image>
<caption>Deskflow with the log visible on KDE</caption>
</screenshot>
<screenshot>
<image>https://deskflow.org/screenshots/deskflow-client-dark.png</image>
<caption>Deskflow in client mode on KDE (dark mode)</caption>
</screenshot>
<screenshot>
<image>https://deskflow.org/screenshots/deskflow-server-dark.png</image>
<caption>Deskflow in server mode on KDE (dark mode)</caption>
</screenshot>
<screenshot>
<image>https://deskflow.org/screenshots/deskflow-log-dark.png</image>
<caption>Deskflow with the log visible on KDE (dark mode)</caption>
</screenshot>
</screenshots>
<provides> <id>org.deskflow.deskflow.desktop</id> </provides>
@ -35,8 +59,12 @@
<category>Utility</category>
</categories>
<keywords>
<keyword translate="no">Input</keyword>
<keyword translate="no">Sharing</keyword>
<keyword>Input</keyword>
<keyword xml:lang="zh_CN">输入</keyword>
<keyword xml:lang="ko">입력</keyword>
<keyword>Sharing</keyword>
<keyword xml:lang="zh_CN">共享</keyword>
<keyword xml:lang="ko">공유</keyword>
<keyword translate="no">KVM</keyword>
<keyword translate="no">Synergy</keyword>
</keywords>
@ -46,6 +74,97 @@
</branding>
<content_rating type="oars-1.0" />
<releases>
<release version="1.26.0" date="2026-02-16" urgency="high">
<description>
<p>This stable release fixes known issues and adds a few new features, For the full changelog, see the release page.</p>
<ul>
<li>New: Korean(ko) translation</li>
<li>New: Option to start in the "locked to computer" state</li>
<li>New: Option to show the version in the windows title</li>
<li>New: Clients can now use a list hostnames or ips for the server address</li>
<li>New: Client options are in a new client configuration dialog</li>
<li>New: Provide a more accurate suggested IP, Update as network info changes if needed.</li>
<li>New: Add a simple search to the log</li>
<li>New: Lookup host name with IP4 or IP6</li>
<li>New: Replace broken scroll speed with a scroll scaling options</li>
<li>Fix: Horizontal scrolling is working again on all platforms</li>
<li>Fix: Key repeat events are now sent as repeat not press and release</li>
<li>Fix: Deskflow-core correctly blocks new instances when run without the `--new-instance` option</li>
<li>Fix: Server Mode, Only use the external config path if the option is enabled</li>
<li>Fix: Allow comma and semicolon to be used in the hotkey configuration</li>
<li>Fix: Gui can crash when clearing settings in debug mode</li>
<li>Fix: Mouse Back and Forward buttons are now working (again) on all platforms</li>
<li>Fix: macOS, crash when the log is opened and the gui minimized</li>
<li>Fix: macOS, restore Preferences menu entry when the application is using non english language</li>
<li>Fix: macOS, try icon was not showing when in `Colorful` mode</li>
<li>Fix: macOS, do not allow the os to kill deskflow for memory reasons</li>
<li>Fix: macOS, possible server crash when a client disconnects abruptly</li>
<li>Fix: macOS, possible crash on screen wake / screen saver activation</li>
<li>Fix: macOS, Wrong keys send when using "RIME" input method</li>
<li>Fix: Windows, possible crash when the daemon is started for the first time</li>
<li>Use `Computer` in place of `Screen` to indicate we work with Computers display layout and not individual screens attached</li>
<li>Clean and update the settings when starting up.</li>
<li>Do not show client connection error messages dialogs if the gui is hidden</li>
<li>Use Qt 6.9.3 for Intel Mac builds.</li>
<li>Windows: Use ICU dlls from the host system</li>
<li>Code continues to be cleaned of unused methods and updated to modern C++</li>
<li>Consolidate Debug levels to remove DEBUG3-5 levels</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.26.0</url>
</release>
<release version="1.25.0" date="2025-11-21" urgency="high">
<description>
<p>This stable release fixes known issues and adds a few new features. Most notable symbolic icon support, I18N support and experimental support for wl-clipboard to access clipboards on wayland. This release also continues our trend of cleaning up the codebase. For the full changelog, see the release page.</p>
<ul>
<li>Removed the ability to use toml config and env based config files</li>
<li>Set XDG app ID (app_id) on Wayland</li>
<li>Support symbolic icon deployment and recoloring</li>
<li>Added Spanish translation</li>
<li>Added Italian translation</li>
<li>Added Japanese translation</li>
<li>Added Simplified Chinese translation</li>
<li>Added Russian translation</li>
<li>Translate the GUI without needed to restart the application</li>
<li>Expose setting to adjust clients scroll speed</li>
<li>Expose setting to show the GUI debug messages in the log</li>
<li>Expose setting to allow use of wl-clipboard backend on Wayland</li>
<li>Fixed the port settings not being used from settings</li>
<li>Save the geometry info into a state file</li>
<li>The Core (deskflow-core) has a new CLI interface</li>
<li>Fixed Wayland sleep inhibit on client</li>
<li>Fixed XWindowsScreen: properly calculate xrandr/xinerama screens</li>
<li>Fixed XWindowsScreen: stop centering panned screens on client when leaving the screen</li>
<li>Fixed stop retying to launch the Core if its crashed</li>
<li>Fixed various input issues</li>
<li>Fixed apply scroll lock setting on initialization</li>
<li>Fixed crash caused by hostnames with invalid characters returned default value</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.25.0</url>
</release>
<release version="1.24.0" date="2025-09-11" urgency="high">
<description>
<p>This stable release fixes issues found in the previous version and adds a few new features. This release also uses more C++20 features. For the full changelog, see the release page.</p>
<ul>
<li>Fix: Less confusing fingerprint comparision dialog.</li>
<li>Fix: AltGr and other modifiers are generally detected better.</li>
<li>Fix: Big Endian test failures</li>
<li>Fix: Client scroll direction being ignored on wayland clients.</li>
<li>Feat: Unify deskflow-client and deskflow-server into one binary deskflow-core.</li>
<li>Feat: Prevent more than one instance of deskflow-core starting.</li>
<li>Feat: Remove defunct --no-xinitthreads option.</li>
<li>Feat: Ability to persist remote desktop access</li>
<li>Feat: Gui can show all log levels, upgrading users will want to reset their log level as the values have changed</li>
<li>Feat: Log can be detached or docked in the window</li>
<li>Refactor: Use more icons in places</li>
<li>Refactor: Update the Server Config Dialog's GUI</li>
<li>Chore: Continue to update codebase to use C++20 features.</li>
<li>Chore: Clean more sonar smells</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.24.0</url>
</release>
<release version="1.23.0" date="2025-07-23" urgency="high">
<description>
<p>This stable release fixes issues found in the previous version and adds a few new features. This release also uses more C++20 features. For the full changelog, see the release page.</p>

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,20 +1,23 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
# HACK This is set when the files is included so its the real path
# calling CMAKE_CURRENT_LIST_DIR after include would return the wrong scope var
set(MY_DIR ${CMAKE_CURRENT_LIST_DIR})
set(OSX_BUNDLE ${BUILD_OSX_BUNDLE})
set(OS_STRING "macos-${BUILD_ARCHITECTURE}")
if (OSX_BUNDLE)
install(CODE "execute_process(COMMAND
${DEPLOYQT}
\"\${CMAKE_INSTALL_PREFIX}/${CMAKE_PROJECT_PROPER_NAME}.app\"
-timestamp -codesign=-
)")
set(OS_STRING "macos-${BUILD_ARCHITECTURE}")
set(CPACK_PACKAGE_ICON "${MY_DIR}/dmg-volume.icns")
set(CPACK_DMG_BACKGROUND_IMAGE "${MY_DIR}/dmg-background.tiff")
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${MY_DIR}/generate_ds_store.applescript")
set(CPACK_DMG_VOLUME_NAME "${CMAKE_PROJECT_PROPER_NAME}")
set(CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE ON)
set(CPACK_GENERATOR "DragNDrop")
endif()

Binary file not shown.

View File

@ -1,4 +1,4 @@
#SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
#SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
#SPDX-License-Identifier: MIT
if(CPACK_GENERATOR MATCHES 7Z|ZIP)

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
# HACK This is set when the files is included so its the real path
@ -6,7 +6,7 @@
set(MY_DIR ${CMAKE_CURRENT_LIST_DIR})
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION .)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${CMAKE_INSTALL_LIBDIR})
include(InstallRequiredSystemLibraries)
configure_file(${MY_DIR}/pre-cpack.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pre-cpack.cmake @ONLY)

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
if(CPACK_GENERATOR MATCHES 7Z|ZIP)

View File

@ -20,12 +20,9 @@
<RemoveFile Id="RmOldLog" On="install" Name="deskflow-daemon.log"/>
</CPackWiXFragment>
<CPackWiXFragment Id="CM_CP_deskflow_server.exe">
<firewall:FirewallException Id="ServerFirewallException" Name="Deskflow Server" Program="[INSTALL_ROOT]deskflow-server.exe" Scope="any"/>
</CPackWiXFragment>
<CPackWiXFragment Id="CM_CP_deskflow_client.exe">
<firewall:FirewallException Id="ClientFirewallException" Name="Deskflow Client" Program="[INSTALL_ROOT]deskflow-client.exe" Scope="any"/>
<CPackWiXFragment Id="CM_CP_deskflow_core.exe">
<firewall:FirewallException Id="ServerFirewallException" Name="Deskflow Server" Program="[INSTALL_ROOT]deskflow-core.exe" Scope="any"/>
<firewall:FirewallException Id="ClientFirewallException" Name="Deskflow Client" Program="[INSTALL_ROOT]deskflow-core.exe" Scope="any"/>
</CPackWiXFragment>
<CPackWiXFragment Id="#PRODUCT">

View File

@ -1,198 +0,0 @@
# GUI Config
Deskflow will automatically figure out where to save settings and other files.
## Unix Systems
The search order for a setting file is:
1. `<XDG_CONFIG_HOME>/Deskflow/Deskflow.conf`
1. A user settings file
1. A system settings file
A new settings file will be created in the user path if no settings file is found.
The path of the settings file will be used as the base for all other config files.
### Linux
- System: `/etc/Deskflow/Deskflow.conf`
- User: `~/.config/Deskflow/Deskflow.conf`
### macOS
- System: `/Library/Deskflow/Deskflow.conf`
- User: `~/Library/Deskflow/Deskflow.conf`
## Windows
The search order for a setting file is:
1. `<install-path>/settings/Deskflow.conf`
1. Windows Registry `HKCU\Software\Deskflow\Deskflow`
Windows will save to the install dir if settings are loaded from there. If not, it saves any other config files in: `C:\ProgramData\Deskflow\`
When using settings from the install dir, the service mode will not be available.
# Server Config Examples
The `deskflow-server` command accepts the `-c` or `--config` option, which takes one argument,
the path to a server configuration file. The format is non-standard but similar to YAML.
Comments begin with the `#` character and continue to the end of line.
Comments may appear anywhere the syntax permits.
Each `section` element must have a matching `end` element.
## Stacked Example
Stack one computer's screen on top of another's.
```
# +-------+
# | curly |
# | |
# +-------+
# +-------+ +-------+
# | moe | | larry |
# | | | |
# +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# larry is to the right of moe and curly is above moe.
moe:
right = larry
up = curly
# moe is to the left of larry and curly is above larry.
larry:
left = moe
up = curly
# larry is below curly.
curly:
down = larry
end
section: aliases
# curly is also known as shemp
curly:
shemp
end
```
## Horizontal Example
Align all screens horizontally.
```
# +-------+ +-------+ +-------+
# | moe | | larry | | curly |
# | | | | | |
# +-------+ +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# curly is to the right of larry and moe is to the left of larry.
larry:
right = curly
left = moe
# larry is to the right of moe.
moe:
right = larry
# larry is to the left of curly.
curly:
left = larry
end
```
## Span Example
Span two screens on one computer across the screens of two computers.
```
# +-------+ +-------+
# | curly | | curly |
# | | | |
# +-------+ +-------+
# +-------+ +-------+
# | moe | | larry |
# | | | |
# +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# larry is to the right of moe and curly is above moe.
moe:
right = larry
up = curly
# moe is to the left of larry and curly is above larry.
larry:
left = moe
up = curly
# larry is below curly.
curly:
down = larry
end
```
# Example file for `--config-toml` arg
```
[server.args]
no-daemon = true
no-tray = true
debug = "DEBUG"
name = "moe"
address = ":24800"
[client.args]
no-daemon = true
no-tray = true
debug = "DEBUG2"
name = "larry"
_last = "moe:24800"
```
# Example `.env` file
```
#
# App
#
# Shows the test menu in the GUI (on by default in debug mode)
# DESKFLOW_TEST_MENU=true
# Version checker URL to use (useful for testing)
# DESKFLOW_VERSION_URL="https://api.deskflow.org/version?fake=1.100.0"
# Enable debug logging in the GUI (on by default in debug mode)
# DESKFLOW_GUI_DEBUG=true
# Enable verbose logging in the GUI (always off by default)
# DESKFLOW_GUI_VERBOSE=true
```

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
find_package(Doxygen QUIET)
@ -12,6 +12,8 @@ if (DOXYGEN_FOUND)
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
set(DOXYGEN_QUIET YES)
set(DOXYGEN_PROJECT_NAME ${CMAKE_PROJECT_PROPER_NAME})
set(DOXYGEN_PROJECT_ICON "${CMAKE_CURRENT_SOURCE_DIR}/deskflow-logo.png")
set(DOXYGEN_PROJECT_LOGO "${CMAKE_CURRENT_SOURCE_DIR}/deskflow-logo.png")
if (BUILD_USER_DOCS)
add_subdirectory(user)
@ -22,3 +24,12 @@ if (DOXYGEN_FOUND)
else()
message(STATUS "Doxygen not found, skipping docs build")
endif()
# Show our documents in the IDE
add_custom_target(docs
SOURCES
Readme.md
Security.md
)
install(FILES Security.md Readme.md DESTINATION ${CMAKE_INSTALL_DOCDIR})

18
docs/Readme.md Normal file
View File

@ -0,0 +1,18 @@
# Deskflow
Deskflow is a free and open source keyboard and mouse sharing app. Use the keyboard, mouse, or trackpad of one computer to control nearby computers, and work seamlessly between them.
[Homepage](https://deskflow.org) [Code](https://github.com/deskflow/deskflo)
## Getting help online
- View the [wiki](https://github.com/deskflow/deskflow/wiki) Online resource
### Chat with us
- Main discussion on Matrix: [`#deskflow:matrix.org`](https://matrix.to/#/#deskflow:matrix.org) ([Matrix clients](https://matrix.org/ecosystem/clients/))
- Discussion also happens on IRC: `#deskflow` or `#deskflow-dev` on [Libera Chat](https://libera.chat/)
- Start a [new discussion](https://github.com/deskflow/deskflow/discussions) on our GitHub project.
## Reporting security issues
Check [Security](Security.md) to find out how to report security issues.

BIN
docs/deskflow-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)

View File

@ -4,81 +4,107 @@ To build Deskflow you will a minimum of:
- [cmake] 3.24+
- [Qt] 6.7.0+
- [openssl] 3.0+
- [libportal] 0.8+ (linux, bsd)
- [libportal] 0.9.1+ (linux, bsd)
- [libei] 1.3+ (linux, bsd)
- [google_test] ^
- [tomlplusplus] ^
- [cli11] ^
> ^ Will be fetched if not found on the host system.
By default a build of Deskflow will:
- The GUI application deskflow
- The Client application deskflow-client
- The Server application deskflow-server
- The GUI application `deskflow`
- The Core application `deskflow-core`
- Documentation if [doxygen] was found on your system
- Tests that will be run as part of the build process.
- Tests that will be run as part of the build process
## Configuration
Deskflow supports the following build options
CMake options:
Deskflow supports the following CMake options:
| Option | Description | Default Value | Additional requirements |
:-------------------------:|:---------------------------------------:|:------------------:|:-----------------------:|
| BUILD_GUI | Build GUI | ON | |
| BUILD_USER_DOCS | Build user documentation | DOXYGEN_FOUND | `Doxygen` |
| BUILD_DEV_DOCS | Build development documentation | OFF | `Doxygen` |
| BUILD_INSTALLER | Build installers/packages | ON | |
| BUILD_TESTS | Build unit tests and legacy tests | ON | `gtest`|
| BUILD_UNIFIED | Build unified binary (client+server) | OFF | |
| BUILD_X11_SUPPORT | Build X11 backend (Linux and BSD only) | ON | `x11 libs`|
| BUILD_OSX_BUNDLE | Build an app bundle (macOS only) | ON | |
| ENABLE_COVERAGE | Enable test coverage | OFF | `gcov` |
| SKIP_BUILD_TESTS | Skip running of tests at build time | OFF | |
| VCPKG_QT | Build Qt w/ vcpkg (windows only) | OFF | |
| VCPKG_QT | Build Qt w/ vcpkg (Windows only) | OFF | |
| CLEAN_TRS | Remove obsolete strings from tr files | OFF | |
| APPLE_CODESIGN_DEV | Apple codesign cert ID for development | Not set | |
Example cmake configuration.
Example cmake configuration:
`cmake -S. -Bbuild -DCMAKE_INSTALL_PREFIX=<INSTALLPREFIX>`
### Windows Configuration
It is recommended to use vcpkg to install the dependencies. The first time you configure Deskflow, all dependencies other than Qt will be built. If you don't want to use vcpkg, you must manually setup the dependencies. However, that will not be covered by this document.
#### Windows and Qt
There are two ways you can install [Qt] on Windows (vcpkg or Qt online installer). The default configuration expects you to use the Qt online installer. You should not install Qt in both ways, as having both can cause some weird things to happen, like Qt getting libs from one install and plugins from the other. When switching between them, remove the previous install first.
##### System Qt
1. Download and install the [Qt] online installer from their website.
2. Add the path of Qt's cmake files to your system path. (Skipping this may require you provide this path to cmake via `Qt6_DIR` at configure time)
- Often `C:\Qt\<version>\<msvcinfo>\lib\cmake`
2. Add the path of Qt's cmake files to your system path (skipping this may require you provide this path to cmake via `Qt6_DIR` at configure time).
- Often: `C:\Qt\<version>\<msvcinfo>\lib\cmake`
3. Add the path of Qt's binary tools to your system path.
- Often `C:\Qt\<version>\<msvcinfo>\bin`
- Often: `C:\Qt\<version>\<msvcinfo>\bin`
##### vcpkg managed Qt
##### Vcpkg managed Qt
1. Add the option `-DVCPKG_QT=ON` to your cmake configuration command (i.e `cmake -S. -Bbuild -DVCPKG_QT=ON ...`) or if using an IDE, look for the option where you configure the project, have the IDE run cmake again.
2. Once the configuration starts, you should see a lot more packages vcpkg will build. Building Qt takes a long time (potentially hours), so go find something else to do for a while.
3. If you want to use the system Qt again, you must delete the `vcpkg.json` generated in the project root and the `build` folder and reconfigure the project from scratch.
### macOS codesign
The code signing option `APPLE_CODESIGN_DEV` is only for local development and not intended for distributed bundles.
Signing for local development and signing for the distribution bundle must be different because of development entitlements which are unlikely to be safe for use in production. It is impractical (i.e. very slow and cumbersome) to use the distribution bundle for local development. When developing locally, the app bundle is partial and does not contain dependencies and uses external libs, e.g. installed with Homebrew; the entitlements allow those external libs to be loaded which is not allowed by default.
For development codesign:
1. Install Xcode
2. Go to Settings -> Accounts
3. Add your account (requires a free Apple Developer ID)
4. Manage certificates -> Add -> Apple Development
5. To get your ID, run: `security find-identity -v -p codesigning login.keychain-db`
6. Pass the ID to CMake, e.g. `-DAPPLE_CODESIGN_DEV=Apple Development: bob@exmaple.com (KLGSJHLFXY)`
7. Configure and build
8. To verify, run: `codesign -d -r- build/bin/Deskflow.app`
## Build
After configuring you should be able to run make to build all targets.
`cmake --build build`
## Install
To test installation run `DESTDIR=<installDIR> cmake --install build` to install into `<installDir>/<CMAKE_INSTALL_PREFIX>` <br>
To test installation run `DESTDIR=<installDIR> cmake --install build` to install into `<installDir>/<CMAKE_INSTALL_PREFIX>`
Running `cmake --install build` will install to the `CMAKE_INSTALL_PREFIX`
## Making Deskflow packages
Deskflow can generate several packages using cpack.
To generate packages build the `package` or `package_source` target.
Example: ` cmake --build build --target package package_source` would generate both package and package source packages.
Deskflow can generate several package types depending on the system. Archive-based packages should work on all platforms. On Linux deb and rpm info is set up, flatpaks can be generated from the included file in deploy/linux and a PKGBUILD for Arch linux is generated in the build folder. On macos a dmg file will be created and signed. For windows wix can be used to create an installer.
Deskflow can generate several packages using `cpack`.
To generate packages build the `package` or `package_source` target.
Example: ` cmake --build build --target package package_source` would generate both package and package source packages.
Deskflow can generate several package types depending on the system.
Archive-based packages should work on all platforms. On Linux deb and rpm info is set up, Flatpaks can be generated from the included file in deploy/linux and a `PKGBUILD` for Arch linux is generated in the build folder. On macos a dmg file will be created and signed. For windows WiX can be used to create an installer.
[Qt]:https://www.qt.io
[doxygen]:http://www.stack.nl/~dimitri/doxygen/
[cmake]:https://cmake.org/
[openssl]:https://www.openssl.org/
[google_test]:https://github.com/google/googletest
[tomlplusplus]:https://github.com/marzer/tomlplusplus
[cli11]:https://github.com/CLIUtils/CLI11
[libei]:https://gitlab.freedesktop.org/libinput/libei
[libportal]:https://github.com/flatpak/libportal

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
@ -16,5 +16,4 @@ target_sources(user-docs PRIVATE
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT deskflow_user_docs
)

817
docs/user/configuration.md Normal file
View File

@ -0,0 +1,817 @@
# GUI Config
Deskflow will automatically figure out where to save settings and other files.
## Search paths
Deskflow will look for settings in several places depending on your operating system.
The search order for a setting file depends on your operating system
### Linux
1. `<XDG_CONFIG_HOME>/Deskflow/Deskflow.conf`
2. `~/.config/Deskflow/Deskflow.conf`
3. `/etc/Deskflow/Deskflow.conf`
A new settings file will be created in the user path if no settings file is found.
The path of the settings file will be used as the base for all other config files.
### macOS
1. `~/Library/Deskflow/Deskflow.conf`
2. `/Library/Deskflow/Deskflow.conf`
A new settings file will be created in the user path if no settings file is found.
The path of the settings file will be used as the base for all other config files.
### Windows
1. `<install-path>/settings/Deskflow.conf`
2. Windows Registry `HKCU\Software\Deskflow\Deskflow`
Windows will save to the install dir if settings are loaded from there. If not, it saves any other config files in: `C:\ProgramData\Deskflow\`
When using settings from the install dir, the service mode will not be available.
## Valid GUI Keys
The GUI config file contains several sections.
Each section is formatted the same.
Option-value pairs are only written if the value is not the default value.
```
[section]
option=value
```
### Client
This section contains options used when in client mode.
It will begin with `[client]`
| Option | Valid Values | Description |
|:------------------|:------------------:|:-----------|
| languageSync | `true` or `false` | Sync to server language [default: true] |
| remoteHost | `IP` or `hostname` | The remote host(s) to connect to. Use a comma separated list when you want to try several hosts |
| yScrollScale | Double 0.1 - 10.0 | Vertical mouse scrolling will be scaled by this amount on the client [default: 1.0] |
| xScrollScale | Double 0.1 - 10.0 | Horizontal mouse scrolling will be scaled by this amount on the client [default: 1.0] |
| invertYScroll | `true` or `false` | Invert vertical scroll on this client [default: false] |
| invertXScroll | `true` or `false` | Invert horizontal scroll on this client [default: false] |
| xdpRestoreToken | UUID | Restore token provided by XDG portals |
### Core
This section contains general options it will begin with `[core]`
|Option | Valid Values|Description|
|:--------------|:-----------:|:-----------|
| coreMode | `0` or `1` or `2` | The mode to start in 0: None, 1: Client, 2: Server [default: 0]|
| display | int | The XWindow display to use [default: autodetected] |
| interface | IP Address | Preferred IP to use for network communication. By default the server board casts on any available address |
| lastVersion | M.m.p.t | The version last run used for checking for updates |
| port | port # | Port to use when connecting [default: 24800 |
| preventSleep | `true` or `false` | Prevent sleep when Deskflow is active [default: false] |
| processMode | `1` or `0` | The mode we use to start the process Service or Desktop |
| computerName | string | Name used to identify the computer [default: machine's hostname] |
| useHooks | `true` or `false` | If Windows uses hooks or not [default: true] |
| language | 639 language | The language to display the GUI in [default: en] |
| wlClipboard | `true` or `false` | When true the wl-clipboard backend will be enabled [default: false] |
| enableEnterCommand | `true` or `false` | Should the enter command be triggered when the screen is entered [defaut: false] |
| enterCommand | command | A command to run when the screen is entered. |
| enableExitCommand | `true` or `false` | Should the exit command be triggered when the screen is exited [defaut: false] |
| exitCommand | command | A command to run when the screen is exited. |
### Daemon
This section contains options used by the daemon on windows it will begin with `[daemon]`
|Option | Valid Values|Description|
|:----------|:-----------:|:-----------|
| command | Filename | The filename of the binary the daemon. This binary exists in the same path as the deskflow GUI |
| elevate | `true` or `false` | Elevate the daemon app [default: true unless portable mode ] |
| logFile | Filepath | Filepath of the daemon log |
| logLevel | valid log Level, | Log Level |
### GUI
This section contains options used by the GUI it will begin with `[gui]`
|Option | Valid Values |Description|
|:-------------------------------|:-----------------:|:-----------|
| autoHide | `true` or `false` | When true the app will hide itself on start up [default: false] |
| enableUpdateCheck | `true` or `false` | When true check the update URL to see if a new version was released on start up [default: false] |
| closeReminder | `true` or `false` | Used to track if we have shown the reminder that when you close the app it remain running in the background [default: true]|
| closeToTray | `true` or `false` | When `true` the gui will run in the systemTray when its closed [default: true] |
| logExpanded | `true` or `false` | Should the log section of the GUI be opened [default: false] |
| symbolicTrayIcon | `true` or `false` | When true use the monocolor (symbolic) icon false uses a colorful icon for the tray [default: true] |
| windowGeometry | QRect | Geometry of the window used to restore the window geometry after exiting the app |
| showGenericClientFailureDialog | `true` or `false` | When `true` client connection errors will not show popup error messages [default: true] |
| shownFirstConnectedMessage | `true` or `false` | When `true` GUI has shown the user the message for connecting the first time [default: false] |
| shownServerFirstStartMessage | `true` or `false` | When `true` GUI has shown the user the Deskflow server is now running message [default: false] |
| shownVerionInTitle | `true` or `false` | When `true` GUI will include the version in the window title [default: false] |
| startCoreWithGui | `true` or `false` | When true the Core will be started with the GUI. It is set to the Core's state on exit. |
| updateCheckUrl | URL | The URL to use when checking for a new version number, it should return a version [default: https://api.deskflow.org/version]|
### Log
This section contains options used by the application logging it will begin with `[log]`
|Option | Valid Values |Description|
|:---------|:-----------------:|:-----------|
| file | Filepath | The file to write the log into |
| level | Valid log level | Log level to use |
| toFile | `true` or `false` | When true the log will be written to the value of the `file` option |
| guiDebug | `true` or `false` | When true the log will show the Gui's internal debug messages |
### Security
This section contains options used by the application security it will begin with `[security]`
|Option | Valid Values |Description|
|:----------------------|:-----------------:|:-----------|
| checkPeerFingerprints | `true` or `false` | When true peers will have their fingerprints confirmed by the user and stored [default: true] |
| certificate | Filepath | Path to the certificate to use to encrypt messages.|
| keySize | `2048` OR `4096` | Size of the TLS key to use [default: 2048]|
| tlsEnabled | `true` or `false` | Are we using TLS encryption when communicating [default: true].|
### Server
This section contains options used when in server mode it will begin with `[server]`
|Option | Valid Values |Description|
|:-------------------|:-----------------:|:-----------|
| externalConfig | `true` or `false` | When true use the external config path |
| externalConfigFile | Filepath | Path the server config file if it does not exist the GUI will it generated based on the `internalConfig` section.|
### InternalConfig
This section contains options used when in server mode it will begin with `[internalConfig]`
block of a server config file as seen below. This section is used by the GUI to generate a server configuration
```
[internalConfig]
clipboardSharing=true
clipboardSharingSize=@Variant(\0\0\0\x84\0\0\0\0\0\0<\0)
defaultLockToScreenState=false
disableLockToScreen=false
hasHeartbeat=false
hasSwitchDelay=false
hasSwitchDoubleTap=false
heartbeat=5000
hotkeys\1\actions\1\activeOnRelease=false
hotkeys\1\actions\1\hasScreens=true
hotkeys\1\actions\1\keys\1\key=83
hotkeys\1\actions\1\keys\size=1
hotkeys\1\actions\1\lockCursorToScreen=0
hotkeys\1\actions\1\restartServer=false
hotkeys\1\actions\1\switchInDirection=0
hotkeys\1\actions\1\switchScreenName=void
hotkeys\1\actions\1\type=0
hotkeys\1\actions\1\typeScreenNames\size=0
hotkeys\1\actions\size=1
hotkeys\1\keys\1\key=83
hotkeys\1\keys\size=1
hotkeys\size=1
numColumns=5
numRows=3
protocol=1
relativeMouseMoves=false
screens\1\name=
screens\10\aliasArray\size=0
screens\10\fixArray\1\fix=false
screens\10\fixArray\2\fix=false
screens\10\fixArray\3\fix=false
screens\10\fixArray\4\fix=false
screens\10\fixArray\size=4
screens\10\modifierArray\1\modifier=0
screens\10\modifierArray\2\modifier=1
screens\10\modifierArray\3\modifier=2
screens\10\modifierArray\4\modifier=3
screens\10\modifierArray\5\modifier=4
screens\10\modifierArray\6\modifier=5
screens\10\modifierArray\size=6
screens\10\name=null
screens\10\switchCornerArray\1\switchCorner=false
screens\10\switchCornerArray\2\switchCorner=false
screens\10\switchCornerArray\3\switchCorner=false
screens\10\switchCornerArray\4\switchCorner=false
screens\10\switchCornerArray\size=4
screens\10\switchCornerSize=0
screens\11\name=
screens\12\name=
screens\13\name=
screens\14\name=
screens\15\name=
screens\2\name=
screens\3\name=
screens\4\name=
screens\5\name=
screens\6\name=
screens\7\aliasArray\size=0
screens\7\fixArray\1\fix=false
screens\7\fixArray\2\fix=false
screens\7\fixArray\3\fix=false
screens\7\fixArray\4\fix=false
screens\7\fixArray\size=4
screens\7\modifierArray\1\modifier=0
screens\7\modifierArray\2\modifier=1
screens\7\modifierArray\3\modifier=2
screens\7\modifierArray\4\modifier=3
screens\7\modifierArray\5\modifier=4
screens\7\modifierArray\6\modifier=5
screens\7\modifierArray\size=6
screens\7\name=void
screens\7\switchCornerArray\1\switchCorner=false
screens\7\switchCornerArray\2\switchCorner=false
screens\7\switchCornerArray\3\switchCorner=false
screens\7\switchCornerArray\4\switchCorner=false
screens\7\switchCornerArray\size=4
screens\7\switchCornerSize=0
screens\8\aliasArray\size=0
screens\8\fixArray\1\fix=false
screens\8\fixArray\2\fix=false
screens\8\fixArray\3\fix=false
screens\8\fixArray\4\fix=false
screens\8\fixArray\size=4
screens\8\modifierArray\1\modifier=0
screens\8\modifierArray\2\modifier=1
screens\8\modifierArray\3\modifier=2
screens\8\modifierArray\4\modifier=3
screens\8\modifierArray\5\modifier=4
screens\8\modifierArray\6\modifier=5
screens\8\modifierArray\size=6
screens\8\name=chris-Precision-5570
screens\8\switchCornerArray\1\switchCorner=false
screens\8\switchCornerArray\2\switchCorner=false
screens\8\switchCornerArray\3\switchCorner=false
screens\8\switchCornerArray\4\switchCorner=false
screens\8\switchCornerArray\size=4
screens\8\switchCornerSize=0
screens\9\aliasArray\size=0
screens\9\fixArray\1\fix=false
screens\9\fixArray\2\fix=false
screens\9\fixArray\3\fix=false
screens\9\fixArray\4\fix=false
screens\9\fixArray\size=4
screens\9\modifierArray\1\modifier=0
screens\9\modifierArray\2\modifier=1
screens\9\modifierArray\3\modifier=2
screens\9\modifierArray\4\modifier=3
screens\9\modifierArray\5\modifier=4
screens\9\modifierArray\6\modifier=5
screens\9\modifierArray\size=6
screens\9\name=abyss.lan
screens\9\switchCornerArray\1\switchCorner=false
screens\9\switchCornerArray\2\switchCorner=false
screens\9\switchCornerArray\3\switchCorner=false
screens\9\switchCornerArray\4\switchCorner=false
screens\9\switchCornerArray\size=4
screens\9\switchCornerSize=0
screens\size=15
switchCornerArray\1\switchCorner=false
switchCornerArray\2\switchCorner=false
switchCornerArray\3\switchCorner=false
switchCornerArray\4\switchCorner=false
switchCornerArray\size=4
switchCornerSize=0
switchDelay=250
switchDoubleTap=250
win32KeepForeground=false
```
# Server Config
The `deskflow-server` command accepts the `-c` or `--config` option, which takes one argument,
the path to a server configuration file. When using the GUI the `internalConfig` section of the GUI settings will be exported as the server configuration.
The configuration file is plain text and case-sensitive. The file is broken into sections, and each section has the form:
```
section: ''name''
''arg'' = ''value''
end
```
Comments are introduced by ''#'' and continue to the end of the line. ''name'' must be one of the following:
* ''screens''
* ''aliases''
* ''links''
* ''options''
The file is parsed top to bottom and names cannot be used before they've been defined in the <code>screens</code> or <code>aliases</code> sections. So the <code>links</code> and <code>aliases</code> must appear after the <code>screens</code> and <code>links</code> cannot refer to aliases unless the <code>aliases</code> appear before the <code>links</code>.
### The screens section
''args'' is a list of computer names, one name per line, each followed by a colon. Names are arbitrary strings but they must be unique. The hostname of each computer is recommended. (This is the computer's network name on win32 and the name reported by the program hostname on Unix and OS X. Note that OS X may append .local to the name you gave your computer; e.g. somehost.local.) There must be a computer name for the server and each client. Each computer can specify a number of options. Options have the form name = value and are listed one per line after the computer name.
```
section: screens
moe:
larry:
halfDuplexCapsLock = true
halfDuplexNumLock = true
curly:
meta = alt
end
```
This declares three computers named ''moe'', ''larry'', and ''curly''. Computer ''larry'' has half-duplex ''Caps Lock'' and ''Num Lock'' keys (see below) and computer ''curly'' converts the ''Meta'' modifier key to the ''Alt'' modifier key.
#### screen options
A computer can have the following options:
|Option | Valid Values| Description|
|:----------|:-----------:|:-----------|
|halfDuplexCapsLock| `true` or `false` | This computer has a ''Caps Lock'' key that doesn't report a press and a release event when the user presses it but instead reports a press event when it's turned on and a release event when it's turned off. If ''Caps Lock'' acts strangely on all computers then you may need to set this option to true on the server. If it acts strangely on one computer then that computer may need the option set to true.|
|halfDuplexNumLock | `true` or `false` | This computer has a ''Num Lock'' key that doesn't report a press and a release event when the user presses it but instead reports a press event when it's turned on and a release event when it's turned off. If ''Num Lock'' acts strangely on all computers then you may need to set this option to true on the server. If it acts strangely on one computer then that computer may need the option set to true.|
|halfDuplexScrollLock| `true` or `false`| This computer has a ''Scroll Lock'' key that doesn't report a press and a release event when the user presses it but instead reports a press event when it's turned on and a release event when it's turned off. If ''Scroll Lock'' acts strangely on all computers then you may need to set this option to true on the server. If it acts strangely on one computer then that computer may need the option set to true.|
|xtestIsXineramaUnaware| `true` or `false`| This option works around a bug in the XTest extension when used in combination with Xinerama. It affects X11 clients only. Not all versions of the XTest extension are aware of the Xinerama extension. As a result, they do not move the mouse correctly when using multiple Xinerama screens. This option is currently ''true'' by default. If you know your XTest extension is Xinerama aware then set this option to ''false''.|
|preserveFocus| `true` or `false` | When true don't drop focus when switching computers
|switchCorners| corners |See <a href="#switch-corners">switchCorners</a> below.|
|switchCornerSize | integer | see switchCornerSize below.|
|shift | shift ctrl alt meta super none | Map the server's shift modifer to different key on a client computer|
|ctrl | shift ctrl alt meta super none | Map the server's ctrl modifer to different key on a client computer|
|alt | shift ctrl alt meta super none | Map the server's alt modifer to different key on a client computer|
|meta| shift ctrl alt meta super none | Map the server's meta modifer to different key on a client computer|
|super| shift ctrl alt meta super none | Map the server's super modifer to different key on a client computer|
### aliases section
''args'' is a list of computer names just like in the ''screens'' section except each computer is followed by a list of aliases, one per line, not followed by a colon. An ''alias'' is a computer name and must be unique. When searching for computers each alias is equivalent to the computer name it aliases. So a client can connect using its canonical computer name or any of its aliases.
```
section: aliases
larry:
larry.stooges.com
curly:
shemp
end
```
Computer ''larry'' is also known as ''larry.stooges.com'' and can connect as either name. Computer ''curly'' is also known as ''shemp'' (hey, it's just an example).
### links secion
''args'' is a list of computer names just like in the ''screens'' section except each computer is followed by a list of links, one per line. Each link has the form:
```
{left|right|up|down}[<range>] = name[<range>]
```
A link indicates which computer is adjacent in the given direction.
Each side of a link can specify a range which defines a portion of an edge. A range on the direction is the portion of edge you can leave from while a range on the computer is the portion of edge you'll enter into. Ranges are optional and default to the entire edge. All ranges on a particular direction of a particular computer must not overlap.
A ''range'' is written as <code>(start,end)</code>. Both ''start'' and ''end'' are percentages in the range 0 to 100, inclusive. The start must be less than the end. 0 is the left or top of an edge and 100 is the right or bottom.
```
section: links
moe:
right = larry
up(50,100) = curly(0,50)
larry:
left = moe
up(0,50) = curly(50,100)
curly:
down(0,50) = moe
down(50,100) = larry(0,50)
end
```
This indicates that computer ''larry'' is to the right of computer ''moe'' (so moving the cursor off the right edge of ''moe'' would make it appear at the left edge of ''larry''), the left half of curly is above the right half of ''moe'', ''moe'' is to the left of ''larry'' (edges are not necessarily symmetric so you have to provide both directions), the right half of curly is above the left half of ''larry'', all of ''moe'' is below the left half of ''curly'', and the left half of ''larry'' is below the right half of ''curly''.
Note that links do not have to be symmetrical; for instance, here the edge between ''moe'' and ''curly'' maps to different ranges depending on if you're going up or down. In fact links don't have to be bidirectional. You can configure the right of ''moe'' to go to ''larry'' without a link from the left of ''larry'' to ''moe''. It's possible to configure a computer with no outgoing links; the cursor will get stuck on that computer unless you have a hot key configured to switch off of that computer.
### options section
''args'' is a list of lines of the form <code>name = value</code>. These set the global options.
```
section: options
protocol = barrier
heartbeat = 5000
switchDelay = 500
end
```
#### List of options allowed in options section
| Options | Value Values| Description|
|:--------|:-----------:|:-----------|
|protocol | barrier or synergy| The protocol to use when saying hello to clients. Can be set to barrier or synergy. If not set barrier is used as the default |
|heartbeat| integer (N) | The server will expect each client to send a message no less than every `N` milliseconds. If no message arrives from a client within `3N` seconds the server forces that client to disconnect. If deskflow fails to detect clients disconnecting while the server is sleeping or vice versa, try using this option. |
|switchCorners | none top-left top-right bottom-left bottom-right left right top bottom all | Deskflow won't switch computers when the mouse reaches the edge of the computer if it's in a listed corner. The size of all corners is given by the `switchCornerSize` option. The first name in the list is one of the above names and defines the initial set of corners. Subsequent names are prefixed with + or - to add the corner to or remove the corner from the set, respectively. For example: `all -left +top-left` starts will all corners, removes the left corners (top and bottom) then adds the top-left back in, resulting in the top-left, bottom-left and bottom-right corners.|
|switchCornerSize | integer (N) | Sets the size of all corners in pixels. The cursor must be within `N` pixels of the corner to be considered to be in the corner.|
|switchDelay | integer| Deskflow won't switch computers when the mouse reaches edge of a computer unless it stays on the edge for `N` milliseconds. This helps prevent unintentional switching when working near an edge.|
|switchDoubleTap| integer(N) | Deskflow won't switch computers when the mouse reaches the edge of a computer unless it's moved away from the edge and then back to the edge within `N` milliseconds. With the option you have to quickly tap the edge twice to switch. This helps prevent unintentional switching when working near the edge.|
|screenSaverSync| `true` or `false`| ''Note: Removed in v1.14.1'' If set to ''false'' then Deskflow won't synchronize screen savers. Client screen savers will start according to their individual configurations. The server screen saver won't start if there is input, even if that input is directed toward a client computer.|
|relativeMouseMoves| `true` or `false`| If set to ''true'' then secondary computers move the mouse using relative rather than absolute mouse moves when and only when the cursor is locked to the computer (by ''Scroll Lock'' or a configured hot key). This is intended to make Deskflow work better with certain games. If set to ''false'' or not set then all mouse moves are absolute.|
|clipboardSharing| `true` or `false`|If set to ''true'' then clipboard sharing will be enabled and the ''clipboardSharingSize'' setting will be used. If set to false, then clipboard sharing will be disabled and the the ''clipboardSharingSize'' setting will be ignored.|
|clipboardSharingSize| integer (N)| Deskflow will send a maximum of `N` kilobytes of clipboard data to another computer when the mouse transitions to that computer.|
|win32KeepForeground | `true` or `false`| If set to ''true'' (the default), Deskflow will grab the foreground focus on a Windows server (thereby putting all other windows in the background) upon switching to a client. If set to ''false'', it will leave the currently foreground window in the foreground. Deskflow grabs the focus to avoid issues with other apps interfering with Deskflow's ability to read the hardware inputs. |
|keystroke(key) | actions | Binds the ''key'' combination key to the given ''actions''. ''key'' is an optional list of modifiers (''shift'', ''control'', ''alt'', ''meta'' or ''super'') optionally followed by a character or a key name, all separated by + (plus signs). You must have either modifiers or a character/key name or both. See below for `valid key names` and `actions`. Keyboard hot keys are handled while the cursor any computer. Separate actions can be assigned to press and release.|
|mousebutton(button) | actions| Binds the modifier and mouse button combination ''button'' to the given ''actions''. ''button'' is an optional list of modifiers (''shift'', ''control'', ''alt'', ''meta'' or ''super'') followed by a button number. The primary button (the left button for right handed users) is button 1, the middle button is 2, etc. Actions can be found below. Mouse button actions are not handled while the cursor is on the server. You cannot use these to perform an action while on the server. Separate actions can be assigned to press and release.|
You can use both the ''switchDelay'' and ''switchDoubleTap'' options at the same time. Deskflow will switch when either requirement is satisfied.
##### Actions
Actions are two lists of individual actions separated by commas. The two lists are separated by a '';'' (semicolon). Either list can be empty and if the second list is empty then the semicolon is optional. The first list lists actions to take when the condition becomes true (e.g. the hot key or mouse button is pressed) and the second lists actions to take when the condition becomes false (e.g. the hot key or button is released). The condition becoming true is called activation and becoming false is called deactivation. Allowed individual actions are:
* `keystroke(key[,computers])`
* `keyDown(key[,computers])`
* `keyUp(key[,computers])`
: Synthesizes the modifiers and key given in ''key'' which has the same form as described in the ''keystroke'' option. If given, ''computers'' lists the computer or computers to direct the event to, regardless of the active computer. If not given then the event is directed to the active computer only.
: ''keyDown'' synthesizes a key press and ''keyUp'' synthesizes a key release. ''keystroke'' synthesizes a key press on activation and a release on deactivation and is equivalent to a ''keyDown'' on activation and ''keyUp'' on deactivation.
: ''computers'' is either ''*'' (asterisk) to indicate all computers or a '':'' (colon) separated list of computer names. (Note that the computer name must have already been encountered in the configuration file so you'll probably want to put ''actions'' at the bottom of the file.)
* `mousebutton(button)`
* `mouseDown(button)`
* `mouseUp(button)`
: Synthesizes the modifiers and mouse button given in ''button'' which has the same form as described in the ''mousebutton'' option.
: ''mouseDown'' synthesizes a mouse press and ''mouseUp'' synthesizes a mouse release. ''mousebutton'' synthesizes a mouse press on activation and a release on deactivation and is equivalent to a ''mouseDown'' on activation and ''mouseUp'' on deactivation.
* `lockCursorToScreen(mode)`
: Locks the cursor to or unlocks the cursor from the active computer. ''mode'' can be ''off'' to unlock the cursor, ''on'' to lock the cursor, or ''toggle'' to toggle the current state. The default is ''toggle''. If the configuration has no ''lockCursorToScreen'' action and ''Scroll Lock'' is not used as a hot key then ''Scroll Lock'' toggles cursor locking.
* `switchToScreen(computerName)`
: Jump to computer with name or alias ''computerName''.
* `switchInDirection(dir)`
: Switch to the computer in the direction ''dir'', which may be one of ''left'', ''right'', ''up'' or ''down''.
* `switchToNextScreen()`
: Cycle to the next computer in the configuration order. If at the last computer, cycles back to the first computer.
##### Keynames
Valid key names are:
<details><summary>Valid Key Names</summary>
* AppMail
* AppMedia
* AppUser1
* AppUser2
* AudioDown
* AudioMute
* AudioNext
* AudioPlay
* AudioPrev
* AudioStop
* AudioUp
* BackSpace
* Begin
* Break
* Cancel
* CapsLock
* Clear
* Delete
* Down
* Eject
* End
* Escape
* Execute
* F1
* F2
* F3
* F4
* F5
* F6
* F7
* F8
* F9
* F10
* F11
* F12
* F13
* F14
* F15
* F16
* F17
* F18
* F19
* F20
* F21
* F22
* F23
* F24
* F25
* F26
* F27
* F28
* F29
* F30
* F31
* F32
* F33
* F34
* F35
* Find
* Help
* Home
* Insert
* KP_0
* KP_1
* KP_2
* KP_3
* KP_4
* KP_5
* KP_6
* KP_7
* KP_8
* KP_9
* KP_Add
* KP_Begin
* KP_Decimal
* KP_Delete
* KP_Divide
* KP_Down
* KP_End
* KP_Enter
* KP_Equal
* KP_F1
* KP_F2
* KP_F3
* KP_F4
* KP_Home
* KP_Insert
* KP_Left
* KP_Multiply
* KP_PageDown
* KP_PageUp
* KP_Right
* KP_Separator
* KP_Space
* KP_Subtract
* KP_Tab
* KP_Up
* Left
* LeftTab
* Linefeed
* Menu
* NumLock
* PageDown
* PageUp
* Pause
* Print
* Redo
* Return
* Right
* ScrollLock
* Select
* Sleep
* Space
* SysReq
* Tab
* Undo
* Up
* WWWBack
* WWWFavorites
* WWWForward
* WWWHome
* WWWRefresh
* WWWSearch
* WWWStop
* Space
* Exclaim
* DoubleQuote
* Number
* Dollar
* Percent
* Ampersand
* Apostrophe
* ParenthesisL
* ParenthesisR
* Asterisk
* Plus
* Comma
* Minus
* Period
* Slash
* Colon
* Semicolon
* Less
* Equal
* Greater
* Question
* At
* BracketL
* Backslash
* BracketR
* Circumflex
* Underscore
* Grave
* BraceL
* Bar
* BraceR
* Tilde
</details>
Additionally, a name of the form `\uXXXX` where ''XXXX'' is a hexadecimal number is interpreted as a unicode character code. Key and modifier names are case-insensitive. Keys that don't exist on the keyboard or in the default keyboard layout will not work.
### Example textual configuration file
This example comes from doc/deskflow-basic.conf
```
# sample deskflow configuration file
#
# comments begin with the # character and continue to the end of
# line. comments may appear anywhere the syntax permits.
# +-------+ +--------+ +---------+
# |Laptop | |Desktop1| |iMac |
# | | | | | |
# +-------+ +--------+ +---------+
section: screens
# three hosts named: Laptop, Desktop1, and iMac
# These are the nice names of the hosts to make it easy to write the config file
# The aliases section below contain the "actual" names of the hosts (their hostnames)
Laptop:
Desktop1:
iMac:
end
section: links
# iMac is to the right of Desktop1
# Laptop is to the left of Desktop1
Desktop1:
right(0,100) = iMac # the numbers in parentheses indicate the percentage of the computer's edge to be considered active for switching)
left = Laptop
shift = shift (shift, alt, super, meta can be mapped to any of the others)
# Desktop1 is to the right of Laptop
Laptop:
right = Desktop1
# Desktop1 is to the left of iMac
iMac:
left = Desktop1
end
section: aliases
# The "real" name of iMac is John-Smiths-iMac-3.local.
# If we wanted we could remove this alias and instead use John-Smiths-iMac-3.local everywhere iMac is above.
# Hopefully it should be easy to see why using an alias is nicer
iMac:
John-Smiths-iMac-3.local
end
```
#### Cursor Wrapping
The text config allows computers to be wrapped around. For example, with two machines (a server and a client), the mouse can go off the right of the server onto the left side of the client, then off the right side of the client back onto the left side of server. This config also uses ''Ctrl''+''Super''+(''left arrow''/''right arrow'') to switch between machines on keypress.
```
# Physical monitor arrangement, with machine names as used by Deskflow.
# +----------+----------+
# | syn-serv | syn-cli |
# | | |
# +----------+----------+
section: screens
syn-serv:
syn-cli:
end
section: links
syn-serv:
left = syn-cli # "wrapping" arrangement
right = syn-cli # "normal" arrangement
syn-cli:
left = syn-serv # "normal"
right = syn-serv # "wrapping"
end
section: options
keystroke(control+super+right) = switchInDirection(right) # Switch computers on keypress
<!-- keystroke(control+super+left) = switchInDirection(left) -->
end
```
### AltGr key
The following screen config allows the mapping for ''Alt'' to ''AltGr''. Although this may not work, see [https://github.com/deskflow/deskflow-core/issues/4411 bug #4411].
```
section: screens
client1:
altgr = alt # mapping to fix AltGr key not working on windows clients (e.g. @-Symbol etc.).
end
```
See also: the man page for ''deskflow-core''.
### Stacked Example
Stack one computer on top of another's.
```
# +-------+
# | curly |
# | |
# +-------+
# +-------+ +-------+
# | moe | | larry |
# | | | |
# +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# larry is to the right of moe and curly is above moe.
moe:
right = larry
up = curly
# moe is to the left of larry and curly is above larry.
larry:
left = moe
up = curly
# larry is below curly.
curly:
down = larry
end
section: aliases
# curly is also known as shemp
curly:
shemp
end
```
### Horizontal Example
Align all computers horizontally.
```
# +-------+ +-------+ +-------+
# | moe | | larry | | curly |
# | | | | | |
# +-------+ +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# curly is to the right of larry and moe is to the left of larry.
larry:
right = curly
left = moe
# larry is to the right of moe.
moe:
right = larry
# larry is to the left of curly.
curly:
left = larry
end
```
### Span Example
Span one computer across the two other computers.
```
# +-------+ +-------+
# | curly | | curly |
# | | | |
# +-------+ +-------+
# +-------+ +-------+
# | moe | | larry |
# | | | |
# +-------+ +-------+
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# larry is to the right of moe and curly is above moe.
moe:
right = larry
up = curly
# moe is to the left of larry and curly is above larry.
larry:
left = moe
up = curly
# larry is below curly.
curly:
down = larry
end
```

View File

@ -1,5 +1,3 @@
![Deskflow](https://github.com/user-attachments/assets/f005b958-24df-4f4a-9bfd-4f834dae59d6)
**Deskflow** is a free and open source keyboard and mouse sharing app.
Use the keyboard, mouse, or trackpad of one computer to control nearby computers,
and work seamlessly between them.

View File

@ -2,8 +2,8 @@ sonar.organization=deskflow
sonar.projectKey=deskflow_deskflow
sonar.sources=src/apps,src/lib
sonar.tests=src/unittests
sonar.exclusions=subprojects/**,build/**
sonar.coverage.exclusions=subprojects/**,src/unittests/**,src/apps/deskflow-gui/**,src/apps/res/**
sonar.exclusions=subprojects/**,build/**,translations/**
sonar.coverage.exclusions=subprojects/**,src/unittests/**,src/apps/deskflow-gui/**,src/apps/res/**,translations/**
sonar.cpd.exclusions=**/*Test*.cpp
sonar.host.url=https://sonarcloud.io
sonar.cfamily.compile-commands=build/compile_commands.json

View File

@ -1,10 +1,9 @@
# SPDX-FileCopyrightText: 2024 Deskflow Developers
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
include_directories(./lib)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/lib)
include_directories(./lib "${CMAKE_CURRENT_BINARY_DIR}/lib")
add_subdirectory(lib)
add_subdirectory(apps)

View File

@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2024 Deskflow Developers
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
if(UNIX AND NOT APPLE)
@ -28,18 +28,15 @@ function(generate_app_man TARGET NAME)
endif()
endfunction()
option(BUILD_UNIFIED "Build unified binary" OFF)
if(BUILD_UNIFIED)
set(WIN32_PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
"^icu.*\\.dll$"
)
set(WIN32_POST_EXCLUDE_REGEXES ".*system32.*")
add_subdirectory(deskflow-core)
else()
add_subdirectory(deskflow-client)
add_subdirectory(deskflow-server)
endif(BUILD_UNIFIED)
## Only used on windows
add_subdirectory(deskflow-daemon)
option(BUILD_GUI "Build GUI" ON)
if(BUILD_GUI)
add_subdirectory(deskflow-daemon) #Only used on windows
add_subdirectory(deskflow-gui)
endif(BUILD_GUI)

View File

@ -1,65 +0,0 @@
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
set(target ${CMAKE_PROJECT_NAME}-client)
if(WIN32)
# Generate rc file
set(EXE_DESCRIPTION "${CMAKE_PROJECT_PROPER_NAME} client application")
set(EXE_ICON "
IDI_DESKFLOW ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\"
")
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in ${target}.rc)
set(PLATFORM_SOURCES
${target}.exe.manifest
${PROJECT_SOURCE_DIR}/src/apps/res/deskflow.ico
${CMAKE_CURRENT_BINARY_DIR}/${target}.rc
)
endif()
add_executable(${target} ${PLATFORM_SOURCES} ${target}.cpp)
target_link_libraries(
${target}
arch
base
client
io
mt
net
platform
server
app
${libs})
if(APPLE)
set_target_properties(${target} PROPERTIES
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:${CMAKE_PROJECT_PROPER_NAME}>/MacOS
)
elseif(UNIX)
install(TARGETS ${target} DESTINATION bin)
generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(Client\\)")
elseif(WIN32)
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET clientDeps
DESTINATION .
)
install(RUNTIME_DEPENDENCY_SET clientDeps
PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
POST_EXCLUDE_REGEXES
".*system32.*"
RUNTIME DESTINATION .
)
endif()

View File

@ -1,40 +0,0 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "arch/Arch.h"
#include "base/EventQueue.h"
#include "base/Log.h"
#include "deskflow/ClientApp.h"
#if SYSAPI_WIN32
#include "arch/win32/ArchMiscWindows.h"
#include <QCoreApplication>
#endif
int main(int argc, char **argv)
{
#if SYSAPI_WIN32
// HACK to make sure settings gets the correct qApp path
QCoreApplication m(argc, argv);
m.deleteLater();
ArchMiscWindows::guardRuntimeVersion();
// record window instance for tray icon, etc
ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr));
#endif
Arch arch;
arch.init();
Log log;
EventQueue events;
ClientApp app(&events);
return app.run(argc, argv);
}

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
</assembly>

View File

@ -1,11 +1,17 @@
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
set(target ${CMAKE_PROJECT_NAME}-core)
add_executable(${target} "${target}.cpp")
add_executable(${target}
"${target}.cpp"
CoreArgs.h
CoreArgParser.h
CoreArgParser.cpp
)
if(WIN32)
# Generate rc file
set(EXE_DESCRIPTION "${CMAKE_PROJECT_PROPER_NAME} combined server and client application")
@ -32,28 +38,27 @@ target_link_libraries(
app
${libs})
if(APPLE)
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET coreDeps
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
if(BUILD_OSX_BUNDLE)
set_target_properties(${target} PROPERTIES
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:${CMAKE_PROJECT_PROPER_NAME}>/MacOS
)
elseif(UNIX)
install(TARGETS ${target} DESTINATION bin)
generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION}")
elseif(WIN32)
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET coreDeps
DESTINATION .
)
install(RUNTIME_DEPENDENCY_SET coreDeps
PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
POST_EXCLUDE_REGEXES
".*system32.*"
RUNTIME DESTINATION .
)
if (APPLE_CODESIGN_DEV)
configure_mac_codesign(${target})
endif()
elseif (WIN32)
install(RUNTIME_DEPENDENCY_SET coreDeps
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
else()
generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION}")
endif()

View File

@ -0,0 +1,104 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "CoreArgParser.h"
#include "CoreArgs.h"
#include "common/Constants.h"
#include "common/ExitCodes.h"
#include "common/Settings.h"
#include "common/VersionInfo.h"
#include "deskflow/ProtocolTypes.h"
const QString CoreArgParser::s_headerText = QStringLiteral("%1: %2\n").arg(kCoreBinName, kDisplayVersion);
CoreArgParser::CoreArgParser(const QStringList &args)
{
m_parser.setApplicationDescription(kAppDescription);
m_parser.addPositionalArgument("coremode", "The mode to start in either: server or client", "coremode");
m_parser.addOptions(CoreArgs::options);
m_parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);
m_parser.setOptionsAfterPositionalArgumentsMode(QCommandLineParser::ParseAsOptions);
m_parser.parse(args);
m_helpText = m_parser.helpText().replace("<executable_name>", kCoreBinName);
m_helpText.replace("[options] coremode", "coremode [options]");
m_singleInstance = !m_parser.isSet(CoreArgs::multiInstanceOption);
}
void CoreArgParser::parse()
{
auto posArgs = m_parser.positionalArguments();
if (posArgs.isEmpty()) {
showHelpText();
exit(s_exitSuccess);
}
const QString mode = posArgs.takeFirst();
m_serverMode = (mode.compare("server", Qt::CaseInsensitive) == 0);
m_clientMode = (mode.compare("client", Qt::CaseInsensitive) == 0);
if ((!m_clientMode && !m_serverMode) || mode.isEmpty()) {
showHelpText();
exit(s_exitSuccess);
}
if (m_parser.isSet(CoreArgs::configOption)) {
Settings::setSettingsFile(m_parser.value(CoreArgs::configOption));
}
}
[[noreturn]] void CoreArgParser::showHelpText() const
{
QTextStream(stdout) << helpText();
exit(s_exitSuccess);
}
QString CoreArgParser::helpText() const
{
return QStringLiteral("%1%2").arg(s_headerText, m_helpText);
}
QString CoreArgParser::versionText() const
{
const static auto vString = QStringLiteral("%1 v%2, protocol v%3.%4\n%5\n");
return vString.arg(
kCoreBinName, kDisplayVersion, QString::number(kProtocolMajorVersion), QString::number(kProtocolMinorVersion),
kCopyright
);
}
QString CoreArgParser::errorText() const
{
return m_parser.errorText();
}
bool CoreArgParser::help() const
{
return m_parser.isSet(CoreArgs::helpOption);
}
bool CoreArgParser::version() const
{
return m_parser.isSet(CoreArgs::versionOption);
}
bool CoreArgParser::serverMode() const
{
return m_serverMode;
}
bool CoreArgParser::clientMode() const
{
return m_clientMode;
}
bool CoreArgParser::singleInstanceOnly() const
{
return m_singleInstance;
}

View File

@ -0,0 +1,46 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include <QCommandLineParser>
/**
* @brief The CoreArgParser class
* This class processes the argments for the "core" app
*/
class CoreArgParser
{
public:
/**
* @brief CoreArgParser calling this funciton will parse apps and set the setting and version options
* For any other settings to be set you must call parse();
* @sa parse();
* @param args List of args to parse
*/
explicit CoreArgParser(const QStringList &args = {});
/**
* @brief parse
* This method will parse all options other then help and version
*/
void parse();
QString helpText() const;
QString versionText() const;
QString errorText() const;
bool help() const;
bool version() const;
bool serverMode() const;
bool clientMode() const;
bool singleInstanceOnly() const;
private:
[[noreturn]] void showHelpText() const;
QCommandLineParser m_parser;
QString m_helpText;
bool m_clientMode = false;
bool m_serverMode = false;
bool m_singleInstance = true;
static const QString s_headerText;
};

View File

@ -0,0 +1,24 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include <QCommandLineOption>
/**
* @brief The CoreArgs class
* This class contains args for the CoreArgParser
*/
struct CoreArgs
{
inline static const auto helpOption = QCommandLineOption({"h", "help"}, "Display Help on the command line");
inline static const auto versionOption = QCommandLineOption({"v", "version"}, "Display version information");
inline static const auto multiInstanceOption =
QCommandLineOption("new-instance", "Skip the check for a running instance, always makes a new instance");
inline static const auto configOption =
QCommandLineOption({"s", "settings"}, "override configuration file to use", "configFile");
inline static const auto options = {helpOption, versionOption, multiInstanceOption, configOption};
};

View File

@ -6,40 +6,33 @@
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "CoreArgParser.h"
#include "arch/Arch.h"
#include "base/EventQueue.h"
#include "base/Log.h"
#include "common/Constants.h"
#include "common/ExitCodes.h"
#include "deskflow/ClientApp.h"
#include "deskflow/ServerApp.h"
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
#include "arch/win32/ArchMiscWindows.h"
#include <QCoreApplication>
#endif
#include <iostream>
#include <QFileInfo>
#include <QSharedMemory>
#include <QTextStream>
void showHelp()
void showHelp(const CoreArgParser &parser)
{
std::cout << "Usage: deskflow-core <server | client> [...options]" << std::endl;
std::cout << "server - start as a server (deskflow-server)" << std::endl;
std::cout << "client - start as a client (deskflow-client)" << std::endl;
std::cout << "use deskflow-core <server|client> --help for more information." << std::endl;
}
bool isServer(int argc, char **argv)
{
return (argc > 1 && argv[1] == std::string("server"));
}
bool isClient(int argc, char **argv)
{
return (argc > 1 && argv[1] == std::string("client"));
QTextStream(stdout) << parser.helpText();
}
int main(int argc, char **argv)
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// HACK to make sure settings gets the correct qApp path
QCoreApplication m(argc, argv);
m.deleteLater();
@ -51,17 +44,55 @@ int main(int argc, char **argv)
arch.init();
Log log;
QStringList args;
for (int i = 0; i < argc; i++)
args.append(argv[i]);
CoreArgParser parser(args);
// Print any parser errors
if (!parser.errorText().isEmpty()) {
QTextStream(stdout) << parser.errorText() << "\n";
}
if (parser.help()) {
showHelp(parser);
return s_exitSuccess;
}
if (parser.version()) {
QTextStream(stdout) << parser.versionText();
return s_exitSuccess;
}
// Before we check any more args we need to check for a duplicate process.
// Create a shared memory segment with a unique key
// This is to prevent a new instance from running if one is already running
QSharedMemory sharedMemory(kCoreBinName);
// Attempt to attach first and detach in order to clean up stale shm chunks
// This can happen if the previous instance was killed or crashed
if (sharedMemory.attach())
sharedMemory.detach();
if (!sharedMemory.create(1) && parser.singleInstanceOnly()) {
LOG_WARN("an instance of deskflow core is already running");
return s_exitDuplicate;
}
parser.parse();
EventQueue events;
const auto processName = QFileInfo(argv[0]).fileName();
if (isServer(argc, argv)) {
ServerApp app(&events);
return app.run(argc, argv);
} else if (isClient(argc, argv)) {
ClientApp app(&events);
return app.run(argc, argv);
} else {
showHelp();
if (parser.serverMode()) {
ServerApp app(&events, processName);
return app.run();
} else if (parser.clientMode()) {
ClientApp app(&events, processName);
return app.run();
}
return 0;
return s_exitSuccess;
}

View File

@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
# Daemon is only needed on Windows for elevating processes to deal with UAC.
@ -12,7 +12,12 @@ if(WIN32)
set(EXE_ICON "IDI_DESKFLOW ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\"")
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in ${target}.rc)
add_executable(${target} WIN32 ${target}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${target}.rc)
add_executable(
${target} WIN32
${target}.cpp
DaemonApp.cpp
DaemonApp.h
${CMAKE_CURRENT_BINARY_DIR}/${target}.rc)
target_link_libraries(
${target}
@ -29,16 +34,12 @@ if(WIN32)
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET deamonDeps
DESTINATION .
RUNTIME_DEPENDENCY_SET daemonDeps
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(RUNTIME_DEPENDENCY_SET daemonDeps
PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
POST_EXCLUDE_REGEXES
".*system32.*"
RUNTIME DESTINATION .
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif()

View File

@ -1,21 +1,22 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2012 - 2025 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "deskflow/DaemonApp.h"
#include "DaemonApp.h"
#include "arch/Arch.h"
#include "base/IEventQueue.h"
#include "base/Log.h"
#include "base/LogOutputters.h"
#include "common/ExitCodes.h"
#include "common/Settings.h"
#include "deskflow/App.h"
#include "deskflow/ipc/DaemonIpcServer.h"
#if SYSAPI_WIN32
#include "arch/win32/ArchMiscWindows.h" // IWYU pragma: keep
#if defined(Q_OS_WIN)
#include "arch/win32/ArchDaemonWindows.h"
#include "deskflow/Screen.h"
#include "platform/MSWindowsDebugOutputter.h"
#include "platform/MSWindowsEventQueueBuffer.h"
@ -26,19 +27,10 @@
#endif
#include <filesystem>
#include <iostream>
#include <string>
using namespace std;
using namespace deskflow::core;
void showHelp(int argc, char **argv) // NOSONAR - CLI args
{
const auto binName = argc > 0 ? std::filesystem::path(argv[0]).filename().string() : kDaemonBinName;
std::cout << "Usage: " << binName << " [-f|--foreground] [--install] [--uninstall]" << std::endl;
}
DaemonApp::DaemonApp(IEventQueue &events) : m_events(events)
{
// do nothing
@ -71,7 +63,7 @@ void DaemonApp::applyWatchdogCommand() const
{
LOG_DEBUG("applying watchdog command");
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
m_pWatchdog->setProcessConfig(m_command, m_elevate);
#else
LOG_ERR("applying watchdog command not implemented on this platform");
@ -85,7 +77,7 @@ void DaemonApp::clearWatchdogCommand()
// Clear the setting to prevent it from being next time the daemon starts.
setCommand("");
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
m_pWatchdog->setProcessConfig("", false);
#else
LOG_ERR("clearing watchdog command not implemented on this platform");
@ -95,52 +87,30 @@ void DaemonApp::clearWatchdogCommand()
void DaemonApp::clearSettings() const
{
LOG_INFO("clearing daemon settings");
Settings::setValue(Settings::Daemon::Command, QVariant());
Settings::setValue(Settings::Daemon::Elevate, QVariant());
Settings::setValue(Settings::Daemon::LogFile, QVariant());
Settings::setValue(Settings::Daemon::LogLevel, QVariant());
Settings::setValue(Settings::Daemon::Command);
Settings::setValue(Settings::Daemon::Elevate);
Settings::setValue(Settings::Daemon::LogFile);
Settings::setValue(Settings::Daemon::LogLevel);
}
void DaemonApp::connectIpcServer(const ipc::DaemonIpcServer *ipcServer) const
{
// Use direct connection as this object is on it's own thread,
// and so is on a different event loop to the main Qt loop.
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::logLevelChanged, this, &DaemonApp::saveLogLevel, //
connect(ipcServer, &ipc::DaemonIpcServer::logLevelChanged, this, &DaemonApp::saveLogLevel, Qt::DirectConnection);
connect(ipcServer, &ipc::DaemonIpcServer::elevateModeChanged, this, &DaemonApp::setElevate, Qt::DirectConnection);
connect(ipcServer, &ipc::DaemonIpcServer::commandChanged, this, &DaemonApp::setCommand, Qt::DirectConnection);
connect(
ipcServer, &ipc::DaemonIpcServer::startProcessRequested, this, &DaemonApp::applyWatchdogCommand,
Qt::DirectConnection
);
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::elevateModeChanged, this, &DaemonApp::setElevate, //
connect(
ipcServer, &ipc::DaemonIpcServer::stopProcessRequested, this, &DaemonApp::clearWatchdogCommand,
Qt::DirectConnection
);
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::commandChanged, this, &DaemonApp::setCommand, //
Qt::DirectConnection
connect(
ipcServer, &ipc::DaemonIpcServer::clearSettingsRequested, this, &DaemonApp::clearSettings, Qt::DirectConnection
);
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::startProcessRequested, this, &DaemonApp::applyWatchdogCommand, //
Qt::DirectConnection
);
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::stopProcessRequested, this, &DaemonApp::clearWatchdogCommand, //
Qt::DirectConnection
);
QObject::connect(
ipcServer, &ipc::DaemonIpcServer::clearSettingsRequested, this, &DaemonApp::clearSettings, //
Qt::DirectConnection
);
}
void DaemonApp::install() const
{
LOG_NOTE("installing windows daemon");
ARCH->installDaemon();
}
void DaemonApp::uninstall() const
{
LOG_NOTE("uninstalling windows daemon");
ARCH->uninstallDaemon();
}
void DaemonApp::run(QThread &daemonThread)
@ -151,7 +121,7 @@ void DaemonApp::run(QThread &daemonThread)
// owned by the daemon app, as they will be created on the daemon thread.
moveToThread(&daemonThread);
QObject::connect(&daemonThread, &QThread::started, [this, &daemonThread]() {
connect(&daemonThread, &QThread::started, this, [this, &daemonThread]() {
LOG_DEBUG("daemon thread started");
if (m_foreground) {
@ -159,14 +129,14 @@ void DaemonApp::run(QThread &daemonThread)
mainLoop();
} else {
LOG_DEBUG("running daemon in background (daemonizing)");
ARCH->daemonize(kAppName, [this](int, const char **) { return daemonLoop(); });
ARCH->daemonize([this] { return daemonLoop(); });
}
daemonThread.quit();
LOG_DEBUG("daemon thread finished");
});
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
m_pWatchdog = std::make_unique<MSWindowsWatchdog>(m_foreground, *m_pFileLogOutputter);
auto command = Settings::value(Settings::Daemon::Command).toString().toStdString();
@ -183,27 +153,26 @@ void DaemonApp::run(QThread &daemonThread)
int DaemonApp::daemonLoop()
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// Runs the daemon through the Windows service controller, which controls the program lifecycle.
return ArchMiscWindows::runDaemon([this]() { return mainLoop(); });
#elif SYSAPI_UNIX
return ArchDaemonWindows::runDaemon([this]() { return mainLoop(); });
#else
return mainLoop();
#endif
}
int DaemonApp::mainLoop()
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
if (m_pWatchdog == nullptr) {
LOG_ERR("watchdog not initialized");
return s_exitFailed;
}
ArchDaemonWindows::daemonRunning(true);
#endif
DAEMON_RUNNING(true);
try {
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// Install the platform event queue to handle service stop events.
// This must be done on the same thread as the event loop, otherwise the service stop
// request will not add the quit event to the event queue, and the service won't stop.
@ -216,25 +185,25 @@ int DaemonApp::mainLoop()
LOG_INFO("daemon is running");
m_events.loop();
} catch (std::exception &e) { // NOSONAR - Catching all exceptions
LOG((CLOG_CRIT "daemon error: %s", e.what()));
LOG_CRIT("daemon error: %s", e.what());
} catch (...) { // NOSONAR - Catching remaining exceptions
LOG((CLOG_CRIT "daemon unknown error"));
LOG_CRIT("daemon unknown error");
}
LOG_INFO("daemon is stopping");
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
try {
LOG_DEBUG("stopping process watchdog");
m_pWatchdog->stop();
} catch (std::exception &e) { // NOSONAR - Catching all exceptions
LOG((CLOG_CRIT "daemon stop watchdog error: %s", e.what()));
LOG_CRIT("daemon stop watchdog error: %s", e.what());
} catch (...) { // NOSONAR - Catching remaining exceptions
LOG((CLOG_CRIT "daemon stop watchdog unknown error"));
LOG_CRIT("daemon stop watchdog unknown error");
}
ArchDaemonWindows::daemonRunning(false);
#endif
DAEMON_RUNNING(false);
return s_exitSuccess;
}
@ -251,7 +220,7 @@ void DaemonApp::setForeground()
void DaemonApp::initLogging()
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
if (!m_foreground) {
// Only use MS debug outputter when the process is daemonized, since stdout won't be accessible
// in that case, but is accessible when running in the foreground.
@ -259,13 +228,13 @@ void DaemonApp::initLogging()
}
#endif
m_pFileLogOutputter = new FileLogOutputter(logFilename().toStdString().c_str()); // NOSONAR - Adopted by `Log`
m_pFileLogOutputter = new FileLogOutputter(qPrintable(logFilename())); // NOSONAR - Adopted by `Log`
CLOG->insert(m_pFileLogOutputter);
}
void DaemonApp::showConsole()
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// The daemon bin is compiled using the Win32 subsystem which works best for Windows services,
// so when running as a foreground process we need to allocate a console (or we won't see output).
// It is important to do this inside the arg check loop so that we can attach console ahead

View File

@ -6,8 +6,6 @@
#pragma once
#include "common/Common.h"
#include <string>
#include <QObject>
@ -23,7 +21,7 @@ namespace deskflow::core::ipc {
class DaemonIpcServer;
}
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
class MSWindowsWatchdog;
#endif
@ -34,22 +32,9 @@ class DaemonApp : public QObject
Q_OBJECT
public:
enum class InitResult
{
Installed,
Uninstalled,
StartDaemon,
ShowHelp,
ArgsError,
FatalError,
};
explicit DaemonApp(IEventQueue &events);
~DaemonApp() override;
InitResult init(int argc, char **argv);
void install() const;
void uninstall() const;
void run(QThread &daemonThread);
void setForeground();
void initLogging();
@ -71,7 +56,7 @@ private:
static void showConsole();
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
std::unique_ptr<MSWindowsWatchdog> m_pWatchdog;
#endif

View File

@ -5,21 +5,21 @@
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "VersionInfo.h"
#include "DaemonApp.h"
#include "arch/Arch.h"
#include "base/EventQueue.h"
#include "base/Log.h"
#include "common/ExitCodes.h"
#include "common/Settings.h"
#include "deskflow/DaemonApp.h"
#include "common/VersionInfo.h"
#include "deskflow/ipc/DaemonIpcServer.h"
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
#include "arch/win32/ArchMiscWindows.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
#include <QCommandLineParser>
@ -32,7 +32,7 @@ void handleError(const char *message = "Unrecognized error.");
int main(int argc, char **argv)
{
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
ArchMiscWindows::guardRuntimeVersion();
// Save window instance for later use, e.g. `GetModuleFileName` which is used when installing the daemon.
@ -58,12 +58,6 @@ int main(int argc, char **argv)
const auto foregroundOption = QCommandLineOption({"f", "foreground"}, "Run in the foreground (show console)");
parser.addOption(foregroundOption);
const auto installOption = QCommandLineOption({"i", "install"}, "Install as a Windows service");
parser.addOption(installOption);
const auto uninstallOption = QCommandLineOption({"u", "uninstall"}, "Uninstall the Windows service");
parser.addOption(uninstallOption);
parser.process(app);
if (parser.isSet(foregroundOption)) {
@ -78,34 +72,25 @@ int main(int argc, char **argv)
// useful for troubleshooting Windows services.
// It's important to write the version number to the log file so we can be certain the old daemon
// was uninstalled, since sometimes Windows services can get stuck and fail to be removed.
LOG_PRINT("%s v%s", QCoreApplication::applicationName().toStdString().c_str(), kDisplayVersion);
LOG_PRINT("%s v%s", qPrintable(QCoreApplication::applicationName()), kDisplayVersion);
// Default log level to system setting (found in Registry).
auto logLevel = Settings::value(Settings::Daemon::LogLevel).toString().toStdString();
if (logLevel != "") {
if (!logLevel.empty()) {
CLOG->setFilter(logLevel.c_str());
LOG_DEBUG("log level: %s", logLevel.c_str());
}
try {
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// Show warning if not running as admin as daemon will behave differently.
if (!ArchMiscWindows::isProcessElevated()) {
LOG_WARN("not running as admin, some features may not work");
}
#endif
if (parser.isSet(installOption)) {
daemon.install();
return s_exitSuccess;
} else if (parser.isSet(uninstallOption)) {
daemon.uninstall();
return s_exitSuccess;
}
const auto ipcServer =
new ipc::DaemonIpcServer(&app, DaemonApp::logFilename().toStdString().c_str()); // NOSONAR - Qt managed
const auto ipcServer = new ipc::DaemonIpcServer(&app, qPrintable(DaemonApp::logFilename())); // NOSONAR - Qt managed
ipcServer->listen();
daemon.connectIpcServer(ipcServer);
@ -128,8 +113,7 @@ int main(int argc, char **argv)
}
}
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// Win32 subsystem entry point (simply forwards to main).
// We need this because using regular main under the Win32 subsystem results in empty args.
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
@ -144,7 +128,7 @@ void handleError(const char *message)
// Always print error to stdout in case run as CLI program.
LOG_ERR("%s", message);
#if SYSAPI_WIN32
#if defined(Q_OS_WIN)
// Show a message box for when run from MSI in Win32 subsystem.
MessageBoxA(nullptr, message, "Deskflow daemon error", MB_OK | MB_ICONERROR);
#endif

View File

@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: 2024 Symless Ltd
# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Symless Ltd
# SPDX-License-Identifier: MIT
if(APPLE)
@ -15,12 +15,12 @@ if(WIN32)
set(EXE_ICON "IDI_ICON1 ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\" ")
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in deskflow.rc)
set(platform_extra deskflow.rc)
elseif(APPLE)
elseif(BUILD_OSX_BUNDLE)
#setup our bundle plist file
set(BUNDLE_EXECUTABLE_NAME "${target}")
set(BUNDLE_BUNDLE_NAME "${target}")
set(BUNDLE_DISPLAY_NAME "${target}")
set(BUNDLE_GUI_IDENTIFIER "org.deskflow.deskflow")
set(BUNDLE_GUI_IDENTIFIER "${CMAKE_PROJECT_REV_FQDN}")
set(BUNDLE_ICON_FILE ${target}.icns)
set(BUNDLE_INFO_STRING "${CMAKE_PROJECT_DESCRIPTION}")
set(BUNDLE_COPYRIGHT "${CMAKE_PROJECT_COPYRIGHT}")
@ -31,13 +31,7 @@ elseif(APPLE)
@ONLY
)
file(COPY_FILE
${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt
${CMAKE_CURRENT_BINARY_DIR}/LICENSE_EXCEPTION
ONLY_IF_DIFFERENT
)
set(platform_extra ../res/Deskflow.icns ${CMAKE_SOURCE_DIR}/LICENSE ${CMAKE_CURRENT_BINARY_DIR}/LICENSE_EXCEPTION)
set(platform_extra ../res/Deskflow.icns)
set_source_files_properties(${platform_extra} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
endif()
@ -55,21 +49,20 @@ target_link_libraries(
Qt6::Widgets
Qt6::Network)
if(WIN32)
set_target_properties(${target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET guiDeps
DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
BUNDLE DESTINATION .
)
if(WIN32)
set_target_properties(${target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
install(RUNTIME_DEPENDENCY_SET guiDeps
PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
POST_EXCLUDE_REGEXES
".*system32.*"
RUNTIME DESTINATION .
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
set(QT_DEPENDS_DIR ${CMAKE_BINARY_DIR}/qt-depends)
@ -91,17 +84,23 @@ if(WIN32)
install(
DIRECTORY ${QT_DEPENDS_DIR}/
DESTINATION .
DESTINATION ${CMAKE_INSTALL_LIBDIR}
PATTERN "dx*.dll" EXCLUDE
PATTERN "icu*.dll" EXCLUDE
)
elseif(APPLE)
if (BUILD_OSX_BUNDLE)
set_target_properties(${target} PROPERTIES
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/deskflow.plist"
)
install(TARGETS ${target} BUNDLE DESTINATION .)
if (APPLE_CODESIGN_DEV)
configure_mac_codesign(${target})
endif()
else()
set_target_properties(${target} PROPERTIES MACOSX_BUNDLE FALSE)
endif()
else()
install(TARGETS ${target} DESTINATION bin)
generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(GUI\\)")
endif()

View File

@ -6,12 +6,13 @@
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "VersionInfo.h"
#include "common/Constants.h"
#include "common/ExitCodes.h"
#include "common/I18N.h"
#include "common/PlatformInfo.h"
#include "common/UrlConstants.h"
#include "common/VersionInfo.h"
#include "gui/Diagnostic.h"
#include "gui/DotEnv.h"
#include "gui/Logger.h"
#include "gui/MainWindow.h"
#include "gui/Messages.h"
#include "gui/StyleUtils.h"
@ -22,7 +23,7 @@
#include <QMessageBox>
#include <QSharedMemory>
#if defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
#include <Carbon/Carbon.h>
#include <cstdlib>
#endif
@ -31,9 +32,13 @@
#include <QLoggingCategory>
#endif
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
#include "platform/XDGPortalRegistry.h"
#endif
using namespace deskflow::gui;
#if defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
bool checkMacAssistiveDevices();
#endif
@ -46,14 +51,21 @@ int main(int argc, char *argv[])
QLoggingCategory::setFilterRules(QStringLiteral("*.debug=true\nqt.*=false"));
#endif
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
deskflow::platform::setAppId();
#endif
QCoreApplication::setApplicationName(kAppName);
QCoreApplication::setOrganizationName(kAppName);
QCoreApplication::setApplicationVersion(kVersion);
QCoreApplication::setOrganizationDomain(kOrgDomain); // used in prefix, can't be a url
QGuiApplication::setDesktopFileName(QStringLiteral("org.deskflow.deskflow"));
QGuiApplication::setDesktopFileName(kRevFqdnName);
QApplication app(argc, argv);
// Ensure the I18N object is made before strings
QTextStream(stdout) << "initial language: " << I18N::currentLanguage() << '\n';
// Add Command Line Options
auto helpOption = QCommandLineOption({"h", "help"}, "Display Help on the command line");
auto versionOption = QCommandLineOption({"v", "version"}, "Display version information");
@ -68,23 +80,24 @@ int main(int argc, char *argv[])
if (!parser.errorText().isEmpty()) {
qCritical().noquote() << parser.errorText() << "\nUse --help for more information.";
return 1;
return s_exitArgs;
}
if (parser.isSet(helpOption)) {
QTextStream(stdout) << kHeader << QStringLiteral(" %1\n\n").arg(kAppDescription)
<< parser.helpText().replace(QApplication::applicationFilePath(), kAppId);
return 0;
return s_exitSuccess;
}
if (parser.isSet(versionOption)) {
QTextStream(stdout) << kHeader << kCopyright << Qt::endl;
return 0;
return s_exitSuccess;
}
const auto shmId = QStringLiteral("%1-gui").arg(kAppId);
// Create a shared memory segment with a unique key
// This is to prevent a new instance from running if one is already running
QSharedMemory sharedMemory("deskflow-gui");
QSharedMemory sharedMemory(shmId);
// Attempt to attach first and detach in order to clean up stale shm chunks
// This can happen if the previous instance was killed or crashed
@ -95,38 +108,27 @@ int main(int argc, char *argv[])
if (!sharedMemory.create(1)) {
// Ping the running instance to have it show itself
QLocalSocket socket;
socket.connectToServer("deskflow-gui", QLocalSocket::ReadOnly);
socket.connectToServer(shmId, QLocalSocket::ReadOnly);
if (!socket.waitForConnected()) {
// If we can't connect to the other instance tell the user its running.
// This should never happen but just incase we should show something
QMessageBox::information(nullptr, QObject::tr("Deskflow"), QObject::tr("Deskflow is already running"));
QMessageBox::information(nullptr, kAppName, QObject::tr("%1 is already running").arg(kAppName));
}
socket.disconnectFromServer();
return 0;
return s_exitDuplicate;
}
#if !defined(Q_OS_MAC)
// causes dark mode to be used on some DE's
if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) {
if (!deskflow::platform::isMac() && qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) {
QApplication::setStyle("fusion");
}
#endif
// Sets the fallback icon path and fallback theme
const auto themeName = QStringLiteral("deskflow-%1").arg(iconMode());
if (QIcon::themeName().isEmpty())
QIcon::setThemeName(themeName);
else
QIcon::setFallbackThemeName(themeName);
QIcon::setFallbackSearchPaths({QStringLiteral(":/icons/%1").arg(themeName)});
updateIconTheme();
qInstallMessageHandler(deskflow::gui::messages::messageHandler);
qInfo("%s v%s", kAppName, qPrintable(kVersion));
qInfo("%s v%s", kAppName, kDisplayVersion);
dotenv();
Logger::instance().loadEnvVars();
#if defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
if (app.applicationDirPath().startsWith("/Volumes/")) {
QString msgBody = QStringLiteral(
@ -153,7 +155,7 @@ int main(int argc, char *argv[])
return QApplication::exec();
}
#if defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
bool checkMacAssistiveDevices()
{
// new in mavericks, applications are trusted individually

View File

@ -1,64 +0,0 @@
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
# SPDX-License-Identifier: MIT
set(target ${CMAKE_PROJECT_NAME}-server)
if(WIN32)
# Generate rc file
set(EXE_DESCRIPTION "${CMAKE_PROJECT_PROPER_NAME} server application")
set(EXE_ICON "
IDI_DESKFLOW ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\"
")
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in ${target}.rc)
set(PLATFORM_SOURCES
${target}.exe.manifest
${PROJECT_SOURCE_DIR}/src/apps/res/deskflow.ico
${CMAKE_CURRENT_BINARY_DIR}/${target}.rc
)
endif()
add_executable(${target} ${PLATFORM_SOURCES} ${target}.cpp)
target_link_libraries(
${target}
arch
base
client
io
mt
net
platform
server
app
${libs})
if(APPLE)
set_target_properties(${target} PROPERTIES
BUILD_WITH_INSTALL_RPATH TRUE
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:${CMAKE_PROJECT_PROPER_NAME}>/MacOS
)
elseif(UNIX)
install(TARGETS ${target} DESTINATION bin)
generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(Server\\)")
elseif(WIN32)
install(
TARGETS ${target}
RUNTIME_DEPENDENCY_SET serverDeps
DESTINATION .
)
install(RUNTIME_DEPENDENCY_SET serverDeps
PRE_EXCLUDE_REGEXES
"api-ms-win-.*"
"ext-ms-.*"
"^hvsifiletrust\\.dll$"
POST_EXCLUDE_REGEXES
".*system32.*"
RUNTIME DESTINATION .
)
endif()

View File

@ -1,40 +0,0 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
* SPDX-FileCopyrightText: (C) 2012-2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "arch/Arch.h"
#include "base/EventQueue.h"
#include "base/Log.h"
#include "deskflow/ServerApp.h"
#if SYSAPI_WIN32
#include "arch/win32/ArchMiscWindows.h"
#include <QCoreApplication>
#endif
int main(int argc, char **argv)
{
#if SYSAPI_WIN32
// HACK to make sure settings gets the correct qApp path
QCoreApplication m(argc, argv);
m.deleteLater();
ArchMiscWindows::guardRuntimeVersion();
// record window instance for tray icon, etc
ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr));
#endif
Arch arch;
arch.init();
Log log;
EventQueue events;
ServerApp app(&events);
return app.run(argc, argv);
}

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
</assembly>

View File

@ -30,8 +30,12 @@
<true/>
<key>NSHumanReadableCopyright</key>
<string>@BUNDLE_COPYRIGHT@</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<!-- Don't Allow Os to kill for memory -->
<!-- Prevent macOS from terminating during memory pressure -->
<key>NSSupportsAutomaticTermination</key>
<false/>
<key>NSSupportsSuddenTermination</key>
<false/>

View File

@ -5,34 +5,58 @@
<file>icons/deskflow-dark/actions/16/document-edit.svg</file>
<file>icons/deskflow-dark/actions/16/document-open.svg</file>
<file>icons/deskflow-dark/actions/16/document-save-as.svg</file>
<file>icons/deskflow-dark/actions/16/go-down.svg</file>
<file>icons/deskflow-dark/actions/16/go-up.svg</file>
<file>icons/deskflow-dark/actions/16/help-about.svg</file>
<file>icons/deskflow-dark/actions/16/network-connect.svg</file>
<file>icons/deskflow-dark/actions/16/network-disconnect.svg</file>
<file>icons/deskflow-dark/actions/16/process-stop.svg</file>
<file>icons/deskflow-dark/actions/16/system-run.svg</file>
<file>icons/deskflow-dark/actions/16/system-search.svg</file>
<file>icons/deskflow-dark/actions/16/tools-report-bug.svg</file>
<file>icons/deskflow-dark/actions/16/view-close.svg</file>
<file>icons/deskflow-dark/actions/16/view-refresh.svg</file>
<file>icons/deskflow-dark/actions/16/window-minimize-pip.svg</file>
<file>icons/deskflow-dark/actions/16/window-restore-pip.svg</file>
<file>icons/deskflow-dark/actions/22/configure.svg</file>
<file>icons/deskflow-dark/actions/22/edit-copy.svg</file>
<file>icons/deskflow-dark/actions/22/document-edit.svg</file>
<file>icons/deskflow-dark/actions/22/document-open.svg</file>
<file>icons/deskflow-dark/actions/22/document-save-as.svg</file>
<file>icons/deskflow-dark/actions/22/fingerprint.svg</file>
<file>icons/deskflow-dark/actions/22/go-down.svg</file>
<file>icons/deskflow-dark/actions/22/go-up.svg</file>
<file>icons/deskflow-dark/actions/22/help-about.svg</file>
<file>icons/deskflow-dark/actions/22/network-connect.svg</file>
<file>icons/deskflow-dark/actions/22/network-disconnect.svg</file>
<file>icons/deskflow-dark/actions/22/process-stop.svg</file>
<file>icons/deskflow-dark/actions/22/system-run.svg</file>
<file>icons/deskflow-dark/actions/22/system-search.svg</file>
<file>icons/deskflow-dark/actions/22/tools-report-bug.svg</file>
<file>icons/deskflow-dark/actions/22/view-close.svg</file>
<file>icons/deskflow-dark/actions/22/view-refresh.svg</file>
<file>icons/deskflow-dark/actions/22/window-minimize-pip.svg</file>
<file>icons/deskflow-dark/actions/22/window-restore-pip.svg</file>
<file>icons/deskflow-dark/actions/24/configure.svg</file>
<file>icons/deskflow-dark/actions/24/edit-copy.svg</file>
<file>icons/deskflow-dark/actions/24/document-edit.svg</file>
<file>icons/deskflow-dark/actions/24/document-open.svg</file>
<file>icons/deskflow-dark/actions/24/document-save-as.svg</file>
<file>icons/deskflow-dark/actions/24/go-down.svg</file>
<file>icons/deskflow-dark/actions/24/go-up.svg</file>
<file>icons/deskflow-dark/actions/24/edit-clear-all.svg</file>
<file>icons/deskflow-dark/actions/24/fingerprint.svg</file>
<file>icons/deskflow-dark/actions/24/help-about.svg</file>
<file>icons/deskflow-dark/actions/24/network-connect.svg</file>
<file>icons/deskflow-dark/actions/24/network-disconnect.svg</file>
<file>icons/deskflow-dark/actions/24/process-stop.svg</file>
<file>icons/deskflow-dark/actions/24/system-run.svg</file>
<file>icons/deskflow-dark/actions/24/system-search.svg</file>
<file>icons/deskflow-dark/actions/24/tools-report-bug.svg</file>
<file>icons/deskflow-dark/actions/24/view-close.svg</file>
<file>icons/deskflow-dark/actions/24/view-refresh.svg</file>
<file>icons/deskflow-dark/actions/24/window-minimize-pip.svg</file>
<file>icons/deskflow-dark/actions/24/window-restore-pip.svg</file>
<file>icons/deskflow-dark/actions/32/configure.svg</file>
<file>icons/deskflow-dark/actions/32/application-exit.svg</file>
<file>icons/deskflow-dark/actions/32/dialog-cancel.svg</file>
@ -40,10 +64,13 @@
<file>icons/deskflow-dark/actions/32/dialog-ok-apply.svg</file>
<file>icons/deskflow-dark/actions/32/document-open.svg</file>
<file>icons/deskflow-dark/actions/32/document-save-as.svg</file>
<file>icons/deskflow-dark/actions/32/go-down.svg</file>
<file>icons/deskflow-dark/actions/32/go-up.svg</file>
<file>icons/deskflow-dark/actions/32/help-about.svg</file>
<file>icons/deskflow-dark/actions/32/view-refresh.svg</file>
<file>icons/deskflow-dark/apps/64/deskflow.svg</file>
<file>icons/deskflow-dark/apps/64/deskflow-symbolic.svg</file>
<file>icons/deskflow-dark/actions/32/system-search.svg</file>
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow.svg</file>
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow-symbolic.svg</file>
<file>icons/deskflow-dark/devices/64/video-display.svg</file>
<file>icons/deskflow-dark/places/64/user-trash.svg</file>
<file>icons/deskflow-dark/status/32/software-updates-release.svg</file>
@ -62,11 +89,19 @@
<file>icons/deskflow-light/actions/16/document-edit.svg</file>
<file>icons/deskflow-light/actions/16/document-open.svg</file>
<file>icons/deskflow-light/actions/16/document-save-as.svg</file>
<file>icons/deskflow-light/actions/16/go-down.svg</file>
<file>icons/deskflow-light/actions/16/go-up.svg</file>
<file>icons/deskflow-light/actions/16/help-about.svg</file>
<file>icons/deskflow-light/actions/16/network-connect.svg</file>
<file>icons/deskflow-light/actions/16/network-disconnect.svg</file>
<file>icons/deskflow-light/actions/16/process-stop.svg</file>
<file>icons/deskflow-light/actions/16/system-run.svg</file>
<file>icons/deskflow-light/actions/16/system-search.svg</file>
<file>icons/deskflow-light/actions/16/tools-report-bug.svg</file>
<file>icons/deskflow-light/actions/16/view-close.svg</file>
<file>icons/deskflow-light/actions/16/view-refresh.svg</file>
<file>icons/deskflow-light/actions/16/window-minimize-pip.svg</file>
<file>icons/deskflow-light/actions/16/window-restore-pip.svg</file>
<file>icons/deskflow-light/actions/22/configure.svg</file>
<file>icons/deskflow-light/actions/22/edit-clear-all.svg</file>
<file>icons/deskflow-light/actions/22/edit-copy.svg</file>
@ -74,11 +109,19 @@
<file>icons/deskflow-light/actions/22/document-open.svg</file>
<file>icons/deskflow-light/actions/22/document-save-as.svg</file>
<file>icons/deskflow-light/actions/22/fingerprint.svg</file>
<file>icons/deskflow-light/actions/22/go-down.svg</file>
<file>icons/deskflow-light/actions/22/go-up.svg</file>
<file>icons/deskflow-light/actions/22/network-connect.svg</file>
<file>icons/deskflow-light/actions/22/network-disconnect.svg</file>
<file>icons/deskflow-light/actions/22/help-about.svg</file>
<file>icons/deskflow-light/actions/22/process-stop.svg</file>
<file>icons/deskflow-light/actions/22/system-run.svg</file>
<file>icons/deskflow-light/actions/22/system-search.svg</file>
<file>icons/deskflow-light/actions/22/tools-report-bug.svg</file>
<file>icons/deskflow-light/actions/22/view-close.svg</file>
<file>icons/deskflow-light/actions/22/view-refresh.svg</file>
<file>icons/deskflow-light/actions/22/window-minimize-pip.svg</file>
<file>icons/deskflow-light/actions/22/window-restore-pip.svg</file>
<file>icons/deskflow-light/actions/24/configure.svg</file>
<file>icons/deskflow-light/actions/24/edit-clear-all.svg</file>
<file>icons/deskflow-light/actions/24/edit-copy.svg</file>
@ -86,11 +129,19 @@
<file>icons/deskflow-light/actions/24/document-edit.svg</file>
<file>icons/deskflow-light/actions/24/document-open.svg</file>
<file>icons/deskflow-light/actions/24/document-save-as.svg</file>
<file>icons/deskflow-light/actions/24/go-down.svg</file>
<file>icons/deskflow-light/actions/24/go-up.svg</file>
<file>icons/deskflow-light/actions/24/help-about.svg</file>
<file>icons/deskflow-light/actions/24/network-connect.svg</file>
<file>icons/deskflow-light/actions/24/network-disconnect.svg</file>
<file>icons/deskflow-light/actions/24/process-stop.svg</file>
<file>icons/deskflow-light/actions/24/system-run.svg</file>
<file>icons/deskflow-light/actions/24/system-search.svg</file>
<file>icons/deskflow-light/actions/24/tools-report-bug.svg</file>
<file>icons/deskflow-light/actions/24/view-close.svg</file>
<file>icons/deskflow-light/actions/24/view-refresh.svg</file>
<file>icons/deskflow-light/actions/24/window-minimize-pip.svg</file>
<file>icons/deskflow-light/actions/24/window-restore-pip.svg</file>
<file>icons/deskflow-light/actions/32/configure.svg</file>
<file>icons/deskflow-light/actions/32/application-exit.svg</file>
<file>icons/deskflow-light/actions/32/dialog-cancel.svg</file>
@ -98,10 +149,13 @@
<file>icons/deskflow-light/actions/32/dialog-ok-apply.svg</file>
<file>icons/deskflow-light/actions/32/document-open.svg</file>
<file>icons/deskflow-light/actions/32/document-save-as.svg</file>
<file>icons/deskflow-light/actions/32/go-down.svg</file>
<file>icons/deskflow-light/actions/32/go-up.svg</file>
<file>icons/deskflow-light/actions/32/help-about.svg</file>
<file>icons/deskflow-light/actions/32/view-refresh.svg</file>
<file>icons/deskflow-light/apps/64/deskflow.svg</file>
<file>icons/deskflow-light/apps/64/deskflow-symbolic.svg</file>
<file>icons/deskflow-light/actions/32/system-search.svg</file>
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow.svg</file>
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow-symbolic.svg</file>
<file>icons/deskflow-light/devices/64/video-display.svg</file>
<file>icons/deskflow-light/status/32/software-updates-release.svg</file>
<file>icons/deskflow-light/status/64/dialog-error.svg</file>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>com.apple.security.cs.disable-library-validation</key><true/>
<key>com.apple.security.get-task-allow</key><true/>
<key>com.apple.security.cs.allow-jit</key><true/>
</dict></plist>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
<path d="M8 11.707l-6-6L2.707 5 8 10.293 13.293 5l.707.707-6 6z" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 323 B

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
<path d="M8 4.293l-6 6 .707.707L8 5.707 13.293 11l.707-.707-6-6z" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 324 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 13.300781 2 L 10.650391 4.6503906 L 9.5859375 3.5859375 L 3.5859375 9.5859375 L 4.6503906 10.650391 L 2 13.300781 L 2.6992188 14 L 5.3496094 11.349609 L 6.4140625 12.414062 L 12.414062 6.4140625 L 11.349609 5.3496094 L 14 2.6992188 L 13.300781 2 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 582 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-NegativeText { color: #da4453; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 13.300781 2 L 10.650391 4.6503906 L 9.5859375 3.5859375 L 6.5859375 6.5859375 L 9.4140625 9.4140625 L 12.414062 6.4140625 L 11.349609 5.3496094 L 14 2.6992188 L 13.300781 2 z M 5.5859375 7.5859375 L 3.5859375 9.5859375 L 4.6503906 10.650391 L 2 13.300781 L 2.6992188 14 L 5.3496094 11.349609 L 6.4140625 12.414062 L 8.4140625 10.414062 L 5.5859375 7.5859375 z " class="ColorScheme-Text"/>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9,9.83 10.667,11.497 9,13.164 9.833,13.997 11.5,12.33 13.167,13.997 14,13.164 12.333,11.497 14,9.83 13.167,8.997 11.5,10.664 9.833,8.997 Z" class="ColorScheme-NegativeText"/>
</svg>

After

Width:  |  Height:  |  Size: 982 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 6.5 2 C 4.007 2 2 4.01 2 6.5 C 2 8.993 4.01 11 6.5 11 C 7.5636432 11 8.5263409 10.618801 9.2949219 10.005859 L 13.292969 14.003906 L 14 13.296875 L 10.001953 9.2988281 C 10.617604 8.529048 11 7.565338 11 6.5 C 11 4.007 8.99 2 6.5 2 z M 6.5 3 C 8.439 3 10 4.561 10 6.5 C 10 8.439 8.439 10 6.5 10 C 4.561 10 3 8.439 3 6.5 C 3 4.561 4.561 3 6.5 3 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 680 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-NegativeText { color: #da4453; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m2 2v12h12v-12h-12m1 2h10v9h-10v-9" class="ColorScheme-Text"/>
<path d="m6.2 6l-.707.707 1.793 1.793-1.793 1.793.707.707 1.793-1.793 1.793 1.793.707-.707-1.793-1.793 1.793-1.793-.707-.707-1.793 1.793" style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-NegativeText"/>
</svg>

After

Width:  |  Height:  |  Size: 639 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path class="ColorScheme-Text" d="m2 2v12h6v-1h-5v-9h10v4h1v-6zm7 7v6h6v-6zm1 2h4v3h-4z" fill="currentColor"/>
<path class="ColorScheme-Text" d="m7.9999465 5.0002137-0.999893 2e-7v1.3423975l1e-6 0.9501754-2.8926898-2.882958-0.707107 0.7071067 2.8887423 2.8831185-0.9501364-7e-7 -1.3390969 7e-7 4.666e-4 0.9998928h1.3386313l2.6606688 5.32e-5 4.131e-4 -2.6573881z" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 641 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path class="ColorScheme-Text" d="m2 2v12h6v-1h-5v-9h10v4h1v-6zm7 7v6h6v-6zm1 2h4v3h-4z" fill="currentColor"/>
<path class="ColorScheme-Text" d="M 4,8.999786 H 4.9999606 V 7.657389 L 4.9999596,6.707213 7.8928452,9.590171 8.6,8.883065 5.7110623,5.999946 l 0.9502006,1e-6 1.3391875,-1e-6 -4.666e-4,-0.999893 H 6.6612619 L 4.0004131,5 4,7.657388 Z" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 624 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125" class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 485 B

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 382 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 18.292969 3 L 14.792969 6.5 L 13.292969 5 L 11.292969 7 L 8 10.292969 L 6 12.292969 L 7.5 13.792969 L 3 18.292969 L 3.7070312 19 L 8.2070312 14.5 L 9.7070312 16 L 11.707031 14 L 15 10.707031 L 17 8.7070312 L 15.5 7.2070312 L 19 3.7070312 L 18.292969 3 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 588 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-NegativeText { color: #da4453; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 18.292969 3 L 14.792969 6.5 L 13.292969 5 L 11.292969 7 L 9.5 8.7929688 L 11 10.292969 L 11.707031 11 L 13.207031 12.5 L 15 10.707031 L 17 8.7070312 L 15.5 7.2070312 L 19 3.7070312 L 18.292969 3 z M 8.7929688 9.5 L 8 10.292969 L 6 12.292969 L 7.5 13.792969 L 3 18.292969 L 3.7070312 19 L 8.2070312 14.5 L 9.7070312 16 L 11.707031 14 L 12.5 13.207031 L 11 11.707031 L 10.292969 11 L 8.7929688 9.5 z " class="ColorScheme-Text"/>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 14.833984 14 L 14 14.833984 L 15.666016 16.5 L 14 18.166016 L 14.833984 19 L 16.5 17.333984 L 18.166016 19 L 19 18.166016 L 17.333984 16.5 L 19 14.833984 L 18.166016 14 L 16.5 15.666016 L 14.833984 14 z " class="ColorScheme-NegativeText"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 710 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Accent { color: #3daee9; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 3 3 L 3 19 L 19 19 L 19 3 L 3 3 z M 4 7 L 18 7 L 18 18 L 4 18 L 4 7 z " class="ColorScheme-Text"/>
<path style="fill:#da4453;fill-opacity:1;stroke:none" d="M 8.7070312 9 L 8 9.7070312 L 10.292969 12 L 8 14.292969 L 8.7070312 15 L 11 12.707031 L 13.292969 15 L 14 14.292969 L 11.707031 12 L 14 9.7070312 L 13.292969 9 L 11 11.292969 L 8.7070312 9 z "/>
</svg>

After

Width:  |  Height:  |  Size: 698 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path class="ColorScheme-Text" d="m9.93907 8.0718026-0.999892 2e-7v3.2427472l-3.0355875-3.035587-0.707107 0.7071068 3.0355875 3.0355872h-3.2427475v0.999893h4.9497465v-0.292787z" fill="currentColor"/>
<path class="ColorScheme-Text" d="m3 3v16h8v-1h-7v-11h14v4h1v-8h-1zm9 9v4-1 5h8v-8h-3zm1 3h6v4h-6v-5z" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 581 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path class="ColorScheme-Text" d="M 5,12.949747 H 5.999892 V 9.707 L 9.03548,12.742587 9.7425869,12.03548 6.706999,8.999893 H 9.9497469 V 8 H 5 v 0.292787 z" fill="currentColor"/>
<path class="ColorScheme-Text" d="m3 3v16h8v-1h-7v-11h14v4h1v-8h-1zm9 9v4-1 5h8v-8h-3zm1 3h6v4h-6v-5z" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 561 B

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125" class="ColorScheme-Text"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 549 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
<g transform="translate(1,1)">
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 443 B

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 18.292969 3 L 14.792969 6.5 L 13.292969 5 L 11.292969 7 L 8 10.292969 L 6 12.292969 L 7.5 13.792969 L 3 18.292969 L 3.7070312 19 L 8.2070312 14.5 L 9.7070312 16 L 11.707031 14 L 15 10.707031 L 17 8.7070312 L 15.5 7.2070312 L 19 3.7070312 L 18.292969 3 z " class="ColorScheme-Text"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 615 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-NegativeText { color: #da4453; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 18.292969 3 L 14.792969 6.5 L 13.292969 5 L 11.292969 7 L 9.5 8.7929688 L 11 10.292969 L 11.707031 11 L 13.207031 12.5 L 15 10.707031 L 17 8.7070312 L 15.5 7.2070312 L 19 3.7070312 L 18.292969 3 z M 8.7929688 9.5 L 8 10.292969 L 6 12.292969 L 7.5 13.792969 L 3 18.292969 L 3.7070312 19 L 8.2070312 14.5 L 9.7070312 16 L 11.707031 14 L 12.5 13.207031 L 11 11.707031 L 10.292969 11 L 8.7929688 9.5 z " class="ColorScheme-Text"/>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 14.833984 14 L 14 14.833984 L 15.666016 16.5 L 14 18.166016 L 14.833984 19 L 16.5 17.333984 L 18.166016 19 L 19 18.166016 L 17.333984 16.5 L 19 14.833984 L 18.166016 14 L 16.5 15.666016 L 14.833984 14 z " class="ColorScheme-NegativeText"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z " class="ColorScheme-Text"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 774 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Accent { color: #3daee9; } .ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 3 3 L 3 19 L 19 19 L 19 3 L 3 3 z M 4 7 L 18 7 L 18 18 L 4 18 L 4 7 z " class="ColorScheme-Text"/>
<path style="fill:#da4453;fill-opacity:1;stroke:none" d="M 8.7070312 9 L 8 9.7070312 L 10.292969 12 L 8 14.292969 L 8.7070312 15 L 11 12.707031 L 13.292969 15 L 14 14.292969 L 11.707031 12 L 14 9.7070312 L 13.292969 9 L 11 11.292969 L 8.7070312 9 z "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 728 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24" width="24" height="24">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path class="ColorScheme-Text" d="m9.93907 8.0718026-0.999892 2e-7v3.2427472l-3.0355875-3.035587-0.707107 0.7071068 3.0355875 3.0355872h-3.2427475v0.999893h4.9497465v-0.292787z" fill="currentColor"/>
<path class="ColorScheme-Text" d="m3 3v16h8v-1h-7v-11h14v4h1v-8h-1zm9 9v4-1 5h8v-8h-3zm1 3h6v4h-6v-5z" fill="currentColor"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 597 B

Some files were not shown because too many files have changed in this diff Show More