2169 Commits

Author SHA1 Message Date
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
56f7a0d7b5 Release 1.23.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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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-07-23 09:27:06 -04:00
3b27fa5771 build: windows, do not deploy software opengl library 2025-07-21 15:59:24 +01:00
72ddcdb7f5 build: windows do not deploy dxil.dll or dxcompiler.dll 2025-07-21 15:59:24 +01:00
4a7d031bc6 build: windows deploy qt plugins in plugin folder 2025-07-21 15:59:24 +01:00
45fcdde636 build: Windows, run deploy tool only once, use install to install qt depends
Remove unneed . in Qt deploy message
2025-07-21 15:59:24 +01:00
9a799294f7 build: fail sooner on windows / mac if unable to find Qt deploy tool 2025-07-21 10:39:00 -04:00
46db468ede chore: use arrays to group files with same override info in REUSE.toml 2025-07-21 10:39:00 -04:00
28957a3fa8 build: generate vcpkg.json on windows
do not allow vcpkg.json to be added to the repo
provide a new option VCPKG_QT (default is OFF), to build Qt via vcpkg
2025-07-21 10:39:00 -04:00
2c55f4fe06 refactor: windows write daemon log in ProgramData\Deskflow
remove old log file on update
2025-07-21 12:41:46 +01:00
a4c82869a6 fix: split version info in new header
a new file src/lib/VersionInfo.h.in now holds our version info vars
fixes #8657
2025-07-21 12:06:01 +01:00
f33848f9b8 fix: setWindowIcon explicitly, fixes #8756 2025-07-21 11:10:19 +01:00
f497b6886a ci: use Qt 6.9.0 for x64 windows to avoid random build failures with 6.9.1 2025-07-19 10:52:43 -04:00
21d38ff444 Revert "ci: force ninja update on windows"
This reverts commit 28c690074c.
2025-07-18 10:51:50 -04:00
e828563190 chore: MainWindow, use system correct monospace font for log 2025-07-18 10:51:50 -04:00
c7873f2f81 refactor: DisplayInvalidExecption pass const ref to string 2025-07-17 18:47:50 +01:00
9f72b44d2a refactor: ClientApp indicate msg is unused in update status 2025-07-17 18:47:50 +01:00
8dcd9b0c01 refactor: ArgParser::assemble command use const ref std::string_view for ingoreArg 2025-07-17 18:47:50 +01:00
e436b41ab0 refactor: ArgParser::parsePlatformArgs remove unused argument isServer 2025-07-17 18:47:50 +01:00
c2eae36650 refactor: ArgParser, simplify arg parsing by combining duplicate checks into one 2025-07-17 18:47:50 +01:00
1079c22736 refactor: Settings use Static methods where possible internally 2025-07-17 18:47:50 +01:00
d69febe2dc refactor: Unicode, declare vars on seperate line as untions, using string_view for UCS2ToUTF8 input, remove redundant parentheses 2025-07-17 18:47:50 +01:00
c6a97c24a2 refactor: String, use std::ranges::lexicogriphical_compare to simplify CaselessCpm::less 2025-07-17 18:47:50 +01:00
d9ec93e7ee refactor: String, pass stringToSizeType a const ref of the string we are to get the size of 2025-07-17 18:47:50 +01:00
9db11a90eb refactor: TCPSocket, new protected methods to access m_readable, m_writable and m_connected, use them in place of direct access and make the variables private
TCPSocket, remove duplicate private and protected sections in header
2025-07-17 18:47:50 +01:00
c327c80d63 refector: TCPListenSocket, remove duplicate public in header, make m_mutex private 2025-07-17 18:47:50 +01:00
0884a267d1 refactor: App move m_suspended to the subclasses where its is used 2025-07-17 18:47:50 +01:00
d1b810baa5 refactor: use std::size to get size of arrays 2025-07-17 18:47:50 +01:00
6bf25c0089 fix: adjust windows installer images and their sizes, remove synergy background image from install fixes #8754 2025-07-17 18:27:02 +01:00
f4b561ac64 feat: windows/installer add option to run deskflow after install for silent installs fixes #8351
adjust installer background image to fit better in this case
2025-07-17 18:27:02 +01:00
28c690074c ci: force ninja update on windows 2025-07-17 18:27:02 +01:00
97c5a17e9d ci: use Qt 6.9.1 on windows 2025-07-17 12:06:15 +01:00
f51abad8cc feat: Wayland, only set a side to a border if if has a neighboring screen
move protocolTypes Direction enum to new base/DirectionTypes
use the direction info when calling
fixes #8572
fixes #8452
fixes #8605
fixes #8005
2025-07-14 10:31:50 +01:00
ae5ba4e51f chore: remove dev method PortalInputCapture::fakeEisFd 2025-07-14 10:31:50 +01:00
9413393057 refactor: anonymous enum in ServerConfig => ServerConfig::AddResults enum class 2025-07-11 03:06:24 -07:00
79b445373b refactor: FingerPrintDialog::FingerpringDialogMode now enum class 2025-07-11 03:06:24 -07:00
9beea1abfe refactor: anon enum in AddClientDialog to AddAction enum class 2025-07-11 03:06:24 -07:00
a88a67d47f refactor: ActionDialog::ActionType enum is now a struct 2025-07-11 03:06:24 -07:00
7fd9070a80 refactor: InputFilter::EFilterStatus => InputFilter::FilterStatus enum class 2025-07-11 03:06:24 -07:00
e37cea2d6b refactor: replace anon Enum in XWindowsKeyState with static vars 2025-07-11 03:06:24 -07:00
181d862838 refactor EiEventQueue remove anon enum for a few static members 2025-07-11 03:06:24 -07:00
6ca980e3e5 refactor: XSocket::EError => XSocket::SocketError enum class 2025-07-11 03:06:24 -07:00
94be5f7498 refactor: TCPSocket::EJobResult => enum class TCPSocket::JobResult 2025-07-11 03:06:24 -07:00
32e6a84a6f chore: remove unused anon enum in SecureSocket 2025-07-11 03:06:24 -07:00
b9964b5e90 refactor: remove anon enum in IKeyState and replace with static s_numButtons 2025-07-11 03:06:24 -07:00
422b4c3a23 refactor ClientArgs ClientScrollDirection to enum class use Members Normal and Inverted for names 2025-07-11 03:06:24 -07:00
05e32497d1 refactor: ArgsBase::Type => ArgsBase::ClassType class enum 2025-07-11 03:06:24 -07:00
9905f32738 refactor: Common.h replace anon enum with set constexpr exit codes 2025-07-11 03:06:24 -07:00
29e9b8ae3b refactor: ServerProxy::EResult => ServerProxy::ConnectionResult enum class 2025-07-11 03:06:24 -07:00
fe3c41f857 refactor: remove Unneed enum for LogOutputters and use a constexp instead 2025-07-11 03:06:24 -07:00
3ececbcfd9 refactor: Event anon enum => EventFlags struct 2025-07-11 03:06:24 -07:00
c12aa4c6e9 refactor: Make IEventQueueBuffer Types an enum class, use proper names rename kNone => Unknown to reflect its unknowns an unknown type of event 2025-07-11 03:06:24 -07:00
fc58688bb0 refactor: replace throw() with noexcept in cases where execeptions are not possible 2025-07-11 03:06:24 -07:00
77bdde5434 refactor: Elevel => LogLevel enum class, use proper names for items in the class 2025-07-11 03:06:24 -07:00
3472ff6ce5 chore: ArchNetworkBSD, use std::ignore in place of unused int 2025-07-11 03:06:24 -07:00
082d27a88c ci :remove EOL fedora 40 builds 2025-07-09 09:59:54 +01:00
2d3105206d fix: save geometry not frameGeometry on exit
fixes #8741
2025-07-09 09:32:39 +01:00
c6778dc9be refactor: use more if and switch init-statements 2025-07-07 17:53:56 +01:00
36e985d8ab chore: add missing default for switches 2025-07-07 17:53:56 +01:00
865365b2fa chore: add noreturn to more methods 2025-07-07 17:53:56 +01:00
8a83f68ff0 chore: remove unused < operator for Timer class 2025-07-07 17:53:56 +01:00
245fa815d2 refactor: Server::onMouseMousePrimary, use std array for horizontal and vertical direction array 2025-07-07 17:53:56 +01:00
f12f312dab refactor: ProtocolTypes EDirection => enum class Direction 2025-07-07 17:53:56 +01:00
dded2e3711 refactor: ProtocolTypes EDirectionMask => enum class DirectionMask 2025-07-07 17:53:56 +01:00
d71d4eaf07 refactor: ProtocolTypes EDataTransfer => struct ProtocolTypes::ChunkType 2025-07-07 17:53:56 +01:00
bc9f47c957 refactor: ProtocolTypes EDataReceived => enum class ProtocolTypes::TransferState 2025-07-07 17:53:56 +01:00
0ea2576032 refactor: XWindowsEventQueueBuffer, use static const for timeoutd delay 2025-07-07 17:53:56 +01:00
0100cb796e chore: SecureSocket remove unused MAX_ERROR_SIZE define , rename MAX_INPUT_BUFFER_SIZE static to confirm to naming convention 2025-07-07 17:53:56 +01:00
8ec40dd74b refactor: ClipboardChunk Replace CLIPBOARD_CHUNK_META_SIZE define with constexpr 2025-07-07 17:53:56 +01:00
4034d15fb3 refactor: ClientApp Replace RETRY_TIME define with constexpr 2025-07-07 17:53:56 +01:00
1a9f8d5cdc refactor: app Replace options defines as constexpr use more sane names 2025-07-07 17:53:56 +01:00
66ddaca410 refactor: PriorityQueue::Swap make noexcept 2025-07-07 17:53:56 +01:00
2c2a5c0269 refactor: Make KeyMake::Swap noexcept 2025-07-07 17:53:56 +01:00
e42d3b45b6 refactor: SocketMultiplexer, do not create nested pointer in new Thread call 2025-07-07 17:53:56 +01:00
5aa9b1bfd4 refactor: PortalRemoteDesktop, do not create nested pointer in new Thread call 2025-07-07 17:53:56 +01:00
cfbfa88cdc refactor: PortalInputCapture: do not create nested pointer in new Thread call 2025-07-07 17:53:56 +01:00
4a92a3295b refactor: ScreenSettingsDialog, do not create nested validators in the Lines setValidator method 2025-07-07 17:53:56 +01:00
ede27975d7 chore: clean up remaing sonar warnings to use in class intializers where possible 2025-07-07 17:53:56 +01:00
a175c293f6 chore: comment empty methods that do nothing 2025-07-07 17:53:56 +01:00
b39b133c9d build: WixPackage, set a proper CPACK_WIX_ARCHITECTURE 2025-07-05 09:39:48 -07:00
5976da7e5b chore: fix W:useless-whatis-entry lintian warnings
By default, help2man generates "manual page for foobar" for
manual files.

It is useless because there is no addtional information which
explains what deskflow is.

With --name option, .SH NAME section will be set correctly.

Before:

  .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
  .TH DESKFLOW-CLIENT "1" "June 2025" "deskflow-client v1.22.0.109, protocol v1.8" "User Commands"
  .SH NAME
  deskflow-client \- manual page for deskflow-client v1.22.0.109, protocol v1.8
  .SH SYNOPSIS
  .B deskflow-client
  [\fI\,OPTIONS\/\fR]
  .SH DESCRIPTION

After:

  .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
  .TH DESKFLOW-CLIENT "1" "July 2025" "deskflow-client v1.22.0.109, protocol v1.8" "User Commands"
  .SH NAME
  deskflow-client \- Keyboard and mouse sharing utility (Client)
  .SH SYNOPSIS
  .B deskflow-client
  [\fI\,OPTIONS\/\fR]
  .SH DESCRIPTION

Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
2025-07-03 13:23:15 +00:00
7fe50748f3 refactor: ServerApp use if in places of multi ternary ops for readablitly 2025-07-03 03:24:16 +00:00
0474e10b03 chore: Arch::time explictly convert to double on return 2025-07-03 03:24:16 +00:00
2421a8b725 refactor: Make throwError and throwNameError members of IArchNetwork
make throwError and throwNameError noreturn
          remove unused extra private section in IArchNetwork subclasses
2025-07-03 03:24:16 +00:00
ab4fbd1c85 refactor: use using enum EventTypes when possible to reduce verbosity 2025-07-03 03:24:16 +00:00
8f6f014bcd refactor: IArchNetwork turn anonymous enum into PollEventMask struct with set of static values 2025-07-03 03:24:16 +00:00
47d44db497 refactor: make EStreamType enum Class StreamType, and conform members to naming conventions 2025-07-03 03:24:16 +00:00
879283f46f refactor: Make IArchNetwork::EAddressFamily enum class IArchNetwork::AddressFamily
confirm AddressFamily items to naming convention
2025-07-03 03:24:16 +00:00
cbbfd495e3 refactor: make ESignal an enum Class IArchMultiThread::ThreadSignal, conform ThreadSignal items to naming conventions 2025-07-03 03:24:16 +00:00
1692bec7e6 ci: skip CoreProcessTest for windows arm, broken on ci 2025-07-03 02:59:51 +00:00
f9f12a9500 ci: Attempt to release both x64 and arm64 builds for winget 2025-07-03 02:59:51 +00:00
2b38fe6f91 ci: Add Windows Arm builds 2025-07-03 02:59:51 +00:00
1479a50af5 chore: fix typo in metainfo.xml
This typo breaks AppStream metadata parsing in downstream. Let's fix it
2025-07-01 13:19:00 +00:00
4c2b9eb9e4 chore: remove unused XScreenInputFailure 2025-06-30 20:55:06 +01:00
872db8910e chore: remove unused XSubscription class 2025-06-30 20:55:06 +01:00
e06b6b0be4 refactor: XSocket, new XSocketWithWhat subclass used to reduce duplication in XSocket subclasses that have a common with method 2025-06-30 20:55:06 +01:00
a04572a8c2 docs: remove sonar warning about // in comments, within ProtocolTypes.h 2025-06-30 20:55:06 +01:00
5d434d9857 docs: update DOT_MAX_NODES to 100 for Log.h node generation 2025-06-30 20:55:06 +01:00
958e14cb13 refactor: remove XBASE related macros, fixes #8723 2025-06-30 20:55:06 +01:00
7116ddac86 docs: remove checkboxes for client impl list 2025-06-30 20:55:06 +01:00
5d594dd6be move even-loop return to the left 2025-06-27 10:40:42 +01:00
f784705a7e docs: fix missing refs warnings
EXTRACT_STATIC
flag 2 private methods
2025-06-27 10:40:42 +01:00
22b1e8e543 docs: fix broken link to 'Protocol Reference'
Also fixes duplicate sidenav entries for 'Contributing'
2025-06-26 11:19:41 +01:00
cf9e2ecf49 refactor: simplify setting the fallback theme search path, does require sub dirs but we should only need the theme root
refactor: set the Icon theme in deskflow-gui insetead of MainWindow
2025-06-26 09:50:53 +01:00
cb508f5c3a chore: Remove DRAG_AND_DROP left over define 2025-06-25 16:16:13 +01:00
26cc85e878 add protocol developer documentation 2025-06-25 15:42:16 +01:00
776b02aafc ci: ensure run tests fails if eitehr tests outcome not success' 2025-06-23 11:29:17 +01:00
42cd01efd7 refactor: PortalInputCapture, fix a missed non compliant variable names
refactor: PortalInputCapture, more const args
2025-06-20 18:10:40 +01:00
a7a54ad8a7 refactor: PortalInputCapture use std::map to hold signals and enum class as the key
fixes: InputCapturePortal crash in debug builds
2025-06-20 18:10:40 +01:00
20bc88eb1f refactor: PortalInputCapture sonar adjustments 2025-06-20 12:41:34 +01:00
969b642e0b refactor: EiScreen sonar adjustments 2025-06-20 12:41:34 +01:00
a89f3b6892 refactor: conform EiScreen to code standards
fixes #8700
2025-06-20 12:41:34 +01:00
a973d4277c refactor: conform PortalInputCapture to coding standards 2025-06-20 12:41:34 +01:00
b8124107aa refactor: conform EiKeyState to coding standards 2025-06-20 12:41:34 +01:00
0691d586e7 refactor: conform EiEventQueueBuffer to coding standards 2025-06-20 12:41:34 +01:00
e8c85611a0 refactor: conform PortalRemoteDesktop to naming standards
remove unused method and includes
2025-06-20 12:41:34 +01:00
0321b2d36e chore: ArchNetworkBSD:Deps use make_shared now that we dont build on ubuntu 22 anymore 2025-06-20 09:39:26 +01:00
f4a49749c7 chore: remove todo in places where its done or just a note 2025-06-20 09:39:26 +01:00
59ed15628e refactor: remove redundant access specifiers 2025-06-20 09:39:26 +01:00
dddb6aadf1 refactor: Settings remove const for return by vaule 2025-06-20 09:39:26 +01:00
2110411c6d refactor: remove redundant cast 2025-06-20 09:39:26 +01:00
b29c5b1bb2 refactor: use contains to find if an item is in a container 2025-06-20 09:39:26 +01:00
07a217f54f refactor: concatenate Namespaces 2025-06-20 09:39:26 +01:00
aacf922319 refactor: remove names for unused handle function args 2025-06-20 09:39:26 +01:00
a80e255bb0 refactor: Add a few missing overrides
make ~XThreadExit() override
 make ~ArchString() overide
 make ~ArchNetworkBDS() overide
2025-06-20 09:39:26 +01:00
6299f04b59 refactor: make TlsUtility::generatateCertificate and TlsUtility::persistCertificate const 2025-06-20 09:39:26 +01:00
97006889bd refactor: ServerConnection::handleLogLine use referance to avoid unneeded copy 2025-06-20 09:39:26 +01:00
f0bb4e5cb3 refactor: make ServerApp::HandleScreenSwitch, Also does not use the Event * so removing it from the methods arguments 2025-06-20 09:39:26 +01:00
dcb047b6c5 refactor: make ClientApp::handleClientConnected const 2025-06-20 09:39:26 +01:00
551368a2d2 refactor: AboutDialog, Remove lambda for btnClose and connect directly to AboutDialog::close 2025-06-19 12:19:08 -07:00
4d738b4784 refactor: App use Uniqueprt for SocketMultiplexer
basedon: 8dd6bc2c55
2025-06-19 19:13:24 +01:00
06a616ef42 refactor: secureSocket uniqueprt for Ssl object
based on: 89d8ce20b0
2025-06-19 19:13:24 +01:00
90a651b409 refactor: server use std::unique_ptr for socketFactory
based on ff7f23e79d
2025-06-19 19:13:24 +01:00
dbc7aebfbc refactor: free SecureSocket cert after use 2025-06-19 18:56:14 +01:00
024436d82f refactor: Improve display of names on about screen with nbsp 2025-06-19 05:39:52 -07:00
b6bc469744 chore: adjust the about dialog default size 2025-06-19 09:54:37 +01:00
c4e47c0f2c chore: add main barrier/input-leap dev to our important devs list 2025-06-19 09:54:37 +01:00
3d712d5621 fix: typo in configuration.md 2025-06-19 09:36:57 +01:00
4e2ad25fc1 fix: Error text is not shown for Qt CLI parser 2025-06-18 13:49:44 +01:00
66e201c8ef chore: remove handle* methods that are a single oneline forward and use the line directly 2025-06-18 13:17:16 +01:00
3a35b183d3 refactor: use std::function for Event callback
based on 6d347337c3
2025-06-18 13:17:16 +01:00
c15214aee7 refactor: use std::scoped_lock inplace of std::lock_guard 2025-06-17 10:23:42 +01:00
5fd4d93f7f refactor: replace ARCH->sleep(...) calls with Arch::sleep(...) 2025-06-17 10:23:42 +01:00
84e289bc30 refactor: replace ARCH->time() with Arch::time() 2025-06-17 10:23:42 +01:00
04943fad79 feat: Enforce a minimum TLS size of 2048bit 2025-06-16 05:02:33 -07:00
a7c1dc4520 chore: Remove 1024 TLS key length option 2025-06-16 05:02:33 -07:00
a73e8df01e feat: improve connections status bar info 2025-06-16 10:35:20 +01:00
0d6837a948 chore: add short options for h for help and v for version in deskflow-gui 2025-06-16 10:13:39 +01:00
ed99306417 chore: refresh metainfo.xml
This adds URLs to the Wiki FAQ, Contributing Section, Source Code etc.
2025-06-15 05:18:02 -07:00
782702fe74 refactor: use std::mutex in platform/XWindowsEventQueue 2025-06-14 09:37:48 +01:00
5686d24626 refactor: use std::mutex in net/TCPListenSocket 2025-06-14 09:37:48 +01:00
818d588b65 refactor: use std::mutex in deskflow/PacketStreamFilter 2025-06-14 09:37:48 +01:00
86e109baf5 refactor: use std::mutex in ArchNetworkWinSock 2025-06-14 09:37:48 +01:00
fa1ee0690e refactor: use std::mutex in ArchNetworkBSD 2025-06-14 09:37:48 +01:00
d535593d1d refactor: use std::mutex in ArchMutithreadWindows 2025-06-14 09:37:48 +01:00
f89168d00a refactor: use std::mutex in ArchStrings
port b0e415de03
build: link base to arch
2025-06-14 09:37:48 +01:00
fb3c8eb965 refactor: use std::mutex in Log
port d9d39040ae
2025-06-14 09:37:48 +01:00
e247f3813a refactor: use std::mutex in EventQueue
port 9df4741748
2025-06-14 09:37:48 +01:00
f4618ee085 refactor: use std::mutex in place of ArchMutex in AtchMultiThreadPosix
port f71c68506e
2025-06-14 09:37:48 +01:00
5430625a7e refactor: handle read and write on tcpsocket at the same time
port 94f8336af5
2025-06-14 08:44:21 +01:00
eac59768ea build: remove HAVE_SYS_SOCKET define should be present on all unix systems 2025-06-14 08:22:55 +01:00
cb05ece6b6 build: remove HAVE_PTHREAD define as its required on unix 2025-06-14 08:22:55 +01:00
044c9b24f3 build: remove HAVE_SOCKLEN_T forced define 2025-06-14 08:22:55 +01:00
a3fe66f213 build: remove HAVE_PTHREAD_SIGNAL define it was forced on 2025-06-14 08:22:55 +01:00
60a148ce68 build: remove HAVE_DPMS_PROTOTYPES, Single use and assumed due to another var being set 2025-06-14 08:22:55 +01:00
da5a2088c8 build: remove unset X_DISPLAY_MISSING checks 2025-06-14 08:22:55 +01:00
89abcfb238 build: remove never set HAVE_SYS_TYPES 2025-06-14 08:22:55 +01:00
87704fedb1 build: unistd.h is manditory on unix platforms 2025-06-14 08:22:55 +01:00
3eef21c8df chore: remove pointless SYS_TIME if defs one is set true and the other never used just include the libs
chore: remove TIME_WITH_SYS_TIME set to 1 and used once as include guard
2025-06-14 08:22:55 +01:00
6fbb60a3c2 chore: remove unused StopWatch Includes 2025-06-14 08:22:55 +01:00
a5522729aa refactor: Unify ArchTime classes into one method
Idea from https://github.com/input-leap/input-leap/pull/1464'
2025-06-14 08:22:55 +01:00
36b4bb09bc refactor: Unify ArchSleepClasses into one method
idea from https://github.com/input-leap/input-leap/pull/1462
2025-06-14 08:22:55 +01:00
8170dd4e99 chore use std::getenv Not c style getenv
idea from: https://github.com/debauchee/barrier/pull/847/
2025-06-12 22:27:16 +01:00
c2a658256e feat: remove defunct --no-xinitThreads option
based on https://github.com/input-leap/input-leap/pull/1503
2025-06-12 22:07:40 +01:00
bc350852e7 refactor: remove anon namespace before ServerConfig::addToFirstEmptyGrid 2025-06-11 09:19:07 +01:00
898629f824 docs: Re-introduce chat links to grow community 2025-06-10 17:55:29 +01:00
7b437b8d35 ci: allow arch runner to deloy pages 2025-06-10 02:20:09 +01:00
03b062c96e docs: add development docs 2025-06-10 02:20:09 +01:00
6c5d08ba7f chore: move user based documentation into doc/user folder 2025-06-10 02:20:09 +01:00
b77d722577 chore: remove DESKFLOW_RESET_ALL from configuration documentation 2025-06-10 02:20:09 +01:00
bd8e2c5335 ci: use johnwason/vcpkg-action@v7 for vcpkg action 2025-06-09 17:18:05 -07:00
13c993c798 ci: downgrade Qt for windows to 6.8.3 to avoid random windows ci failures 2025-06-09 17:18:05 -07:00
7e568121ee chore: remove unneeded QGuiApplication, QApplication and or QCoreApplication includes 2025-06-09 17:18:05 -07:00
115ee2b8af chore: correct appstream license to gpl2.0 NOT gpl2.0+ 2025-06-09 14:20:30 -07:00
3e4a085bc1 ci: bump Qt for windows / mac builds to 6.9.1 2025-06-09 17:27:10 +01:00
0ce5c2de9a ci: remove unused qt-install-dir var 2025-06-09 17:27:10 +01:00
ffce22f5a9 chore: update readme logo to theme aware 2025-06-09 09:10:10 -07:00
e40cc11fd5 refactor: messages::showDaemonOffline enable translations 2025-06-09 16:33:27 +01:00
ebec6331cd refactor: messages::showUpdateCheckOption enable translation 2025-06-09 16:33:27 +01:00
197b9ed886 refactor: message::showWaylandLibaryError, use name in the title and enable translations 2025-06-09 16:33:27 +01:00
8f7fbc0a21 refactor: messages::showReadOnlySettings, use name in title, enable translations 2025-06-09 16:33:27 +01:00
0f5a04825a refactor: Message::showClearSettings, enable translations and simplify method 2025-06-09 16:33:27 +01:00
b8835a8a5a refactor: Messages::showClientConnectError
slight reword for Already Connected error
 use QString::append to add to the message
 create a QMessageBox::warning style box for these errors
 enable translations
2025-06-09 16:33:27 +01:00
8bb6056469 refactor: Messages::showNewClientPrompt enable translations 2025-06-09 16:33:27 +01:00
3adcb64f57 refactor: Messages::showFirstConnectedMessage
add the app name into the title
      use QString::append to add to the string
      enable translations
2025-06-09 16:33:27 +01:00
bc9b1d1178 refactor: Messages::showFirstServerStartMessage
add app name to dialog title
    enable translations
2025-06-09 16:33:27 +01:00
e038dd2b0b chore: message::fileLine use QStringLiteral, multi-arg 2025-06-09 16:33:27 +01:00
1286c18e1d refactor: messages::showCloseReminder
use app name for title
   create message using append
   enable translations
2025-06-09 16:33:27 +01:00
5d94dd0dbf refactor: messages::showErrorDialog, use app name in title
construct QString without concat
return aftershowing fatal error dialog
Enable Translation for user facing strings
2025-06-09 16:33:27 +01:00
b3e03f2856 chore: messages, remove unneeded includes 2025-06-09 16:33:27 +01:00
b62e82e792 refactor: MainWindow, convert btnSaveServerConfig to QPushButton set the icons size 22x22 only when not on macos, make sure the button is square on macos 2025-06-05 21:20:10 +01:00
7837bf416e refactor: Mainwindow, rename btnApplySettings to btnRestartCore to better reflect what it does 2025-06-05 21:00:42 +01:00
d4d6cbb7fb feat: add restart action fixes #8542 2025-06-05 21:00:42 +01:00
d5910d77ec fix: core not starting if gui started minimized, remove firstShown and use open instead
fixes #8641
2025-06-03 17:28:48 +01:00
d01a023a8b chore: ApputilsUnix, remove unneeded includes 2025-06-02 14:28:51 -07:00
d246d9527a Feat: Define QT_NO_KEYWORDS, allowing us to use Qt in more places
must use Q_SIGNALS, Q_SLOTS and Q_EMIT in place of signals, slots and emit macros
2025-06-02 14:28:51 -07:00
a31cff0225 chore: Cleanup windows includes 2025-06-02 21:55:36 +01:00
da06e97521 build: remove unused platform/MSWindowsUtils 2025-06-02 21:55:36 +01:00
7e4d43f1cc fix: (ui), ServerConfigDialog enable spinboxes and controls that depend on another option being enabled example being the heatbeat spinbox if heatbeat is enabled 2025-06-02 20:31:18 +01:00
0096283779 chore: release 1.22.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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / windows-2022-x64 (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-05-29 06:27:33 -07:00
0751639f93 ci (flatpaK): bump to kde platform 6.9 2025-05-28 19:22:13 +01:00
d719df1642 ci: flatpak to use libei 1.4.1 2025-05-28 19:22:13 +01:00
7abaca76af chore: update CLI11 to v2.5.0 2025-05-28 19:22:13 +01:00
5ee3fc41bd chore: arch: Remove XArch exception class
XArch no longer contains any extra functionality in addition to what
std::runtime_error nor it signifies a particular type of error.
based-on: 5b991692af
ported-by: sithlord48
2025-05-28 14:00:18 +01:00
cab1eb9cee chore: arch: Derive XThread from std::exception
This is needed because by convention exceptions must derive from at
least std::exception.
ported from: 22aec16dc7
ported-by sithlord48
2025-05-28 14:00:18 +01:00
51db919d8f chore: arch, remove XARCH_SUBCLASS Macro
ported from: 1f3cd0dab3
ported-by sithlord48
2025-05-28 14:00:18 +01:00
314899ac7d chore: arch, Remove support for lazy error code to string evaluations
This functionality is not needed because in all code paths the error
code is immediately converted to string without actually using the lazy
evaluation functionality.

based-on: 53dff5b803
ported and expanded by sithlord48
2025-05-28 14:00:18 +01:00
632c3462ec fix: avoid leaking build paths in manpages 2025-05-28 05:46:27 -07:00
d6f8cdf51d build: Wix installer use set BUILD_ARCHITECTURE in reg key where to look for msvc redist version installed 2025-05-28 10:53:33 +01:00
59173d6405 build: add qt6-svg to arch package depends
ci: install qt6-svg when building on arch
2025-05-28 10:42:18 +01:00
d597d023b1 chore: use std::unique_ptr for eventQueueHandlers
ports input-leap/5044b79a4f98ea5da0b8cbe950123f061d4c1c5f
ported-by sithlord48
2025-05-28 09:54:04 +01:00
807e60ded2 chore: use std::unique_prt for EventQueue's Buffer
port input-leap/9dbfd551cda4367bdc8067b5c3ca9c4027494503
ported-by sithlord48
2025-05-28 09:54:04 +01:00
0b4a2e0e5b chore: use std::unique_ptr for IDataSocket
port-of input-leap/836e08b0642ad158ecedc44e59a3bd3c61b56141
ported-by sithlord48
2025-05-28 09:54:04 +01:00
9eabbb690c chore: MSWindows only items initilize members in header 2025-05-28 09:42:08 +01:00
3eb3969a01 chore: use final for overrides and remove virtual for non base classes 2025-05-28 09:42:08 +01:00
d2ac36f3ed chore: make more const methods 2025-05-28 09:42:08 +01:00
e6a374369b chore: use const for more local ref and pointer vars 2025-05-28 09:42:08 +01:00
9c56fa5dda chore: Combine unnessessary multi level if into less fewer checks 2025-05-28 09:42:08 +01:00
6875969255 chore: static_cast to replace reinterpret_cast where possible 2025-05-28 09:42:08 +01:00
aa1eaf601c chore: SecureUtils, do not use final for stringVar name 2025-05-28 09:42:08 +01:00
f77213af04 chore: ActionDialog, remove empty statement 2025-05-28 09:42:08 +01:00
a4f1a382d3 chore: use ranged for in ClientListener::cleanupClientSockets 2025-05-23 10:19:11 -07:00
647201cd37 refactor: server/Config to the variable initializer and condition part of the for loop when checking for a valid screen name 2025-05-23 10:19:11 -07:00
e24b1c4b68 chore: use a const Ref for ServerConnection client name check 2025-05-23 10:19:11 -07:00
475b895755 chore: initialize class vars using the order class define, initilizer list, constructor 2025-05-23 10:19:11 -07:00
593e53370a chore: rename a missed namespace from synergy::gui => deskflow::gui 2025-05-23 10:19:11 -07:00
be6a4f6b4d chore: ScreenSettingsDialog rename ui_ => ui 2025-05-23 10:19:11 -07:00
929131d10b refactor: Log Error stop the core process if unable to write to the required fingerprint database 2025-05-23 18:08:41 +01:00
767919b342 refactor: consolidate IArchString subclasses into ArchString 2025-05-23 17:58:36 +01:00
4224215991 chore: make IArchString::EWideCharEncoding a enum class 2025-05-23 17:58:36 +01:00
45090d6b85 chore: IArchString clean up remaing code smells 2025-05-23 17:58:36 +01:00
476f3ba243 refactor: remove Ifdef around iso_level5 2025-05-23 17:19:55 +01:00
a33574e1bd chore: use more ranged for loops 2025-05-22 20:46:41 +01:00
456afaa13e chore: use emplace_back where possible 2025-05-22 20:46:41 +01:00
17f12d8334 chore: ClientApp remove unused restartRetryTimer and nextRetryTimer, use RETRY_TIME directly in ClientApp instead 2025-05-22 20:46:41 +01:00
723671c2e5 chore: remove // from inside comment blocks 2025-05-22 20:46:41 +01:00
5a90b51e97 chore: use string_view in place of string where possible 2025-05-22 20:46:41 +01:00
fe12972e83 chore: use const pointer / ref where possible 2025-05-22 20:46:41 +01:00
9bdb4252e5 chore: remove goto in EventQueue, instead use a private processEvent method 2025-05-22 20:46:41 +01:00
c73729e72e chore: static number number of priorities 2025-05-22 20:46:41 +01:00
04805d9a7e chore: mark explicit methods 2025-05-22 20:46:41 +01:00
293c5e394c fix: broken link "built it" in README 2025-05-22 09:53:48 -07:00
3cf0fb89ef chore: add comment to empty methods 2025-05-20 16:20:07 +01:00
52b0c1f061 chore: use auto or (const auto) where possible 2025-05-20 16:20:07 +01:00
c224cd4661 chore: declare const methods recommened by sonar 2025-05-20 16:20:07 +01:00
635962618f chore: define only one variable per line 2025-05-20 16:20:07 +01:00
0ff72441e6 chore: use c++17 style if,switch init-initilizer where possible
chore: correct spelling of "colon" in NetworkAddresses variables
chore: correct some multi line defines near needed init-initilizers
2025-05-20 16:20:07 +01:00
bdffda9a2f chore: replace typedef with using 2025-05-20 16:20:07 +01:00
cac63937ff chore: cleansmells in ArchDaemon 2025-05-20 16:20:07 +01:00
12fbc2fd57 ci: do not run the Install Depends step of the Install Dependencies action on windows since it does nothing anyway 2025-05-20 15:01:18 +01:00
06324a941a ci: do not install ninja or cmake for mac os runners, they are now part of the runner 2025-05-20 15:01:18 +01:00
8dd9e17e72 ci: remove install ninja action ninja is included on the runner 2025-05-20 15:01:18 +01:00
a5e5bbc2e4 fix: race case if first run message is up and a client connects 2025-05-20 12:12:54 +01:00
34f6186941 fix: Disable the save button when config not writable 2025-05-19 22:10:41 +01:00
486b5a491f chore: LogOutputers add comments to empty overrides 2025-05-19 21:48:27 +01:00
037fee0e59 refactor: remove archConsole use its only implemented method directly in logOutputters 2025-05-19 21:48:27 +01:00
a9e0c62c24 refactor: link mt to base 2025-05-19 21:35:08 +01:00
43a51434ce chore: remove unused MinimalApp Class 2025-05-19 21:35:08 +01:00
eaa4c71d6e fix: Show first server start message only in server mode 2025-05-15 17:40:17 +01:00
393a006773 fix settings modifiers initilization, move initization to header
fixes: #8587
2025-05-15 17:25:08 +01:00
332e6c4a4d refactor: do not write sha1 to localdb and no longer send sha1 as part of comparison 2025-05-15 15:46:16 +01:00
63e87c16d1 refactor: port ServerAppTests to QtTests 2025-05-14 19:41:22 +01:00
14cb921d4c Resolve deprecated-enum-float-conversion compiler warnings
- Observed on macOS Monterey 12.7.6 with cmake version 4.0.1, Homebrew clang version 20.1.4, Target: x86_64-apple-darwin21.6.0
2025-05-14 11:05:41 -04:00
de583145d0 chore: remove unused deskflow::string methods toHex, fromHex, uppercase, fromHexChar 2025-05-13 11:32:02 -04:00
0309d35aef feat: port fingerprint info into Qt
mv FingerprintData -> Fingerprint
2025-05-13 11:32:02 -04:00
c4704649ea refactor: make sure settings dialog pushes all options to the top 2025-05-13 15:48:33 +01:00
e4e332c13f chore: simplify test includes 2025-05-12 13:48:21 +01:00
33edb6ce01 refactor: simplify wayland warnings remove waylandwarnigns dialog test 2025-05-12 13:48:21 +01:00
49173b11b9 ci: enable coverage for Qt Tests 2025-05-12 13:48:21 +01:00
81392fe758 build: move old tests to unittests/legacytests 2025-05-12 13:48:21 +01:00
3ae2b3a571 build: rename old tests binary to legacytests
ci: run-tests action, split legacy and new unit tests into two steps
2025-05-12 13:48:21 +01:00
2aee6d8812 build: correct language manager test binary name 2025-05-12 13:48:21 +01:00
db3b18b36d build: Add new SKIP_BUILD_TESTS option to allow the build time test to be skipped and run later on
ci: run and check Qt Tests post build
2025-05-12 13:48:21 +01:00
89c199b630 build: leave Qt Tests in place do not move them to CMAKE_BUILD_DIR/bin 2025-05-12 13:48:21 +01:00
d023c8ef77 ci: sync depends of arch package template to those used on arch 2025-05-09 07:40:38 -04:00
af383decca chore: Type fixes / Const correctness 2025-05-09 12:27:56 +01:00
8526facbe9 refactor: Fixes, Use enum instead of cast to int 2025-05-09 12:27:56 +01:00
2b3ecd39c6 refactor: ScreenCorners, Use enum instead of cast to int 2025-05-09 12:27:56 +01:00
49589ae4aa refactor, Modifiers, Use enum instead of cast to int 2025-05-09 12:27:56 +01:00
8ce6a07d18 refactor: Simplify Mainwindow, autoAddScreen also Removes warning 2025-05-09 12:27:56 +01:00
a8eb772b68 chore: Mainwindow, Send const-ref 2025-05-09 12:27:56 +01:00
0916009601 chore: Add nodiscard to methods 2025-05-09 12:27:56 +01:00
f5cb636b31 chore: MainWindow, Remove unimplemented methods 2025-05-09 12:27:56 +01:00
7ced794317 refactor: Screen, Mark methods as no discard, remove uneeded method 2025-05-09 12:27:56 +01:00
7c279ec72d refactor: No else after return 2025-05-09 12:27:56 +01:00
83a8d1c4ac refactor: Screen, simplify init call 2025-05-09 12:27:56 +01:00
84a9367124 refactor: Screen, remove uneeded constructor 2025-05-09 12:27:56 +01:00
aaeef7905a refactor: Initialize value on constructor 2025-05-09 12:27:56 +01:00
a0d0936433 refactor: Use smaller integers on enums
We do not have > 255 values here.
2025-05-09 12:27:56 +01:00
8f53b88bb6 chore: remove unused tests
Remove Unused Mocks
Remove remaing uses of TEST_ENV and its guarded items
2025-05-08 15:26:44 +01:00
d8b4fab9a3 refactor: move OSXKeyStateTest => QtTests 2025-05-08 15:26:44 +01:00
9d867f6146 refactor: port deskflow/keyMapTest to QtTests
remove TEST_ENV items from KeyMap
KeyMap and KeyMapTests are friends
2025-05-08 15:26:44 +01:00
632be4b240 refactor: port gui/ScreenTest to QtTests
remove TEST_ENV items from Screen
2025-05-08 15:26:44 +01:00
b8c6d1b58f refactor: port OSXClipboardTests to QtTests 2025-05-08 15:26:44 +01:00
139dbf61f3 refactor: remove broken OSXScreenTest 2025-05-08 15:26:44 +01:00
e512125595 refactor: port net/SecureUtilsTest to QtTests 2025-05-08 15:26:44 +01:00
ae37543a37 refactor: port gui/LoggerTests to QtTests 2025-05-08 15:26:44 +01:00
8a80c52208 refactor: port net/FingerprintDatabaseTest to QtTests 2025-05-08 15:26:44 +01:00
38dc845c72 refactor: port serverConfigTests to QtTests
remove TEST_ENV items from server/Config
2025-05-08 15:26:44 +01:00
b56a282a9c refactor: port ServerTests to QtTests
remove TEST_ENV items from Server
2025-05-08 15:26:44 +01:00
d742901775 refactor: port XWindowsClipboardTests to QtTests 2025-05-08 15:26:44 +01:00
287d70a138 refactor: port IKeyStateTest to QtTests 2025-05-08 15:26:44 +01:00
6c0843d088 refactor: port ClipboardTests to QtTests 2025-05-08 15:26:44 +01:00
cbcaafe764 refactor: port deskflow/ClipboardChunkTests to QtTests 2025-05-08 15:26:44 +01:00
29a86cfbac refactor: port GenericArgsTests to QtTests 2025-05-08 15:26:44 +01:00
d7506697c8 refactor: port ServerArgsTests to QtTests 2025-05-08 15:26:44 +01:00
6c2457d60b refactor: port ClientArgsTests to QtTests 2025-05-08 15:26:44 +01:00
30d9034a0f refactor: port DeprecatedArgsTests to QtTests 2025-05-08 15:26:44 +01:00
a2acfb0678 refactor: port ArgParserTests to QtTests 2025-05-08 15:26:44 +01:00
7fa326234e refactor: port X11LayoutParserTests to QtTests 2025-05-08 15:26:44 +01:00
baaa02cda2 refactor: port deskflow/LanguageMangerTests to QtTests 2025-05-08 15:26:44 +01:00
231e5c0bc5 refactor: port base/XBaseTests to QtTests 2025-05-08 15:26:44 +01:00
78cbe4b775 refactor: port base/UnicodeTest to QtTests 2025-05-08 15:26:44 +01:00
a1a7c8f3ff refactor: port base/StringTests to QtTests 2025-05-08 15:26:44 +01:00
501726d471 refactor: port base/pathTest to QtTests 2025-05-08 15:26:44 +01:00
b51dec01ad refactor: port arch/IArchStringTests to QtTests 2025-05-08 15:26:44 +01:00
1c907991af build: remove unused integtests 2025-05-08 15:26:44 +01:00
0c3c913989 chore: remove unused MainWindowTest 2025-05-08 15:26:44 +01:00
4479b90d37 refactor: port Platform/MSWindowsClipboardTests to QtTests 2025-05-08 15:26:44 +01:00
8a139f0e3d refactor: port CommandProcessTests to QtTests 2025-05-08 15:26:44 +01:00
810322623b refactor: port ConfigTests to QtTest 2025-05-08 15:26:44 +01:00
245f9db5c8 refactor: port DotEnvTests to QTests 2025-05-08 15:26:44 +01:00
807f32975a feat: add Initial Qt Tests items
create a new SettingsTests Test
2025-05-08 15:26:44 +01:00
5365e34f08 feat: remove drag and drop support, its broken on all platforms 2025-05-08 09:47:41 -04:00
55a7fa3266 Port simplified EventTypes from 8b23570379 2025-05-05 17:17:01 -04:00
118f867fd1 refactor: Remove unused IEventQueue::getRegisteredType()
ported from a5b6017235
2025-05-05 17:17:01 -04:00
13dc055405 build: better detect windows Arm64 on both CI and locally 2025-05-05 21:28:06 +01:00
99dae58fd3 chore: clean up macos code smell missed by sonarscan 2025-05-03 21:23:15 +01:00
e9ccd513f7 chore: clean up windows code smells missed by sonarscan 2025-05-03 21:13:09 +01:00
903401796e refactor: Remove use of DESKFLOW_RESET_ALL and all users to pass --reset switch to deskflow-gui instead 2025-05-03 21:09:41 +01:00
97863bda7c ci: use sithlord48/vcpkg-action@v7 2025-05-02 11:45:55 -07:00
0c94adf03c docs: Improve readability of readme
- Condensed and deduped the Synergy sponsor text
- Add more headings to make sections clearer
- Add rewarded bounty badge
2025-05-02 12:21:31 +01:00
d643e4b189 chore: PrimaryClient, use default for deconstructors / constructors 2025-05-02 12:12:17 +01:00
c8734755c5 chore: InputFilter, use default for deconstructors / constructors 2025-05-02 12:12:17 +01:00
edea3b0df1 chore: server/Config use default for deconstructors 2025-05-02 12:12:17 +01:00
f4264d71a1 chore: ClientProxy1_6 use default for deconstructor 2025-05-02 12:12:17 +01:00
6ffd0eb471 chore: ClientProxy1_4 use default for deconstructor 2025-05-02 12:12:17 +01:00
7619928d56 chore: ClientProxy1_3 use override where possible 2025-05-02 12:12:17 +01:00
d70c7fe720 chore: ClientProxy1_2 use default for deconstructor 2025-05-02 12:12:17 +01:00
b26ca77ff1 chore: ClientProxy1_1 use default for deconstructor 2025-05-02 12:12:17 +01:00
68db2c3484 chore: BaseClientProxy use default for deconstructor 2025-05-02 12:12:17 +01:00
81c19c6ee8 chore: XClipboardUTF8Converter use default for deconstructor 2025-05-02 12:12:17 +01:00
1276a4a29c chore: XClipboardUCS2Converter use default for deconstructor 2025-05-02 12:12:17 +01:00
d97f4d87ad chore: XClipboardTextConverter use default for deconstructor 2025-05-02 12:12:17 +01:00
d5cbd002a9 chore: XClipboardHTMLConverter use default for deconstructor 2025-05-02 12:12:17 +01:00
31a6fd23e7 chore: XClipboardBMPConverter use default for deconstructor 2025-05-02 12:12:17 +01:00
f6c6d4e3a7 chore: XClipboardAnyBitmapConverter use default for constructor / deconstructor 2025-05-02 12:12:17 +01:00
5801b92636 chore: XSocket use default for deconstructor 2025-05-02 12:12:17 +01:00
b427ac91c2 chore: TCPSocketFactory use default for deconstructor 2025-05-02 12:12:17 +01:00
e87c596fbe chore: SecureSocket, add missing nullptr replacement 2025-05-02 12:12:17 +01:00
35b4749627 chore: XThread use default for deconstructor 2025-05-02 12:12:17 +01:00
6b2a28600a chore: CondVar, use default for deconstructor 2025-05-02 12:12:17 +01:00
600378b72d chore: StreamBuffer, use default for deconstructor 2025-05-02 12:12:17 +01:00
8e24689f72 chore: IStream, use default for deconstructor 2025-05-02 12:12:17 +01:00
07f9c4ba47 chore: AddClientDialog, add missing nullptr replacement 2025-05-02 12:12:17 +01:00
9d476e143e chore: KeySequence, add missing nullptr replacement 2025-05-02 12:12:17 +01:00
6bcdd4ebe7 chore: DataDownloader, use default for deconstructor, add missing nullptr replacement 2025-05-02 12:12:17 +01:00
9085468d1c chore: AppUtilUnix, use default for deconstructors 2025-05-02 12:12:17 +01:00
7bace4d36d chore: XScreen, use default for deconstructors 2025-05-02 12:12:17 +01:00
ca0d095283 chore: XDeskflow, use default for deconstructors 2025-05-02 12:12:17 +01:00
ace5b54912 chore: ServerArgs, use default for deconstructor 2025-05-02 12:12:17 +01:00
c99767c8b7 chore: ServerApp, use default for deconstructor 2025-05-02 12:12:17 +01:00
297b781578 chore: PlatformScreen, use default for deconstructor 2025-05-02 12:12:17 +01:00
8c4dc001bf chore: PacketStreamFilter, use default for deconstructor 2025-05-02 12:12:17 +01:00
9ca13a65d1 chore: keystate: using nullptr 2025-05-02 12:12:17 +01:00
73566c061d chore: Keymap, use default for deconstructor 2025-05-02 12:12:17 +01:00
ed3118b81a chore: DragInformation, use default for deconstructor 2025-05-02 12:12:17 +01:00
cc209b9b1f chore: Clipboard, use default for deconstructor 2025-05-02 12:12:17 +01:00
ee22c31f32 chore: ClientArgs, use default for deconstructor 2025-05-02 12:12:17 +01:00
f376b049e4 chore: ClientApp, use default for deconstructor 2025-05-02 12:12:17 +01:00
57e3ff1fab chore: ArgBase, use default for deconstructor 2025-05-02 12:12:17 +01:00
c39f69b64d chore: AppUtil use default for deconstructor 2025-05-02 12:12:17 +01:00
218a506970 chore: MinimalApp, use default for deconstructor 2025-05-02 12:12:17 +01:00
57cb7227a4 chore: Interface.h, use default for deconstructor 2025-05-02 12:12:17 +01:00
6aabb1e858 chore: XBase, use default for deconstructor 2025-05-02 12:12:17 +01:00
9aec1ad479 chore: TMethodEventJob, use default for deconstructor 2025-05-02 12:12:17 +01:00
c8d4a2186a chore: TMethodJob use default for deconstructor 2025-05-02 12:12:17 +01:00
f68744a36d chore: Stopwatch, use default for deconstructor and explicit constructor 2025-05-02 12:12:17 +01:00
183d660186 chore: PriorityQueue, use default for deconstructor / constructors 2025-05-02 12:12:17 +01:00
e20ef3ae55 chore: LogOutputters, use default for deconstructor / constructors 2025-05-02 12:12:17 +01:00
0bfb95996a chore: FunctionJob, use default for deconstructor 2025-05-02 12:12:17 +01:00
7d27031723 chore: FunctionEventJob, use default for deconstructor 2025-05-02 12:12:17 +01:00
ada495c681 chore: FinalAction, use default for constructor and explicit 2025-05-02 12:12:17 +01:00
e91b9867e0 chore: EventQueue, use default for deconstructor 2025-05-02 12:12:17 +01:00
d483dc38bd chore: unix/XArchUnix, use default for constructor and deconstructor, explicit constructor with no except deconstructor 2025-05-02 12:12:17 +01:00
56dd5492b4 chore: unix/ArchTimeUnix, use default for constructor and deconstructor 2025-05-02 12:12:17 +01:00
67c7ba6dae chore: unix/ArchStringUnix, use default for constructor and deconstructor 2025-05-02 12:12:17 +01:00
1138e3b1fb chore: unix/ArchLogUnix, use default for constructor / deconstructor 2025-05-02 12:12:17 +01:00
6523911e4d chore: unix/ArchSleepUnix, use default for constructor and deconstructor 2025-05-02 12:12:17 +01:00
a52552b821 chore: unix/ArchDaemonUnix, use default for constructor and deconstructor 2025-05-02 12:12:17 +01:00
bd2188beb1 chore: unix/ArchConsoleUnix, use default for constructor and deconstructor 2025-05-02 12:12:17 +01:00
edc0c0d7a0 chore: XArch, use default for constructors / deconstrucor
use noexecpt for virtual deconstctor
use explicit for constructors
2025-05-02 12:12:17 +01:00
95586c88fd chore: ArchDaemonNone, use deault for empty deconstructor
use default for empty constructor
add comment for empty overrides from base class
2025-05-02 12:12:17 +01:00
d7174a3a2f chore: ArchConsoleStd, use default for empty deconstructor
use default for empty constructor
add comment to empty impl on base methods
2025-05-02 12:12:17 +01:00
2289ed5845 chore: Arch use default for empty deconstructor
use explicit for constuctors
2025-05-02 12:12:17 +01:00
2192636d2b fix(wayland): release portal input capture when EI_EVENT_DISCONNECT is encountered, refactoring
Fixes #8005.
2025-05-01 12:35:00 +01:00
6194868e89 chore(wayland): add debug logline in EiScreen::handle_portal_session_closed 2025-05-01 12:35:00 +01:00
00f53c1aac fix(ei): Drain all events sitting in our pipe
If we're starved for resources, we may end up with more than 64
notifications in our pipe before we get to actually read them.
Those notifications are just that though, so let's drain them.
2025-05-01 10:04:28 +01:00
59df2db7b7 chore: Silence two compiler signedness warnings
Both trigger:
  warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]

In the first hunk we already checked for i < 0 so casting to size_t is
fine. In the second hunk we don't use i so we can pick the right type.
2025-04-30 12:04:43 +01:00
35f0e9e6e4 feat(gui): Retry mechanism for Windows Daemon IPC client 2025-04-29 13:13:07 +01:00
3b3d9e14fd fix(daemon): Log responses for 'hello' and 'noop' 2025-04-29 13:13:07 +01:00
b3f179a08a chore: Server, use auto where possible 2025-04-28 13:50:43 +01:00
f3fca87e19 chore: InputFilter, use auto where possible 2025-04-28 13:50:43 +01:00
a3093fa046 chore: Config, use auto where possible 2025-04-28 13:50:43 +01:00
c00ebbd6c1 chore: ClientProxy1_6, use auto where possible 2025-04-28 13:50:43 +01:00
09457793b4 chore: ClientProxy1_0, use auto where possible 2025-04-28 13:50:43 +01:00
d436aa3001 chore: ClientListener, use auto where possible 2025-04-28 13:50:43 +01:00
ec4851d326 chore: XWindowsUtil, use auto where possible 2025-04-28 13:50:43 +01:00
f338e5e7a8 chore: XWindowScreenSave, use auto where possible 2025-04-28 13:50:43 +01:00
55b48a5db7 chore: XWindowsScreen, use auto where possible 2025-04-28 13:50:43 +01:00
352a871729 chore: XWindowsKeyState, use auto where possible 2025-04-28 13:50:43 +01:00
b103f28202 chore: XWindowsClipboardBMPConverter, use auto where possible 2025-04-28 13:50:43 +01:00
39b49acb56 chore: XWindowsClipboardAnyBitmapConvertor, use auto where possible 2025-04-28 13:50:43 +01:00
5d4fbc8ea6 chore: XWindowClipboard, use auto where possible 2025-04-28 13:50:43 +01:00
3dfa3d5069 chore: EiScreen, use auto where possible 2025-04-28 13:50:43 +01:00
6d9c66b03f chore: EiKeyState, use auto where possible 2025-04-28 13:50:43 +01:00
02b2b82c7f chore: TCPSocketFactory, use auto where possible 2025-04-28 13:50:43 +01:00
aac086ad2a chore: TCPSocket, use auto where possible 2025-04-28 13:50:43 +01:00
0d3f7248ed chore: SecureSocket, use auto where possible 2025-04-28 13:50:43 +01:00
da6e110b69 chore: Thread, use auto where possible 2025-04-28 13:50:43 +01:00
a298cc84ad chore: SocketMultiplexer, Use auto where possible 2025-04-28 13:50:43 +01:00
d8348152ec chore: StreamBuffer, use auto where possible 2025-04-28 13:50:43 +01:00
572953d5ba chore: ScreenSetupView, use auto where possible 2025-04-28 13:50:43 +01:00
a23856ee09 chore: NewScreenWidget, use auto where possible 2025-04-28 13:50:43 +01:00
637adc60b2 chore: SettingsDialog, use auto where possible 2025-04-28 13:50:43 +01:00
0ca847334e chore: ServerConfigDialog, use auto where possible 2025-04-28 13:50:43 +01:00
d06d6a5003 chore: Screen, use auto where possible 2025-04-28 13:50:43 +01:00
6d856b674b chore: ScreenSetupModel, use auto where possible 2025-04-28 13:50:43 +01:00
bcfc121c37 chore: Action, use auto where possible 2025-04-28 13:50:43 +01:00
b2ec2f1a34 chore: StramChunker, use auto where possible 2025-04-28 13:50:43 +01:00
df9d5ded1c chore: ServerApp, use auto where possible 2025-04-28 13:50:43 +01:00
f11dae97d4 chore: ProtocolUtil, use auto where possible 2025-04-28 13:50:43 +01:00
3fdc5288eb chore: KeyState, use auto where possible 2025-04-28 13:50:43 +01:00
955f9652fb chore: KeyMap, use auto where possible 2025-04-28 13:50:43 +01:00
9dedf25ecc chore: IPrimaryScreen, use auto where possible 2025-04-28 13:50:43 +01:00
ee3dffc4f8 chore: IKeyState, use auto where possible 2025-04-28 13:50:43 +01:00
8123166e66 chore: IClipboard, use auto where possible 2025-04-28 13:50:43 +01:00
29626d6694 chore: FileChunk, use auto where possible 2025-04-28 13:50:43 +01:00
996af86b9b chore: DragInformation, use auto where possible 2025-04-28 13:50:43 +01:00
84fbe48d35 chore: ClipboardChunk, use auto where possible 2025-04-28 13:50:43 +01:00
11423ef5a1 chore: ClientApp, use auto where possible 2025-04-28 13:50:43 +01:00
7cc108d87c chore: ArgParse, use auto where possible 2025-04-28 13:50:43 +01:00
af70ff98b7 chore: Client, Use auto where possible 2025-04-28 13:50:43 +01:00
b6f7497c44 chore: Unicode, Use auto where possible 2025-04-28 13:50:43 +01:00
f6602baa36 chore: String, Use auto where possible 2025-04-28 13:50:43 +01:00
72091c6ac4 chore: Log, use auto where possible 2025-04-28 13:50:43 +01:00
fb5f80857b chore: EventQueue, Use auto where possible 2025-04-28 13:50:43 +01:00
6c7bdf3e07 chore: ArchNetworkBSD, Use auto where possible 2025-04-28 13:50:43 +01:00
1df01d3cf1 chore: ArchMuitiThreadPosix, Use auto where possible 2025-04-28 13:50:43 +01:00
2bebdbaf4d chore: DeskflowGui, Use auto where possible 2025-04-28 13:50:43 +01:00
63d65bb47b chore: use nullptr where possible in place of NULL 2025-04-28 13:08:40 +01:00
60dc4c0cd8 chore: remove unneed mac os version checks 2025-04-28 12:52:55 +01:00
78d1c5222f chore: Replace old required mac os version checks with if WINAPI_CARBON 2025-04-28 12:52:55 +01:00
6e3426855d ci: use normal built in vcpkg cache 2025-04-28 04:29:51 -07:00
f49f5f790c chore: Remove unused CONFIG_NAME var in ServerApp 2025-04-28 04:25:02 -07:00
4eaf6fda62 refactor: correct includes in ServerApp 2025-04-28 04:25:02 -07:00
ebc6186fe7 refactor: remove auto fallback paths for server binary
they are not correct in the help and its dynamic based on the first found Deskflow.conf file. The gui sets this manually and users running the cli should too
2025-04-28 04:25:02 -07:00
48f824ca31 chore: Server, default should be first or last case for switches 2025-04-28 11:47:04 +01:00
d6ace78a58 chore: XWindowUtils, default should be first or last case for switches 2025-04-28 11:47:04 +01:00
41fda741b3 chore: Use override for override methods 2025-04-28 11:27:33 +01:00
793ea5f81c fix: make sure client, server and core init a qApp for Setting's to find the app path with
fixes #8534
2025-04-25 17:27:05 +01:00
285abc7bb7 fix: add reuse info to **/*.md by default 2025-04-25 06:08:11 -07:00
d6c9897748 docs: Create CONTRIBUTING.md
Adds a CONTRIBUTING.md file to the project root. I totally understand the preference to keep the root directory clean and normally I'd agree. However, GitHub requires CONTRIBUTING.md to be in the root in order to automatically show a “Contribute” prompt when someone opens a new issue or PR.

It also means we can be recognized by platforms like goodfirstissue.dev (https://github.com/DeepSourceCorp/good-first-issue?tab=readme-ov-file#adding-a-new-project:~:text=project%2C%20and%20a-,CONTRIBUTING.md,-with%20guidelines%20for), which requires the file to be in the root to detect a repo as contributor-friendly

The file itself is very lightweight, just a short intro and a link to our full guide on the wiki:
https://github.com/deskflow/deskflow/wiki/Contributing

This keeps the root file tidy while still meeting the visibility requirements for tools and new contributors.

Let me know if you'd prefer any tweaks to keep it as non-intrusive as possible.
2025-04-25 05:53:27 -07:00
ed4ecc2d81 docs(readme): Add contrib link and badges to README.md
The 'good first issue' label curates easy pickings and helps people make their first contribution to open-source.
2025-04-25 05:53:02 -07:00
794017402d chore: remove unused TLSCertificate::getCertificatePath 2025-04-25 09:58:49 +01:00
4034302bfb build: Replace CMAKE_SYSTEM_PROCESSOR with BUILD_ARCHITECTURE, on windows CMAKE_SYSTEM_PROCESSOR is flawed so when possible use the vcpkg info or default to x64 Adjust the vcruntime check to use the BUILD_ARCHITECTURE to check the proper version is installed for the architecture the app is build for 2025-04-25 09:20:08 +01:00
eab87e3869 chore: Increase log level for noisy empty lang code log line
It seems that `layoutLangCode.empty()` is true on my GNOME Wayland server every time I press a key. I don't know why, but it probably means something. Client doesn't seem to matter; happens for all client OS.
2025-04-23 04:50:04 -07:00
294348b42b fix: fixes #8522 by disconnecting firstShown after the first show event 2025-04-23 10:01:02 +01:00
71b6f07220 feat: remove stopOnDeskSwitch, its broken 2025-04-22 10:00:45 +01:00
9addada64c fixes #8517 , save the host name if the lineEdit is not empty, instaed of only if the value of the setting is not empty 2025-04-22 09:42:47 +01:00
b6196f147a ci: chore: remove unused arch var for macos-14 2025-04-22 09:26:18 +01:00
2c4a68ebcf ci: add osxSysroot to mac os14 job 2025-04-22 09:26:18 +01:00
d8f480b981 ci: Adjust back to main flatpak builder
see: https://github.com/flathub-infra/flatpak-github-actions/issues/17
2025-04-21 15:19:40 -07:00
80afb92af1 chore: remove more code for inverse connection
related: https://github.com/deskflow/deskflow/pull/8240
2025-04-21 22:39:28 +01:00
f5f3bc0475 chore: remove unused old test mocks 2025-04-21 22:16:05 +01:00
17c7b0f8bf fix: user can not start in client mode without a remote host
do not auto start the client if the remote host is empty
fixes #8478
2025-04-21 22:01:31 +01:00
fcaadc2cd4 ci: add fedora 42 2025-04-21 09:55:45 -07:00
e3642f0955 refactor: do not save empty RemoteHost line 2025-04-17 15:57:29 +01:00
07d837a39b build(qt): Update Qt mirror to https://qt.mirror.constant.com 2025-04-17 13:05:02 +01:00
1202145bb8 fix(daemon): Use scheduled state when start is scheduled 2025-04-16 05:28:23 -07:00
abc963f886 fix(daemon): Only log XArchEvalWindows result when GetExitCodeProcess fails 2025-04-16 05:28:23 -07:00
4988196c47 fix(daemon): Use missing %s when logging XArchEvalWindows result 2025-04-16 05:28:23 -07:00
8a2b6bd688 fix(daemon): Validate process handle and ID before shutdown 2025-04-16 05:28:23 -07:00
901dacf593 feat(daemon): Friendly message on daemon connection error 2025-04-16 05:12:33 -07:00
c62b4ec068 fix: Use QTextStream to write to stdout and stderr
Only use `Qt::endl` when writing to the output stream; `Q_EMIT newLine` should not include a trailing newline because `appendPlainText` doesn't expect one.
2025-04-15 05:02:25 -07:00
c8408c4823 fix: Default external server config name should be *-server.conf 2025-04-14 10:05:20 +01:00
8657532ca2 feat: add logging to clipboard 2025-04-11 10:07:57 +01:00
64b277a5df refactor: deskflow/Clipboard, do not assert instead handle the cases where we would have asserted to fail safely 2025-04-11 10:07:57 +01:00
cd7d53d2bd fix: Add missing menu accelerators
fixes #8470
2025-04-10 12:27:49 +01:00
d740574bd4 fix: Remove unnecessary log line endings and trimming 2025-04-10 12:16:42 +01:00
84ae597d69 fixes #8463 do not assume C for root 2025-04-10 11:57:05 +01:00
16ef088c27 fix: Show first server start message only when start was successful 2025-04-09 07:43:59 -07:00
7e4b6b82f4 ci: force osxSysroot for osx13 builds 2025-04-09 13:53:18 +01:00
daa095461d Release 1.21.2
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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (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-04-07 05:24:27 -07:00
fde880fb6f chore: add default case for EI_EVENT handling 2025-04-07 11:23:28 +01:00
a04568b25f refactor: remove unneeded using ProcessState in coreprocess::startprocess 2025-04-07 03:09:30 -07:00
6e6892b6e7 refactor: use checkbox for elevate remove Settings::Core::ElevateMode and use Daemon::Elevate to hold the value 2025-04-07 03:09:30 -07:00
5ad2c9283d refactor: add a check box to enable stop on desk switch 2025-04-07 03:09:30 -07:00
487030aade refactor: settings gui, use the service group as a checkbox for enable service 2025-04-07 03:09:30 -07:00
1ace03d4b5 feat: add help and version to gui,
move no-reset to the QCommandLineProcessor
2025-04-06 06:41:25 -07:00
5df333fae9 refactor: change project description to 'Keyboard and mouse sharing utility' 2025-04-06 06:41:25 -07:00
3b4306183c chore: deskflow-gui remove fallback for pre mavricks mac os accessibility prompt 2025-04-06 06:41:25 -07:00
4203f42363 chore: remove workaround for Qt-43022 2025-04-06 06:41:25 -07:00
7e4ac48476 chore: df-gui remove unused QThredImpl class 2025-04-06 06:41:25 -07:00
0b05b0e71d chore: deskflow-gui remove unused includes 2025-04-06 06:41:25 -07:00
cos
ebb63d8113 build: add manpages
Manual pages got removed from synergy in #7361. This commit brings them
back. They are rudimentary and autogenerated using `help2man`, with only
a message about finding the documentation at the wiki page added. Not
much, but a lot better than nothing.

Package names added to Continuous Integration are based on these web pages:

    https://archlinux.org/packages/extra/x86_64/help2man/
    https://packages.debian.org/help2man
    https://packages.fedoraproject.org/pkgs/help2man/help2man/
    https://software.opensuse.org/package/help2man
2025-04-06 06:07:52 -07:00
c1f1734943 ci: bump windows / mac builds to Qt 6.9.0 2025-04-05 13:28:27 -07:00
12bcc1a4d6 fix: build issue on Qt 6.9 2025-04-05 13:28:27 -07:00
84283a1b13 ci: correctly install depends for freebsd 2025-04-05 13:08:25 -07:00
0a33e20723 refactor: remove unused --host arg from deskflow-client 2025-04-05 12:05:23 -07:00
d4f916c365 chore: remove unused --no-wayland-ei
fixes #7680
2025-04-05 12:05:23 -07:00
6df96d4a56 refactor: Don't show drag and drop as an option on linux 2025-04-05 12:05:23 -07:00
e617e4b537 chore: deskflow-client, remove from help --use-x-window, options was unused and should not be reported as an option 2025-04-05 12:05:23 -07:00
ca5cc8211b chore: lib/deskflow/ServerApp remove duplicate print of HELP_COMMON_INFO_2 2025-04-05 12:05:23 -07:00
f01b592dad build: a windows portable package 2025-04-03 17:07:42 +01:00
46c6275c43 feature: make sure when portable settings are cleared a new blank file is created 2025-04-02 12:39:54 +01:00
b3fb8959a3 refactor: SettingsDialog, Hide the service if its not able to be enabled 2025-04-02 12:39:54 +01:00
8354a81706 refactor: Settings set default elevateMode based on settings type, for registry we use Always, ini mode uses Never 2025-04-02 12:39:54 +01:00
d9807a2693 refactor: Set default process Mode based on Settings type if we are INI Type we in desktop mode if Native (only on windows) we default to Service 2025-04-02 12:39:54 +01:00
1b8067797e refactor: settings for windows try to use registry unless portable install
new Settings::isUsingRegistry() true when using the registry
          move daemon log back to config dir
2025-04-02 12:39:54 +01:00
cf4fe32aab refactor: allow proxy to load from registry if no file is provided 2025-04-02 12:39:54 +01:00
6bbebe75f9 fixes #8423, set unit test to force external config on for server tests 2025-04-02 11:12:12 +01:00
0b9ecbc2f4 chore: move unused integtests Network tests to test/unittests 2025-04-01 13:12:40 +01:00
fc36cf6be8 refactor: move remaining platform tests to test/unittests 2025-04-01 13:12:40 +01:00
b7b295aeb6 refactor: combine XWindowsClipboards tests into one unittest 2025-04-01 13:12:40 +01:00
00b5c32fc9 refactor: combine all OSXKeyStateTests into one unittest 2025-04-01 13:12:40 +01:00
5355e84b63 Release 1.21.1
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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (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-03-31 07:53:29 -07:00
8fbcf907b2 build: windows Installer runs Deskflow as a user not admin post install, after Finish 2025-03-31 06:12:46 -07:00
d2bf5e63e4 refactor: allow settings to use XDG_CONFIG_DIR if defined
fixes: #8421
2025-03-31 06:12:46 -07:00
3ed0915b57 refactor: settings for windows use Appdata/local, always save daemon log to app install path 2025-03-31 06:12:46 -07:00
01878b0522 refactor: settings, prefix portableSettingsFile with app dir at runtime 2025-03-31 06:12:46 -07:00
af6b42fe9e newMethod Settings::validKeys to return the known Settings keys 2025-03-31 06:12:46 -07:00
a0051ea0bc chore: lib/common/settings remove unused signal writableChanged 2025-03-31 06:12:46 -07:00
40c915f6bd chore: lib/common/settings remove unused signal scopeChanged 2025-03-31 06:12:46 -07:00
1cee520e2b chore: lib/common/settings remove unused private isPortableSettings 2025-03-31 06:12:46 -07:00
1dd5654af6 fix: Settings update checkbox was initilzed to autohide value
fixes #8418
2025-03-31 06:12:46 -07:00
2708fc96fe chore: use Type for templates 2025-03-30 21:14:57 +01:00
5cfaa4a4e0 refactor: move ALL gui parts to lib 2025-03-29 18:18:12 +00:00
a6453a6819 fix: local-fingerprint generation 2025-03-28 11:49:08 +00:00
f781ac9855 Release 1.21.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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (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-03-27 13:47:16 +00:00
d6087cc5bd fix: Handle empty layout names and language codes in layout parser 2025-03-27 13:30:26 +00:00
6e9694b5d8 build: rm pkgconf from list of packges windows needs 2025-03-27 13:07:59 +00:00
201df59cb7 remove Use of libnotify and wintoast 2025-03-27 13:07:59 +00:00
bcfc77fde6 ci: flatpak remove pythong attars 2025-03-27 12:46:28 +00:00
245a522188 build: remove used gio library 2025-03-27 12:46:28 +00:00
fdf1df1a30 refactor: use QtXml in place of pugixml 2025-03-27 12:33:39 +00:00
84b433853a chore: remove unused define HAVE_GMTTIME_R 2025-03-26 09:23:16 +00:00
e225a357fd chore: remove unused define HAVE_GETPWUID_R 2025-03-26 09:23:16 +00:00
54fac87ed2 chore: remove unused define HAVE_WCHAR_H 2025-03-26 09:23:16 +00:00
56a665cd18 chore: remove unused define HAVE_SYS_UTSNAME_H 2025-03-26 09:23:16 +00:00
cb8c6fe9d9 chore: remove unused define HAVE_LOCALE_H 2025-03-26 09:23:16 +00:00
239a265e18 chore: remove unused HAVE_SSTREAM define 2025-03-26 09:23:16 +00:00
ee53d28af7 chore: remove unused HAVE_OSTREAM define 2025-03-26 09:23:16 +00:00
91fd139a49 chore: remove unused HAVE_ISTREAM define 2025-03-26 09:23:16 +00:00
7f1a234d06 refactor: remove unneed library gtkpixbuf 2025-03-26 09:13:13 +00:00
db20c4b0c7 chore: lib/base/PriorityQueue remove unused headers 2025-03-25 14:11:23 +00:00
7bd3fc1eb5 chore: lib/base/LogOutputters remove unused headers 2025-03-25 14:11:23 +00:00
8fde0d764e chore: lib/base/Log remove unused headers 2025-03-25 14:11:23 +00:00
e1eb4ebf98 chore: lib/base/FinalAction remove unused headers 2025-03-25 14:11:23 +00:00
4b06160f84 chore: lib/base/EventTypes remove unused headers 2025-03-25 14:11:23 +00:00
2160f7826f chore: lib/base/EventQueue remove unused headers 2025-03-25 14:11:23 +00:00
7f6a68bb2f chore: lib/base/Event remove unused headers 2025-03-25 14:11:23 +00:00
95521c53d6 chore: cleanup lib/base/Unicode includes 2025-03-25 14:11:23 +00:00
446847f4fb chore: remove unneeded includes in lib/base/XBase 2025-03-25 14:11:23 +00:00
37bc70896b chore: remove unneeded includes in lib/base/String 2025-03-25 14:11:23 +00:00
f9c8d08ff7 chore: remove unused string::splitString 2025-03-25 13:52:49 +00:00
55c611f754 chore: remove unused string::findReplaceAll 2025-03-25 13:52:49 +00:00
541e30f406 chore: remove unused string::removeFileExt 2025-03-25 13:52:49 +00:00
4b24b5b38d chore: remove unused string::removeChar 2025-03-25 13:52:49 +00:00
df8500178b chore: remove unused CaselessCmp::cmpEqual 2025-03-25 13:52:49 +00:00
378fdae140 feat: Handle empty response from update server 2025-03-25 11:13:48 +00:00
31e95ad2dc refactor: remove unused lib/arch/mulitbyte.h 2025-03-25 08:39:05 +00:00
8b5a61f07f refactor: remove ArchFile, move only use of getInstallDir to MSWindowsWatchdog 2025-03-25 08:39:05 +00:00
516f803eb4 refactor: remove ArchFile::getbasePath for QFileInfo::fileName 2025-03-25 08:39:05 +00:00
c1a7b836ce refactor: remove unused ArchMiscWindows::processDialog 2025-03-24 12:16:39 +00:00
9530b9c6ba refactor: remove unused ArchMiscWindows::s_dialog, ArchMiscWindows::cleanup 2025-03-24 12:16:39 +00:00
9df2a2c28d refactor: remove unused ArchMiscWindows::removeDialog 2025-03-24 12:16:39 +00:00
133545d03f refactor: remove unused ArchMiscWindows::addDialog 2025-03-24 12:16:39 +00:00
75e852d95f refactor: remove unused ArchMiscWindows::readValueBinary 2025-03-24 12:16:39 +00:00
9c44653fff refactor: remove unused ArchMiscWindows::setValueBinary 2025-03-24 12:16:39 +00:00
2adee7c460 refactor: remove unused ArchMiscWindows::deleteKeyTree 2025-03-24 12:16:39 +00:00
6f6e9cddb7 refactor: remove unused ArchMiscWindows::deleteValue 2025-03-24 12:16:39 +00:00
fdd9b1bb6d refactor: remove unused ArchMiscWindows::getIcons 2025-03-24 12:16:39 +00:00
b2ff6aa938 refactor: remove unused ArchMiscWindows::setIcons 2025-03-24 12:16:39 +00:00
5e4188b2fe refactor: remove unused ArchMiscWindows::hasValue 2025-03-24 12:16:39 +00:00
a3875bf71c fix: small leak on closing of mainwindow by not parenting the menus, found via valgrind 2025-03-24 12:06:29 +00:00
f3930d9520 chore: MainWindow: use Size instead of seperate Width/Height calls in update size 2025-03-24 12:06:29 +00:00
f66a50dab7 chore: MainWindow remove unused empty layout 2025-03-24 12:06:29 +00:00
68ebc88293 ci: Sync local flatpak depends to those on flathub 2025-03-24 11:57:37 +00:00
83c8d295d4 refactor: MainWindow remove test menu 2025-03-21 12:47:46 +00:00
07219ed431 refactor: use QVariant().toBool() in place of StringUtils::StrToBool, remove StringUtils 2025-03-21 12:47:46 +00:00
da5f3c0be1 refactor: remove StringUtils::trimEnd and just use QString::trimmed 2025-03-21 12:47:46 +00:00
a23e35c522 refactor: move lib/gui/Diagnostic => apps/deskflow-gui/Diagnostic 2025-03-21 12:47:46 +00:00
eb74d8ca99 refactor: replace EnvVars.h with a new item in settings Settings::Core::UpdateUrl 2025-03-21 12:47:46 +00:00
65b6fe7ca3 refactor: move lib/gui/Constants.h => lib/common/UrlConstants.h 2025-03-21 12:47:46 +00:00
9b6615328b refactor: move lib/gui/StyleUtils.h => apps/deskflow-gui/StyleUtils.h 2025-03-21 12:47:46 +00:00
7fb87b32f5 refactor: move lib/gui/validators => apps/deskflow-gui/validators 2025-03-21 12:47:46 +00:00
8508805f5d chore: remove unused apps/deskflow-gui/ProcessorArch.h 2025-03-21 11:42:32 +00:00
385a610da2 chore: remove unused apps/deskflow-gui/QUtility 2025-03-21 11:42:32 +00:00
e00058a332 chore: remove unused MacOSXPrecomp.h 2025-03-21 11:42:32 +00:00
45b6ff19e7 chore: remove StdExcept and include stdexcept directly where needed
remove _NOEXCEPT define and just use throw()
2025-03-21 11:42:32 +00:00
1798d7e4e6 chore: remove StdOStream and include ostream directly where needed 2025-03-21 11:42:32 +00:00
854787e6b3 chore: remove StdIStream and include istream directly where needed 2025-03-21 11:42:32 +00:00
498ffe85c3 chore: remove StdSet and include set directly where needed 2025-03-21 11:42:32 +00:00
cd3f9b2e7d chore: remove StdMap and include map directly where needed 2025-03-21 11:42:32 +00:00
42b16efdb9 chore: remove StdList and include list directly where needed 2025-03-21 11:42:32 +00:00
003f87db9e chore: remove StdVector and include vector directly where needed 2025-03-21 11:42:32 +00:00
86dca27e4c chore: remove StdDeque and include deque directly where needed 2025-03-21 11:42:32 +00:00
26fa6860e4 chore: Move used code from Win32Hook to MSWindowsHook and remove Win32Hook 2025-03-21 11:42:32 +00:00
d9798a9b2b chore: remove StdPost / StdPre 2025-03-21 11:42:32 +00:00
70a2554370 refactor: VersionChecker use its own QNetworkManager not a Proxy
remove lib/gui/proxy/QNetworkManagerProxy
2025-03-21 10:16:22 +00:00
13c325eb3f chore: rename lib/common/stdvector.h => lib/common/StdVector.h 2025-03-20 13:06:45 +00:00
a3ad66dfb0 chore: rename lib/common/stdset.h => lib/common/StdSet.h 2025-03-20 13:06:45 +00:00
c9d1a50bb0 chore: rename lib/common/stdpre.h => lib/common/StdPre.h 2025-03-20 13:06:45 +00:00
cb3e516206 chore: rename lib/common/stdpost.h => lib/common/StdPost.h 2025-03-20 13:06:45 +00:00
de2e3fb9ce chore: rename lib/common/stdostream.h => lib/common/StdOStream.h 2025-03-20 13:06:45 +00:00
3bad718bb7 chore: rename lib/common/stdmap.h => lib/common/StdMap.h 2025-03-20 13:06:45 +00:00
40c10766f3 chore: rename lib/common/stdlist.h => lib/common/StdList.h 2025-03-20 13:06:45 +00:00
bf09df835d chore: rename lib/common/stdistream.h => lib/common/StdIStream.h 2025-03-20 13:06:45 +00:00
4a16804d27 chore: rename lib/common/stdexcept.h => lib/common/StdExcept.h 2025-03-20 13:06:45 +00:00
5e1aa9eb5d chore: rename lib/common/stddeque.h => lib/common/StdDeque.h 2025-03-20 13:06:45 +00:00
3c86d9dc83 chore: rename lib/common/constants.h.in => lib/common/Constants.h.in 2025-03-20 13:06:45 +00:00
099262d8ce chore: rename lib/common/common.h => lib/common/Common.h 2025-03-20 13:06:45 +00:00
d9e6ec4b70 chore: rename lib/config.h.in => lib/Config.h.in 2025-03-20 13:06:45 +00:00
d7b20fad5c chore: rename lib/platform/wayland.h => lib/platform/Wayland.h 2025-03-20 13:06:45 +00:00
6e6a88af87 chore: rename lib/platform/dfwhook.h => lib/platform/Win32Hook.h 2025-03-20 13:06:45 +00:00
ce17167248 chore: rename lib/io/filesystem => lib/io/Filesystem 2025-03-20 13:06:45 +00:00
656ad6402b chore: rename lib/gui/styles.h => lib/gui/Styles.h 2025-03-20 13:06:45 +00:00
329742a411 chore: rename lib/gui/style_utils.h => lib/gui/StyleUtils.h 2025-03-20 13:06:45 +00:00
4df982dd6f chore: rename lib/gui/string_utils.h => lib/gui/StringUtils.h 2025-03-20 13:06:45 +00:00
b1010751ba chore: rename lib/gui/messages => lib/gui/Messages 2025-03-20 13:06:45 +00:00
4238441018 chore: rename lib/gui/env_vars.h => lib/gui/EnvVars.h 2025-03-20 13:06:45 +00:00
a13bd3d0bd chore: rename lib/gui/dot_env => lib/gui/DotEnv 2025-03-20 13:06:45 +00:00
516e612282 chore: rename lib/gui/diagnostic => lib/gui/Diagnostic 2025-03-20 13:06:45 +00:00
bfd4bbd8f4 chore: rename lib/gui/constants.h => lib/gui/Constants.h 2025-03-20 13:06:45 +00:00
1c4ec6ec41 chore: remove unused lib/gui/byte_utils 2025-03-20 13:06:45 +00:00
2ef23b8206 chore: rename lib/deskflow/protocol_types => lib/deskflow/ProtocolTypes 2025-03-20 13:06:45 +00:00
ecf70f09f3 chore: rename lib/deskflow/option_types => lib/deskflow/OptionTypes 2025-03-20 13:06:45 +00:00
397c652e1c chore: rename lib/deskflow/mouse_types => lib/deskflow/MouseTypes 2025-03-20 13:06:45 +00:00
1666a30b94 chore: rename lib/deskflow/clipboard_types => lib/deskflow/ClipboardTypes 2025-03-20 13:06:45 +00:00
827d020d16 chore: rename lib/deskflow/key_types => lib/deskflow/KeyTypes 2025-03-20 13:06:45 +00:00
0138372871 chore: rename lib/base/log_outputters => lib/base/LogOutputters 2025-03-20 13:06:45 +00:00
9e78cb55aa chore: rename lib/base/finally.h => lib/base/FinalAction.h 2025-03-20 13:06:45 +00:00
38cc678ad2 chore: Settings Dialog remove unused and not implimented updateTlsRegenerateButton method from header 2025-03-19 20:29:40 +00:00
e624e6f174 fix: SetttingsDialog KeySize Combobox does not set key length
fixes #8380
2025-03-19 20:29:40 +00:00
96b50b7d1c chore: remove unused action in MainWindow 2025-03-19 20:29:40 +00:00
ffbe2cf885 refactor: use Settings for secure connect certificate path 2025-03-19 20:01:01 +00:00
b1b8720781 refactor: remove unused ARCH::concatPath 2025-03-19 20:01:01 +00:00
8609cbc20a refactor: remove unused ARCH::getUserDirectory 2025-03-19 20:01:01 +00:00
7fe862b715 refactor: remove unused ARCH::getSystemDirectory 2025-03-19 20:01:01 +00:00
377272e917 refactor: remove unused arch profileDir 2025-03-19 20:01:01 +00:00
b051c5ae60 refactor: new Setting::tlsTrustedClientssDb() method to return trusted client fingerprint db 2025-03-19 20:01:01 +00:00
38f00da704 refactor: new Setting::tlsTrustedServersDb() method to return trusted server fingerprint db 2025-03-19 20:01:01 +00:00
dcd2c62880 refactor: new Setting::tlsLocalDb() method to return local fingerprint db 2025-03-19 20:01:01 +00:00
b7f29d76c3 refactor: use new Setting::tlsDir() method to return current tlsdir where needed 2025-03-19 20:01:01 +00:00
55601debe0 refactor: use Settings in SecureListenSocket for certificate path 2025-03-19 20:01:01 +00:00
6c8eca6c41 refactor: ServerApp begin to use Settings 2025-03-19 20:01:01 +00:00
6444e2c208 chore: remove unused ARCH::getLogDirectory 2025-03-19 20:01:01 +00:00
b3ce7c41d3 chore: remove unused ARCH::setPluginDirectory Arch::getPluginDirectory 2025-03-19 20:01:01 +00:00
6963c28219 fix: typo in settings checkPeerFingerprints 2025-03-17 13:01:51 -04:00
99ed548495 fix: typo in settings invertScrollDirection key 2025-03-17 13:01:51 -04:00
d37bda6edb fix: Use correct casing for RemoteHost value in Settings.h 2025-03-17 13:01:51 -04:00
73de5e964e chore: remove unused archsystem classes 2025-03-17 16:59:43 +00:00
27451d3425 refactor: move Screensaver inhibate call for xwindows from arch to platform 2025-03-17 16:59:43 +00:00
613f3651ea refactor: move daemon settings to Settings
fixes #8353
2025-03-17 16:59:43 +00:00
0e3cee6287 feat: handle scope automaticaly
fixes #8358
2025-03-17 13:58:28 +00:00
6056e5850b chore: remove unused ConfigScopes 2025-03-17 13:58:28 +00:00
1b01a010ed refactor: remove use of configScopes from mainwindow 2025-03-17 13:58:28 +00:00
7faf76c7df refactor: remove need for configScope in diagnostic 2025-03-17 13:58:28 +00:00
55f513941b chore: remove lib/gui/config/AppConfig class 2025-03-17 13:58:28 +00:00
9e74100960 chore: remove unused appconfig from mainwindow 2025-03-17 13:58:28 +00:00
531b988dd1 refacator: remove use of app config in server settings 2025-03-17 13:58:28 +00:00
5647121dd8 refacator: allow settings to expose a proxy and emit saving 2025-03-17 13:58:28 +00:00
c1af4c3b71 fix: windows looking in deskflow/deskflow for items
fixes #8371
2025-03-17 13:47:28 +00:00
dd895ed99f Fix typos Recieve in methods
...Recieve... =>
...Receive...

Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
2025-03-17 09:38:18 -04:00
7771dcd04c Fix typos
avilable =>
available

recieve =>
receive

Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
2025-03-17 09:38:18 -04:00
d537a23fda refactor: add configure icon for Configure server button 2025-03-17 11:18:27 +00:00
f7b98465fa refactor: mainwindow move save config to a button shown only in server mode 2025-03-17 11:18:27 +00:00
ed1bf01306 fix: log Resize update the timer to 15ms 2025-03-17 11:00:02 +00:00
80f814a2da refactor: unify Coredir to SettingsPath 2025-03-17 10:44:37 +00:00
5355c9080b fix: Parse only the patch number from version check result 2025-03-14 15:30:19 +00:00
16517ca541 refactor(daemon): More helpful and less noisy logging 2025-03-14 14:19:46 +00:00
e8ea9f53ee refactor(daemon): Separate arg parsing from program control flow 2025-03-14 14:19:46 +00:00
7da8c54924 refactor(daemon): Use functional type for daemonize func 2025-03-14 14:19:46 +00:00
3683db0db9 feat(daemon): Print warning when not elevated 2025-03-14 14:19:46 +00:00
cd0aa6496a refactor(daemon): Move file log init code to init functions 2025-03-14 14:19:46 +00:00
c583252b03 refactor(daemon): Move watchdog init to init function
This also improves some logging and adds discreet try-catch blocks for each function call which improves diagnostics
2025-03-14 14:19:46 +00:00
2c433eddd7 chore(daemon): Make function const and better string compare
- Make `clearSettings` const in daemon app
- Improve readability of empty command check
2025-03-14 14:19:46 +00:00
5ee39c9b00 refactor: Settings allow override file of settings/Deskflow.conf 2025-03-14 14:10:19 +00:00
c1642b8d9d refactor: Remove unused CoreTool 2025-03-14 14:10:19 +00:00
f2c16c4432 refactor: remove paths::coreProfileDir and its single use for Settings::settingsPath() 2025-03-14 14:10:19 +00:00
37b4e4b57f refactor: coretool remove getProfileDir 2025-03-14 14:10:19 +00:00
b502a6b848 refactor: remove coretool from coreProcess 2025-03-14 14:10:19 +00:00
fe0ddf85e4 refactor: remove coretool from path.h 2025-03-14 14:10:19 +00:00
6990477504 refactor: remove coretool use from tlsCertificate 2025-03-14 14:10:19 +00:00
e05b35dda4 refactor: remove coretool from mainwindow 2025-03-14 14:10:19 +00:00
f50e4e850b refactor: QSettingsProxy use Settings paths for user and system paths 2025-03-13 13:58:25 +00:00
3cd3d7b1ff refactor: mv lib/gui/proxy/QSettingsProxy => lib/common 2025-03-13 13:58:25 +00:00
5a7284fd6a refactor: appconfig is no longer a iAppConfig subclass 2025-03-13 13:58:25 +00:00
362b2e1477 chore: slim down appconfig to only have expose the settings proxies 2025-03-13 13:58:25 +00:00
7bf716b232 chore: appconfig remove unused m_logdir 2025-03-13 13:58:25 +00:00
554178b658 chore: appconfig remove unused useinternalconfig option 2025-03-13 13:58:25 +00:00
af17b14224 refactor: move serverconfigdialog visible to Settings 2025-03-13 13:58:25 +00:00
1e9f92c93f feat: serverConfigDialog, remove need for appConfig 2025-03-13 13:58:25 +00:00
8bb325a2d2 feat: settingsdialog remove need for appconfig 2025-03-13 13:58:25 +00:00
8606dc8618 refactor: move Coremode control to Settings
newKey core/coreMode <= General/serverGroupEnabled , Genaral/clientGroupEnabled
remove core mode items from appconfig
2025-03-13 13:58:25 +00:00
6362948e15 feat: CoreProcess no longer needs AppConfig 2025-03-13 13:58:25 +00:00
085a70d5a5 refactor: move elevateMode to Settings
newKey: core/elevateMode <= General/elevateMode + General/elevateModeEnum
Remove elevate mode from appConfig
2025-03-13 13:58:25 +00:00
93abf4217b refactor: move enableServer to Settings
General/enableServer is removed, service type stored in core/processMode set it now true when server mode
remove enableServer from appConfig
2025-03-13 13:58:25 +00:00
88b0a7d2e1 refactor: move serviceenabled to deskflow settings 2025-03-13 13:58:25 +00:00
5fa70d0d0a refactor: move ProcessMode to Settings
newKey core/processMode
remove processmode from app config
2025-03-13 13:58:25 +00:00
d01c07cab8 refactor: move screenName to Settings
newkey: core/screenName <= General/screenName
remove screenName from AppConfig
2025-03-13 13:58:25 +00:00
6834862413 refactor: move logFile to Settings
newKey log/file <= General/logFilename
remove logfilename from appConfig
2025-03-13 13:58:25 +00:00
4273fe2318 refactor: move logLevel and loglevelText to Settings
newKey: log/level <= General/logLevel2
remove logLevel from AppConfig
2025-03-13 13:58:25 +00:00
266a4a5edf refactor: move logToFile to Settings
newkey: log/logToFile <= General/logToFile
remove logToFile from AppConfig
2025-03-13 13:58:25 +00:00
5e6381c88a refactor: move port to Settigns
newkey: core/port <= General/port
remove port from AppConfig
2025-03-13 13:58:25 +00:00
9aa1d6b79d refactor: move networkinterface to Settings
newkey: core/interface <= General/interface
remove networkinterface from appconfig
2025-03-13 13:58:25 +00:00
d45d6baacb refactor: move langageSync to Settings
newkey: client/languageSync <= General/languageSync
removed languageSync from appconfig
2025-03-13 13:58:25 +00:00
a887ac066c refactor: move invertscrolling to Settings
newkey: client/invertscrolldirection <= General/invertScrollDirection
remove invertScrollDirection from AppConfig
2025-03-13 13:58:25 +00:00
787a48424e feat: remove need for AppConfig from serverConnection 2025-03-13 13:58:25 +00:00
b20d6361d6 refactor: move external configfile to Settings
newkey: server/externalConfigFile <= General/configFile
remove configFile from AppConfig
2025-03-13 13:58:25 +00:00
b833ca7a45 refactor: move appconfig useExternal config to Settings
newkey: server/externalConfig <= General/useExternalConfig
remove useExternalConfig from appConfig
2025-03-13 13:58:25 +00:00
43eab1f04c feat: remove need for AppConfig in Client Connection 2025-03-13 13:58:25 +00:00
dc9e104f8c refactor: move serverHostname to Settings
newKey: client/remoteHost <= General/serverHostName
remove serverHostname from AppConfig
2025-03-13 13:58:25 +00:00
f456aab196 refactor: move serverBinary to Settings
newkey: server/binary <= General/coreServerBinary
remove coreServer from AppConfig
2025-03-13 13:58:25 +00:00
de3b9d8e2e refactor: move clientBinary to Settings
newkey: client/binary <= General/coreClientBinary
remove coreBinary from AppConfig
2025-03-13 13:58:25 +00:00
b7960eecb4 refactor: move preventSleep to Settings
newkey: core/preventSleep <= General/preventSleep
remove prevent sleep from app config
2025-03-13 13:58:25 +00:00
03f142977f refactor: move lastVersion to Settings
newkey: core/lastVersion <= General/lastVersion
Remove from app config
2025-03-13 13:58:25 +00:00
5360fb3c89 refactor: move requirepeerchecking to Settings
newkey: security/checkpeerfingerprints <= General/requireClientCerts
remove requireClientCerts from appconfig
2025-03-13 13:58:25 +00:00
4eb7ea3491 feat: tlsUtility no longer needs AppConfig, tlsUtility takes a parent object 2025-03-13 13:58:25 +00:00
5642879a21 chore: connect up Settings changed signal to mainwindow 2025-03-13 13:58:25 +00:00
737328d7b0 refactor: move TlsCertPath to Settings
newkey: security/certPath <= General/tlsCertPath
remove tlsCertPath from appConfig
2025-03-13 13:58:25 +00:00
bee0f84556 refactor: move tlsKeyLength to Settings
newkey: security/keySize <= General/tlsKeyLength
removed tlsKeyLength from appconfig
2025-03-13 13:58:25 +00:00
2721de220a refactor: move tlsEnabled to Settings
newkey: security/tlsEnabled <= General/cryptoEnabled
remove tlsEnabled from appconfig
2025-03-13 13:58:25 +00:00
4c6195cc5d refactor: move windowgeometry to Settings
newkey: gui/windowGeometry <= General/mainWindowSize and General/mainWindowPosition
mainWindowSize and Position remove from `AppConfig`
2025-03-13 13:58:25 +00:00
1e46bd2727 refactor: move CloseReminder setting to Settings
newkeyL gui/closeReminder <= General/showCloseReminder
remove closeReminder from `AppConfig`
2025-03-13 13:58:25 +00:00
54ecdad101 refactor: move startedBefore settings to Settings
newkey core/startedBefore <= General/startedBefore
startedBefore has been removed from `AppConfig`
2025-03-13 13:58:25 +00:00
51a749b109 refactor: move closeToTray setting to Settings
newkey: gui/closeToTray <= General/closeToTray
remove closeToTray from `AppConfig`
2025-03-13 13:58:25 +00:00
788f6c3eb2 refactor: Move update check setting to Settings
newkey: gui/enableUpdateCheck <= General/enableUpdateCheck
remove update check from `AppConfig`
2025-03-13 13:58:25 +00:00
e01c595071 refactor move Tray icon setting to Settings
newKey: gui/symbolicTrayIcon <= General/colorfulIcon
the colorfulIcon settings has been removed from `AppConfig`
2025-03-13 13:58:25 +00:00
bcd90434a2 refactor: move autohide setting to Settings
newkey: gui/autoHide <= General/autoHide
auto hide has been removed from `AppConfig`
2025-03-13 13:58:25 +00:00
698fd3f83c refactor: move logExpanded to Settings
newkey: gui/logExpanded <= General/logExpanded
remove logExpanded AppConfig
2025-03-13 13:58:25 +00:00
2a53d4f187 refactor: unittest use Settings 2025-03-13 13:58:25 +00:00
53487e757b feat: New Settings class 2025-03-13 13:58:25 +00:00
ef315183f3 chore: rm unused ARCH:getPlatform 2025-03-13 12:25:25 +00:00
8b1e8dfd9f chore: rm unused CoreTool::getArch 2025-03-13 12:25:25 +00:00
b73aceee7d chore: remove unused Arch::isWOW64 method 2025-03-13 12:25:25 +00:00
3b811a1bd0 chore: remove unused Arch::getOsName 2025-03-13 12:25:25 +00:00
a099276e4e refactor: Move Windows SendSAS call to new thread
Moving the SAS event wait and SendSAS call prevents blocking the main thread allowing for more responsive watchdog (e.g. faster restart Core client/server on session switch).
2025-03-12 12:18:32 -04:00
38f8159e9d refactor: Update global event names to use project proper name 2025-03-12 12:18:32 -04:00
87fb06781c refactor: Change shutdownExistingProcesses to static in MSWindowsWatchdog 2025-03-12 12:18:32 -04:00
b9017de881 refactor: Use simpler lock_guard for Windows daemon set process config 2025-03-12 12:18:32 -04:00
24d1d4e620 refactor: Simplify lock_guard usage by removing explicit mutex type 2025-03-12 12:18:32 -04:00
3bcc1e11ed chore: Move Windows event constants to constants file 2025-03-12 12:18:32 -04:00
d26c75a784 refactor: Move Windows specific constants to #ifdef 2025-03-12 12:18:32 -04:00
5b091dee56 refactor: Rename SAS IPC event name to be more specific 2025-03-12 12:18:32 -04:00
3344644d2e chore: Remove old ctrl+alt+del PostMessage call (for Windows XP and below) 2025-03-12 12:18:32 -04:00
39e7f60c5a build: Get minor MSVC version from host registry 2025-03-12 08:04:16 -04:00
57d1e42eca feat: Check MSVC redist version in WiX installer 2025-03-12 08:04:16 -04:00
cd45164e40 chore: Clean up unused definitions and includes in ArchMiscWindows 2025-03-11 16:38:12 +00:00
0ed583a7fe refactor: Bootstrap logging for Windows runtime check 2025-03-11 16:38:12 +00:00
751c869435 feat: Use EnumProcessModules to search loaded modules) 2025-03-11 16:38:12 +00:00
4cfeadf0be fix: Remove redundant check in runtime DLL condition
For some reason `&& hModule` was added to the end of the condition, which totally breaks the logic for when the DLL is not found.
2025-03-11 16:38:12 +00:00
402baf3bde docs: Add doc comments for ArchMiscWindows 2025-03-11 16:38:12 +00:00
d199130b43 chore: Replace local include with standard library include for set 2025-03-11 16:38:12 +00:00
758c1044b5 ci: pin lint action to use clang-format 20.1.0 2025-03-11 10:57:51 -04:00
6e8952c8a0 chore: update formating for clang-format 20.1.0 2025-03-11 10:57:51 -04:00
bb38ad0766 chore: Rename TLS constants for consistency 2025-03-10 18:57:29 +00:00
bc96ddebdd Release v1.20.1
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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (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-03-07 17:00:10 +00:00
80606ef040 fix: Add check for Visual C++ Redistributable installation in WiX patch 2025-03-07 16:14:49 +00:00
836d9b9a2b chore: Disable action on 3rd Windows daemon failure
Indefinitely restarting the daemon is annoying as it makes problems harder to diagnose.
2025-03-07 16:14:49 +00:00
f2063f9e05 fix: Allow compiling on VS2019 for contributors with old IDEs 2025-03-07 09:26:43 -05:00
a74d792b5b fix: mac os icon mask
fixes #8310
2025-03-07 13:30:18 +00:00
256ba2411b refactor: move qt automoc, uic and rcc to a single place in Librarires.cmake 2025-03-07 13:16:09 +00:00
0a23e62093 refactor: replace version.h with kDisplayVersion const 2025-03-07 13:16:09 +00:00
e38a8e6b15 build: build lib/common as static library 2025-03-07 13:16:09 +00:00
6f022ff700 chore: Format XML for better readability in wix-patch.xml 2025-03-07 07:39:36 -05:00
265c2c2a2c chore: Fixed Windows service description in wix-patch.xml 2025-03-07 07:39:36 -05:00
1594b8e760 docs: Make Windows MSVC redist requirement stand out 2025-03-07 07:16:46 -05:00
029cb8fc0b build: do not ship vc msm file, link the redist in the readme 2025-03-06 19:17:53 +00:00
8e236e7e5c build: win32 do not bind vc++ when building 2025-03-06 19:17:53 +00:00
38b2798bb7 chore: remove unused common/stdfstream 2025-03-06 19:17:53 +00:00
d580dfba57 chore: remove unused common/stdsstream 2025-03-06 19:17:53 +00:00
da4237f349 chore: rm unused common/stdbitset.h 2025-03-06 19:17:53 +00:00
a78d1acc71 chore: remove unset variable in arch lib linking 2025-03-06 19:17:53 +00:00
24d5b26da2 build: remove extra private link to openssl::applink 2025-03-06 19:17:53 +00:00
9c81f1c045 build: moving find_package for openssl to net/CMakeLists.txt 2025-03-06 19:17:53 +00:00
899a49d09a build: win32 Remove unneeded python dependency 2025-03-06 19:17:53 +00:00
3a4bf35e22 refactor: Remove unneeed find_packate calls for Qt Components. Qt is found by Libaraies.cmake and accesable to all items in the src folder 2025-03-06 19:17:53 +00:00
495331108b fix: Guard MSVC runtime version depending on compiler version 2025-03-06 10:45:57 -05:00
a7ce936d68 fix: Remove duplicate includes in deskflow-daemon.cpp 2025-03-05 13:59:26 -05:00
f6ccd2a25b feat: Show Git SHA in Windows daemon version number 2025-03-05 13:59:26 -05:00
5d310be807 chore: remove obsolete runWizard setting 2025-03-05 18:48:07 +00:00
bd674f546b fix: Show console on Windows for daemon -h and -f args 2025-03-05 18:04:07 +00:00
cc821f750d fix: Remove unnecessary private access modifier from DaemonApp.h 2025-03-05 18:04:07 +00:00
2485e993a4 chore: Improve bin RC and service description for Windows daemon 2025-03-04 13:36:47 +00:00
b5d12b8aa5 fix: Move version print line after file outputter is created 2025-03-04 13:36:47 +00:00
3ef5793beb Release 1.20.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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (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-03-03 16:37:24 -05:00
b64942e3a3 fix: Delete HKEY_LOCAL_MACHINE\SOFTWARE\Deskflow when clearing settings 2025-03-03 15:05:09 -05:00
9de268d293 chore: Reduce noisy log lines related to fingerprints not required by GUI 2025-03-03 13:31:18 -05:00
1f08cafffe fix: Use string data instead of path data for fingerprint logging 2025-03-03 13:31:18 -05:00
9eeda33293 fix: do not reset screenCorners on startup
fixes #8276
2025-03-03 17:26:48 +00:00
17bedb1072 fix: Correct parsing of screen corners
fixes #8231
2025-03-03 17:26:48 +00:00
8cca8440b7 fixes #7695 adjust the serverconfig clipboard max size label 2025-03-03 17:16:24 +00:00
b2dadba6fa refactor: serverdialog, use maximum for spinbox horizontal sizepolicy 2025-03-03 17:16:24 +00:00
4f057d706f refactor: serverconfigdialog, use suffix for spinboxes 2025-03-03 17:16:24 +00:00
5e69657176 chore: update windows rc descriptions fixes #8270 2025-03-03 16:32:08 +00:00
2638cce0c0 fix: Do stop the client on fingerprint dialog
fixes #8267
2025-03-03 16:16:57 +00:00
5eac984757 chore: Add mutex for process state management in MSWindowsWatchdog 2025-03-03 14:33:46 +00:00
1bd3f5060e refactor: Add Doxygen comments for MSWindowsWatchdog member functions 2025-03-03 14:33:46 +00:00
55b4cffd3f chore: Remove unused setStartupInfo member function from MSWindowsWatchdog 2025-03-03 14:33:46 +00:00
51ec36f23d chore: Set default values for m_foreground and m_activeDesktop MSWindowsWatchdog 2025-03-03 14:33:46 +00:00
58cb2b76de chore: Remove unused include in MSWindowsWatchdog.h 2025-03-03 14:33:46 +00:00
8d4a715b1c chore: Make MSWindowsWatchdog constructor explicit 2025-03-03 14:33:46 +00:00
997d4a9473 chore: Move free functions to top of Windows watchdog source 2025-03-03 14:33:46 +00:00
0f11b61576 chore: Reduce complexity of outputLoop in Windows watchdog 2025-03-03 14:33:46 +00:00
98aba612c0 chore: Improve loop stop log line in Windows watchdog 2025-03-03 14:33:46 +00:00
b0547f6713 chore: Use ref to const for openProcessForKill arg in Windows watchdog 2025-03-03 14:33:46 +00:00
40fefb9369 chore: Use string_view for MSWindowsWatchdog::setProcessConfig 2025-03-03 14:33:46 +00:00
48e1c43a01 chore: Add cspell words for Windows watchdog 2025-03-03 14:33:46 +00:00
d8d022e9fe chore: Scope constants in Windows watchdog 2025-03-03 14:33:46 +00:00
84194cf5ef chore: Use default init instead of ctor init Windows watchdog 2025-03-03 14:33:46 +00:00
cd5ba1382d chore: Clean up shutdownExistingProcesses (unused var and use if-init) in Windows watchdog 2025-03-03 14:33:46 +00:00
c84b4e3f00 refactor: Reduce complexity of mainLoop in Windows watchdog 2025-03-03 14:33:46 +00:00
be8029deb6 chore: Remove unused g_activeDesktop from Windows watchdog 2025-03-03 14:33:46 +00:00
dbb9b3bf5a chore: Remove unused trimDesktopName from Windows watchdog 2025-03-03 14:33:46 +00:00
32bf9aa02a chore: Use const auto instead of enum for kOutputBufferSize in Windows watchdog 2025-03-03 14:33:46 +00:00
0891afdd63 chore: Use nullptr instead of NULL in Windows watchdog 2025-03-03 14:33:46 +00:00
f7ab6aba58 chore: Remove unused includes from Windows watchdog 2025-03-03 14:33:46 +00:00
74e8a63dcd chore: Remove unused getCommand from Windows watchdog 2025-03-03 14:33:46 +00:00
475172597a chore: Remove unused m_ready from Windows watchdog 2025-03-03 14:33:46 +00:00
8c30ed7a59 chore: Remove unused m_autoDetectCommand and ctor arg from Windows watchdog 2025-03-03 14:33:46 +00:00
44f72a29e9 refactor: Use state machine for Windows daemon watchdog 2025-03-03 14:33:46 +00:00
4db77ba2f7 chore: Improve function name for setting daemon process config 2025-03-03 14:33:46 +00:00
5e29fa93ac chore: Quieten noisy daemon IPC server read log messages 2025-03-03 14:33:46 +00:00
ce8c262a9c build: mac os rpath for client, server and core 2025-02-28 23:04:33 +00:00
3b30065ec3 chore: Prevent static analysis from complaining about new (idiomatic Qt) 2025-02-28 17:58:16 +00:00
54483f26ba refactor: Use member instead of passing param in daemon main loop 2025-02-28 17:58:16 +00:00
13ed447a93 chore: Move daemon constants to constants file 2025-02-28 17:58:16 +00:00
74812fbf75 chore: Remove dead code, function isServerCommandLine from daemon 2025-02-28 17:58:16 +00:00
bdf5a0f352 chore: Clearer naming for static daemon loop functions 2025-02-28 17:58:16 +00:00
b425b43801 fix: Use desktop process mode for core process tests rather than random value 2025-02-28 17:58:16 +00:00
f0c60f5ca9 chore: Improve logging for pipe readers in Windows watchdog 2025-02-28 17:58:16 +00:00
b2ca9bc17b chore: Remove dead code from --debug-service-wait arg 2025-02-28 17:58:16 +00:00
f46474c9f2 refactor: Use WaitForSingleObject instead of sleep for Windows process shutdown 2025-02-28 17:58:16 +00:00
a99d408be1 chore: Improve logging related to Windows daemon start/stop/install/uninstall 2025-02-28 17:58:16 +00:00
19c41e2ac5 fix: Improve Windows daemon stop speed by using non-blocking pipes and shorter sleep times 2025-02-28 17:58:16 +00:00
890fd61e6e refactor: Move ownership of Windows daemon file log outputter to Log 2025-02-28 17:58:16 +00:00
1c42552b3b refactor: Begin logging to file as soon as Windows daemon starts 2025-02-28 17:58:16 +00:00
a6956b9516 refactor: Improve Daemon uninstall exception flow 2025-02-28 17:58:16 +00:00
5a7f6bd1c0 refactor: Remove old Windows TCP IPC implementation (replaced by Qt equivalent) 2025-02-28 17:58:16 +00:00
a3b0ec28fc refactor: Improve logging message for process backoff and reset failure count when no command is set 2025-02-28 17:58:16 +00:00
fa1ab27ee9 refactor: Clear watchdog command setting to prevent persistence on daemon restart 2025-02-28 17:58:16 +00:00
e07a2efbcc refactor: Implement Windows event loop in AppUtilWindows for graceful shutdown handling 2025-02-28 17:58:16 +00:00
e967944c1e fix: Strip line endings for Windows daemon file logging
Windows file logger and `OutputDebugString` already add new lines, so remove the ones added by the Core.
2025-02-28 17:58:16 +00:00
389028ccf9 refactor: Connect socket events in ctor for daemon IPC client 2025-02-28 17:58:16 +00:00
dc6383d593 refactor: Properly disconnect and clean up previous daemon file tail on connection 2025-02-28 17:58:16 +00:00
1c7adf5add refactor: Allocate daemon app and it's thread on stack to reduce memory leak risk 2025-02-28 17:58:16 +00:00
5743db3040 feat: Apply log level on IPC connection 2025-02-28 17:58:16 +00:00
5733541b2a feat: Tail daemon log file instead of using IPC log outputter 2025-02-28 17:58:16 +00:00
5980fb741b refactor: Move daemon process stop command to new Qt IPC 2025-02-28 17:58:16 +00:00
7c672b06d8 refactor: Update IPC server to handle log level and elevate mode changes 2025-02-28 17:58:16 +00:00
53038760de refactor: Use core mode for daemon install on Windows 2025-02-28 17:58:16 +00:00
d6228416a1 refactor: Send log level to daemon over IPC instead of when sending command 2025-02-28 17:58:16 +00:00
80cc323f5a refactor: Improve logging and error handling for SendSAS function in Windows watchdog 2025-02-28 17:58:16 +00:00
90e63e2e9e refactor: Exclude current process when killing existing process from Windows daemon 2025-02-28 17:58:16 +00:00
24c57e46e2 refactor: Run legacy daemon loop in thread 2025-02-28 17:58:16 +00:00
e72faf1446 feat: Connect to daemon IPC on start request 2025-02-28 17:58:16 +00:00
c1d7474700 feat: Restart process from daemon through new Qt IPC impl 2025-02-28 17:58:16 +00:00
0d2d9f385d feat: Implement basic IPC connection between Daemon and GUI 2025-02-28 17:58:16 +00:00
c0094554b1 feat: Convert daemon to Qt app and introduce Qt local server 2025-02-28 17:58:16 +00:00
95603c82ec refactor: Improve logging and args for Windows daemon install/uninstall 2025-02-28 17:58:16 +00:00
8debc1ea7f chore: SettingsDialog remove set defaults from ui file 2025-02-28 16:51:33 +00:00
b4f703562d chore: Settings Dialog do not open with the checkbox for peer certificates having active focus 2025-02-28 16:51:33 +00:00
34b61cc8cd fix: #8259 track a client and server list
fixes 8259
2025-02-28 13:17:26 +00:00
551e0211ac ci: don't send temp screenshots to flathub, fix lint failure for not doing so 2025-02-28 13:06:32 +00:00
0fc5368253 fix: Prevent access violation by moving events, arch, and log objects to top of stack in Windows daemon
This is how we do it in the server/client apps, so it makes sense to mirror the same pattern.
2025-02-28 12:57:15 +00:00
383b39636e chore: Remove dead code; unused outputter param on runInner functions 2025-02-28 12:57:15 +00:00
f56a3ba305 refactor: Rename param for Log::insert to make adoption clearer 2025-02-28 12:57:15 +00:00
0bca094fce chore: Explain use of new for all log outputters 2025-02-28 12:57:15 +00:00
220711c2d7 fix: Only use MS debug outputter when the process is daemonized 2025-02-28 12:57:15 +00:00
66acf9038b fix: Solve double-free by letting Log adopt FileLogOutputter in Windows daemon 2025-02-28 12:57:15 +00:00
aa5a704131 chore: settings dialog remove unused includes 2025-02-27 15:17:13 +00:00
bae494476b refactor: Settings Dialog, update security layout 2025-02-27 15:17:13 +00:00
3ae2de52f4 refactor: SettingsDialog set icons in ui where possible 2025-02-27 15:17:13 +00:00
088d69fec8 refactor: SettingsDialog, use standard object names 2025-02-27 15:17:13 +00:00
63744ddbd6 refactor: settingsdialog, remove autoconnect slots 2025-02-27 15:17:13 +00:00
2d04e0be4d refactor: SettingDialog do not connect from inside the ui file 2025-02-27 15:17:13 +00:00
4f2ef7174a refactor: do not stop sever on new client fingerprint, track the last print we checked and if we are chekcing it do not show a new box 2025-02-27 15:07:50 +00:00
1003de21b5 refactor: do not show error if the fingerprint database is not created yet 2025-02-27 15:07:50 +00:00
b3866b69b2 chore: Fix order of MainWindow ctor init list to match header 2025-02-27 15:07:50 +00:00
9bd7fce45c refactor: MainWindow: Update name change 2025-02-27 13:41:55 +00:00
f0d33ce9de chore: aboutDialog remove unused static strings 2025-02-27 13:32:24 +00:00
07bf6de093 chore: add icon credit to about box 2025-02-27 13:32:24 +00:00
9c463a557a docs: Expand version field on bug_report.yml 2025-02-27 05:12:43 -08:00
566d716feb chore: Remove unused config lines from sonar-project.properties 2025-02-27 04:55:13 -08:00
e7e518d76e refactor: don't quote debug line 2025-02-26 11:52:03 +00:00
08be9fa33f chore: use a style for the flat buttons 2025-02-26 11:52:03 +00:00
72d27c70e0 refactor: gui::styles use QStringLiteral 2025-02-26 11:52:03 +00:00
6de1920d88 chore: remove bufferedLogView 2025-02-25 06:53:57 -08:00
2d3f64f662 chore: cleanup additional item missed in when removing the legacy tray icon 2025-02-25 06:53:57 -08:00
193c28af53 fix: settings dialog can have tls options enabled when they should not be leading to a case where tls gen fails as it not enabled fixes 7883 2025-02-25 06:34:47 -08:00
5b54849fd6 refactor: mainwindow simplify the mode selection UI 2025-02-25 14:18:32 +00:00
b7eb5c467b feat: Remove Inverse Connections Option 2025-02-25 14:18:32 +00:00
f9b6bcc950 refactor: mv net/InverseSockets/SslLogger => net/SslLogger 2025-02-25 14:18:32 +00:00
5d5e32a676 refactor: remove setupwizard 2025-02-25 13:21:39 +00:00
d52939a3fc fix: raise mainwindow on update check dialog
fixes #8234
2025-02-25 13:11:35 +00:00
173e521004 ci: Set timeout for windows job to 30 minutes 2025-02-25 04:07:10 -08:00
038c8af949 ci: use pkg list for vcpkg on ci builds 2025-02-25 04:07:10 -08:00
9f68514577 ci: use Qt install action for windows 2025-02-25 04:07:10 -08:00
d5624ba65e ci: use Qt 6.8.2 for Qt action installs
update vcpkg manifest to newest vcpkg release
2025-02-25 04:07:10 -08:00
d5ee57f349 build: vcpkg rm nolonger used openssl tools 2025-02-25 04:07:10 -08:00
6a08305338 fix: log expanded on start up and windows no resizeable 2025-02-20 22:26:21 +00:00
05ed47be2e fix: server resets to listing state with no clients connected 2025-02-20 21:16:48 +00:00
29d04ea8e0 chore: update lib/gui/constants to use QStringLiterals 2025-02-20 21:16:48 +00:00
ab118a3aa3 chore: remove unused style items 2025-02-20 21:16:48 +00:00
10e5a305bb refactor: remove redundant client / server staus labels, the status label provides this info already 2025-02-20 21:16:48 +00:00
e9c8965066 refactor: mainwindow move tls version to securty tooltip 2025-02-20 21:16:48 +00:00
53d2b3bd2e refactor: MainWindow move update info to status tray 2025-02-20 21:16:48 +00:00
d4cc66a9f9 refactor: move Tls Label to status bar 2025-02-20 21:16:48 +00:00
18cc8565f9 refactor: mainwindow use status bar for status items 2025-02-20 21:16:48 +00:00
caee2b149a chore: move version check log to debug, fixes #8224 2025-02-20 11:15:58 +00:00
e808eed413 refactor: Improve Windows daemon failure backoff for faster client restarts on first fail 2025-02-19 18:23:10 +00:00
16c57d7960 refactor: Improve log message related to desk switch on Windows 2025-02-19 18:23:10 +00:00
200d32db80 chore: Improve log message for leave screen warning on Windows 2025-02-19 18:23:10 +00:00
2322f312a9 refactor: Improve logging for errors when setting/getting cursor pos on Windows 2025-02-19 18:23:10 +00:00
09c157f9e1 fix: Remove --exit-pause to stop "press any key to exit..." showing when Windows daemon kills server/client 2025-02-19 18:23:10 +00:00
c9a360a144 fix: Restore active desktop name check in Windows daemon
- Use `PIPE_NOWAIT` to skip empty stderr output on process output reading from Windows daemon watchdog
- Use `CreateProcess` result to determine when to call `CloseHandle` in Windows daemon watchdog
- Trim output from active desktop process in Windows daemon watchdog
- Improve error logging in Windows daemon watchdog
2025-02-19 18:23:10 +00:00
3de2c1bcf0 fix: missing reuse info for SECURITY.md file 2025-02-18 08:04:26 -05:00
73292f05c8 docs: Create GitHub recommended security policy file 2025-02-18 07:57:08 -05:00
48407d7f8f refactor: simplify MainWindow::checkFingerprints 2025-02-18 12:12:41 +00:00
83c190c385 refactor: use better name to describe for the tlsEnabled var in messages , and correct the name in virtual method 2025-02-18 12:12:41 +00:00
ad79ba907d refactor: Mainwindow localFingerPrintDb => localFingerprintDb 2025-02-18 12:12:41 +00:00
9294f2a026 refactor: use a function to get the trustedFingerprintDb 2025-02-18 12:12:41 +00:00
bfb64f0653 fix: Generate TLS certificate before generating TLS fingerprint 2025-02-17 11:55:28 -05:00
6f66fe767f fix: inabliity to resize when first opening if log open on startup 2025-02-17 11:55:28 -05:00
63846292ff refactor: update tooltips for security icon
add check when appTls State Changes
2025-02-17 11:55:28 -05:00
2f8b78e2a6 refactor: new private MainWindow method localhostFingerprintDb 2025-02-17 11:55:28 -05:00
8d0491f1ad refactor: narrow use of stdString in mainwindow 2025-02-17 11:55:28 -05:00
79dc858446 chore: modify client trying to connect dialog to inform user the new client needs to be put in the layout when both tls is enabled and peer key checking is enabled , otherwise show the old dialog asking to allow the client to connect 2025-02-17 16:26:29 +00:00
0667f5de73 refactor: allow the fingerprint dialog to show local keys and remote if needed 2025-02-17 16:26:29 +00:00
e51956e2c7 feat: Client ID verification
based on barrier: 229abab
  Fixes: CVE-2021-42072, CVE-2021-42073
2025-02-17 16:26:29 +00:00
60c7e512f2 refactor: use enum for secure sockets
based on barrier: 57769cf
2025-02-17 16:26:29 +00:00
e996471e37 refactor: use enum for connections security level
based on barrier: 5c7d719
2025-02-17 16:26:29 +00:00
638349b48a feat: add config for client cert required
based on barrier: 8bc280e0
2025-02-17 16:26:29 +00:00
3e7b14cbd4 fix: Attempt to load SSL certs when connecting
based on barrier: c0ce8937, 4d73ed9f
2025-02-17 16:26:29 +00:00
3abf38aff9 ci: Improve flatpak builder to include arm flatpaks, linting and validation check 2025-02-17 15:38:19 +00:00
12a56f4df0 chore: add updated screenshots from deskflow.org 2025-02-17 15:38:19 +00:00
9bd5fe9afb chore: Replace deprecated developer_name tag with developer block 2025-02-17 15:38:19 +00:00
6ff5d2d5d3 fix: Update local fingerprint label after fingerprint regeneration 2025-02-14 09:42:47 -05:00
c04610c561 chore: use fancy-checkout v1 tag 2025-02-14 13:46:44 +00:00
67e2f56724 chore: update daemon description and icon 2025-02-14 12:44:29 +00:00
5288546231 refactor: use const for tlsDb expected size 2025-02-14 12:44:29 +00:00
d8e311fe59 fix: only regenerate the tls certificate if tls is enabled and we do not already have a certificate 2025-02-14 12:44:29 +00:00
500067a778 fix: generate cert if tls is on and its not found
fixes #8191
  fixes #8192
2025-02-14 12:44:29 +00:00
3c12915fd3 fix: Security icons showing with fresh install
fixes #8170
2025-02-14 12:20:48 +00:00
eb19547b45 refactor: mainwindow force regen of local prints if tls is enabled with a sha256 key 2025-02-12 13:41:45 +00:00
65eed64f04 refactor: new fingerprintdialog 2025-02-12 13:41:45 +00:00
fbaa0a8433 feat: use sha256
based-on: a428b61c7d
 based-on: b7757fbd68
 based-on: a238b27879
2025-02-12 13:41:45 +00:00
743c3feef3 refactor: use FingerprintData for fingerprints
based-on: 7cced74119
2025-02-12 13:41:45 +00:00
d0d5182425 refactor: use new Fingerprint database
based-on: 50534ecb43
   based-on: be8ba0d132
2025-02-12 13:41:45 +00:00
298b1047c4 refactor: add ssl consts into common/constansts 2025-02-12 13:41:45 +00:00
e257501072 chore: add Fingerprint Db Tests 2025-02-12 13:41:45 +00:00
aaa64e986e feat!: Add support for FingerPrintDatabase 2025-02-12 13:41:45 +00:00
7d79a4d729 chore: TlsCertificate, remove unused items 2025-02-12 13:41:45 +00:00
2058519e57 refactor: generate Certs using secureUtils method 2025-02-12 13:41:45 +00:00
5a71d63923 refactor: secureutils add pemFileCertFingerprint 2025-02-12 13:41:45 +00:00
fb32f141cc refactor: secureUtils fingerprint method
Signed-off-by: sithlord48 <sithlord48@gmail.com>
2025-02-12 13:41:45 +00:00
39da277ead refactor: use vector<uint8_t> for keys 2025-02-12 13:41:45 +00:00
a98f2d745e refactor: move SecureSocket::formatFingerprint -> SecureUtils std::string formatSSLFingerprint
based on 0e406d4918
         9d8e1faf59
         b793675ef8
2025-02-12 13:41:45 +00:00
524c3b0e7b refactor: Change log level for active desktop query to debug 2025-02-11 13:06:51 +00:00
e420b9b986 chore: small cmake cleanup
lib/platform: use the REQUIRED_QT_VERSION when looking for Qt Dbus module
  lib/deskflow: rm extra space in cmake file
2025-02-11 13:06:51 +00:00
cb14d158cc refactor: Cleanup core binary help text 2025-02-11 13:06:51 +00:00
ac6809d40f refactor: Rename core process start/stop function names 2025-02-11 13:06:51 +00:00
92603df93d fix: Out of order m_trayIcon in ctor init,
chore: remove unused m_btnCancel
2025-02-11 13:06:51 +00:00
a5f28616f4 chore: df-gui mainwindow directly connect more methods without intermediarty methods 2025-02-11 13:06:51 +00:00
cad1243d75 chore: windows, set icon for deskflow-core 2025-02-11 13:06:51 +00:00
610786ad2e chore: clean up extra empty lines 2025-02-11 13:06:51 +00:00
d093894743 fix: [test]fix #8174, create empty config file under HOME dir
The server always create an empty config file in user's home dir, set tmp config file path for the unittest in order to fix this issue.

Log: Fix unittest create empty config file.
2025-02-11 07:13:31 -05:00
942070950d refactor: MainWindow do not use onNames 2025-02-04 18:11:41 +00:00
ddc24ffb22 refactor: MainWindow don't use lambda where direct connect can happen 2025-02-04 18:11:41 +00:00
b14de6f9e2 refactor: MainWindow conform to naming standards 2025-02-04 18:11:41 +00:00
10c50c9740 docs: Link to the known wayland issues in the readme 2025-02-03 12:45:22 +00:00
60577f00dc chore: add Icons for list-add , list-remove and document-edit 2025-02-03 12:36:18 +00:00
fedd9d33c9 refactor: serverConfig finish renaming, improve logic 2025-02-03 12:36:18 +00:00
ae30237f90 refactor: ServerConfigDialog/tabAdvanced no autoconnections, use naming std 2025-02-03 12:36:18 +00:00
169422a0eb refactor: ServerConfigDialog hotkeyTab, no auto connections use naming std 2025-02-03 12:36:18 +00:00
76fd40a3ec refactor: ServerConfigDialog/tabComputers, no autoconnect slots, use new names 2025-02-03 12:36:18 +00:00
816d66b703 refactor: Don't use autoconnect slots for the button box 2025-02-03 12:36:18 +00:00
774f1fded9 fix: Add client dialog not showing for new clients 2025-02-03 12:36:18 +00:00
9365091c79 Release v1.19.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 / reuse-lint (push) Waiting to run
Continuous Integration / lint-check (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 / 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-40-arm64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (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 / 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 / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (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-01-31 07:07:58 -05:00
9dcfb6cc9b fix: Wrong cb_activated signature in input-capture
The options argument was missing so the argument data wasn't the right
one and the method cb_disabled was actually called on a GVariant*
instead on a PortalInputCapture*
2025-01-30 14:50:08 -05:00
e2c3af4e5e fix: readd the newScreenWidget 2025-01-30 15:36:21 +00:00
26367635d9 refactor: QTextStream& screen::writeScreensSection(QTextStream&) -> QString Screen::screenSection()
refactor: QTextStream& screen::writeAliasSection(QTextStream&) -> QString Screen::aliasSection()
2025-01-30 15:36:21 +00:00
0ba35fca7a refactor: clean up data method of model 2025-01-30 15:36:21 +00:00
beb4069845 fix: Screen Missing Icons on server config
Fixes#8155
2025-01-30 15:36:21 +00:00
71b7e819a9 refactor: remove smaller security icons 2025-01-29 21:19:39 +00:00
55772e1133 chore: remove unused ARCH::vsnprintf 2025-01-29 21:07:31 +00:00
43c6bec790 Revert "feat!: Add support for FingerPrintDatabase"
This reverts commit 8f219b735e.
2025-01-28 19:31:03 -05:00
8f219b735e feat!: Add support for FingerPrintDatabase 2025-01-28 20:33:11 +00:00
59ebb6fde4 refactor: force mac os to use the larger security icon in the status area 2025-01-28 16:19:51 +00:00
30a37a8a50 chore: Switched event buffer from Carbon to GCD 2025-01-28 13:11:24 +00:00
415fc3ea63 docs: update openSSL exception link 2025-01-28 12:48:36 +00:00
7f6caec162 chore: reset screen xywh on update_shape
based on https://github.com/input-leap/input-leap/pull/2167
2025-01-28 11:33:55 +00:00
d61bce4534 ci: Add reuse compliance check 2025-01-27 17:05:47 -05:00
1085df54ed refactor: Reuse compliance
build files and documentation: MIT
  images / sources: GPL-2.0-only
  breeze icons: LGPL-2.0-only
  Microsoft MSM file, vc redist license
2025-01-27 17:05:47 -05:00
480776cb38 chore: remove extra gitignore files 2025-01-27 17:05:47 -05:00
2ca1c69335 refactor: move LICENSE_EXCEPTION info into to LICENSES folder 2025-01-27 17:05:47 -05:00
2c2045b6bb docs: Fixed incorrect link on README.md for rewarded bounties 2025-01-27 09:35:25 -05:00
9d3b32c824 Fix a typo in SettingsDialog
compatability =>
compatibility

Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
2025-01-27 08:29:43 -05:00
c2b3f551d2 chore: String update copyright 2025-01-25 15:43:44 +00:00
f255d77eee chore: add string::fromHex 2025-01-25 15:43:44 +00:00
3125eba014 chore: add string::fromHexChar 2025-01-25 15:43:44 +00:00
9b1489384c chore: String toHex should return a string not do inplace conversion 2025-01-25 15:43:44 +00:00
ac54a97a3f chore: rm use of "Arch" from "String" 2025-01-25 15:43:44 +00:00
0112a5eac8 docs: Update README.md to raise awareness of bounties
Right now we're only seeing bounty interest through Algora's network of developers.

We can increase the number of potential contributors aware of bounties by making this prominent on our README.
2025-01-24 09:22:38 -05:00
a7beed48f8 chore: remove unused placeholder.png file 2025-01-23 22:07:52 +00:00
cc4701a0c2 fix: Fix detect language
It perhaps no variant for a keyboard's layout, set a default value in order to continue detect local language.

Log: Fix detect language.
2025-01-23 16:54:14 -05:00
30263f3c70 ci:use -1.0 as tag for flatpak builder 2025-01-23 21:44:19 +00:00
4c3d6c7080 refactor: move rc_template.rc.in -> windows.rc.in
fixes: #8130
2025-01-23 21:28:57 +00:00
90661c9f13 chore: enable cpack as DEB for deepin|uos
The deepin and uos are debian liked OS, but they do define "ID_LIKE".

Log: enable cpack as DEB for deepin|uos.
2025-01-23 19:26:49 +00:00
2040df435f fix: #8107: Remove legacy tray code 2025-01-23 19:16:29 +00:00
62f53bbb92 fix: check bsdpath for evdev fixes #8112 2025-01-21 17:15:42 -05:00
f49f616ad6 fix: correctly mask symbolic icon on mac os 2025-01-21 17:15:18 -05:00
6eec07b6dc refactor: Use correct log level for failure messages
This change may help us turn up some everyday problems in the field that get missed due to not using debug log level.

This could also make the log a bit noisier, so at a later date we may need to downgrade anything that is not actually a failure/warning.
2025-01-21 16:46:34 -05:00
b65b3678c7 fix: #8119, covering all Unix-like OSes including BSD
Fixes #8119 (using platform variables)
2025-01-21 12:14:42 -05:00
1ec6d02339 refactor: use theme icons for on settings dialog and mac os tray 2025-01-21 11:22:11 -05:00
6b29e1c6ef ci: use qt 6.7.3 for mac os 2025-01-21 11:22:11 -05:00
b13afbbbb9 Properly seek to start of keymap descriptor 2025-01-21 12:07:54 +00:00
f969e0a03b ci: add builder for ubuntu 25.04, fixes https://github.com/deskflow/deskflow/issues/7884 2025-01-21 06:36:37 -05:00
ffe8153c35 build: remove unused TM_IN_SYS_TIME define 2025-01-21 06:27:36 -05:00
afc736e2c8 build: remove unused STDC_HEADERS 2025-01-21 06:27:36 -05:00
ae7e2f70ce build: remove unused PTHREAD_CREATE_JOINABLE 2025-01-21 06:27:36 -05:00
9a1cb5941b build: remove unused define HAVE_X11_XKBLIB_H 2025-01-21 06:27:36 -05:00
fa35d2913d build: remove HAVE_X11_EXTENSIONS_XKBSTR_H define 2025-01-21 06:27:36 -05:00
1115d3287e build: remove HAVE_SYS_STAT define 2025-01-21 06:27:36 -05:00
46cfb281af build: remove HAVE_STRING_H define 2025-01-21 06:27:36 -05:00
365d6f76c2 build: remove HAVE_STRINGS_H define 2025-01-21 06:27:36 -05:00
05275b303f build: remove HAVE_STRFTIME define 2025-01-21 06:27:36 -05:00
535d241f7b build: remove unused STDINT define 2025-01-21 06:27:36 -05:00
3e9289328a build: remove unused INTTYPES define 2025-01-21 06:27:36 -05:00
bac86455d2 build: remove unused HAVE_MEMORY_H 2025-01-21 06:27:36 -05:00
b394f32c01 build: remove unused CXX_STDLIB define 2025-01-21 06:27:36 -05:00
312347bc17 build: remove unused CXX_MUTABLE define 2025-01-21 06:27:36 -05:00
6541ce3f84 build: remove unused CXX_EXTENTION define 2025-01-21 06:27:36 -05:00
b4a5b580bd build: remove unused CXX_CASTS define 2025-01-21 06:27:36 -05:00
d72fd2b3d9 build: remove unused ACCEPT_TYPE_ARG3 2025-01-21 06:27:36 -05:00
5ce9aaea13 build: remove has_BOOL define 2025-01-21 06:27:36 -05:00
cc6bfcc1c2 build: remove unused SIZE defines 2025-01-21 06:27:36 -05:00
efca38babc build: remove size_t define 2025-01-21 06:27:36 -05:00
401326e9d7 build: use CMAKE_PROJECT_NAME and CMAKE_PROJECT_PROPER_NAME to set our kAppName and KAppId 2025-01-21 06:27:36 -05:00
09bd4006d1 refactor: MainWindow, use system-run for the start button and action 2025-01-21 11:16:53 +00:00
c84a8c20c1 refactor: MainWindow, use ProcessStop for the stop action and button 2025-01-21 11:16:53 +00:00
b91681a125 refactor: MainWindow, add help-about icon 2025-01-21 11:16:53 +00:00
f578da16c0 refactor: MainWindow, Icon for the clear settings action 2025-01-21 11:16:53 +00:00
c583ab7d2c refactor: MainWindow, add icons for configure 2025-01-21 11:16:53 +00:00
e6ae6bd0d1 refactor: MainWindow, add document-save-as icon 2025-01-21 11:16:53 +00:00
d51437b6a1 refactor: MainWindow, add view-refreshIcon 2025-01-21 11:16:53 +00:00
6954a4dfa3 refactor: SettingsDialog use security-type icons for key length selector 2025-01-21 11:16:53 +00:00
24b2d9b0c1 refactor: MainWindow add application-exit icon 2025-01-21 11:16:53 +00:00
0adef8d781 refactor: MainWindow, Add tools-report-bug icon 2025-01-21 11:16:53 +00:00
3cce11f9d9 fix: missing setting colorful icon 2025-01-21 11:16:53 +00:00
0f5bcd6d12 fixes 8106, by adjusting the spacing of the about dialog 2025-01-21 11:06:37 +00:00
2ccf0c6639 docs: Indicate S1/S3 compatibility
Synergy 3 uses mDNS which makes it incompatible for now.
2025-01-20 08:34:53 -05:00
6bb84309b7 feat: Build Arm packages using githubs new arm runners 2025-01-20 08:06:20 -05:00
89ec18a8e4 feat: bake in light and dark icon theme 2025-01-20 10:42:29 +00:00
067d6810f3 chore: gui lib, remove unused include dirs 2025-01-19 09:39:54 -05:00
19920801fa build: gui lib use explicit sources 2025-01-19 09:39:54 -05:00
08ad64eb4d chore: remove unused deskflow-gui/AppDelegate 2025-01-19 09:39:54 -05:00
dc5e971043 build: setup bundle plist only on macOS 2025-01-19 09:39:54 -05:00
e0017c1c31 build: deskflow gui explict sources 2025-01-19 09:39:54 -05:00
e58e5c420b refactor: move macOS icon to res folder 2025-01-19 09:39:54 -05:00
ca8c405b5e chore: deskflow-gui, remove unused include_dirs 2025-01-19 09:39:54 -05:00
aff25415ff build: consolidate cmake vars more
move most project defines needed in cmake to the main file
2025-01-19 09:39:54 -05:00
5be1e9f9b9 build: setup a cmake rc template for all apps 2025-01-19 09:39:54 -05:00
3f3116da05 build: simplify the version.rc.in vars
remove the special cmake define for msversion and make it once in the rc
remove duplicate version vars in the rc and use the singe one twice
2025-01-14 21:42:43 +00:00
16396bdbaa build: Unify copyright into one cmake var 2025-01-14 21:42:43 +00:00
660a50d0cf chore: remove unused logo images 2025-01-14 21:22:05 +00:00
93cd71d046 refactor: Adjust the About dialog UI 2025-01-14 21:22:05 +00:00
90c081c889 chore: remove unneeded setVisible override and the unused mac os old tray code within it 2025-01-14 21:00:20 +00:00
a08b0c41e0 fix: always show the hide / show option in the tray menu
Some DE's are like mac os and prevent the user from using click to restore / hide the window
2025-01-14 21:00:20 +00:00
793f40e582 chore: remove basic_types.h 2025-01-14 20:30:45 +00:00
96092df4fc refactor: replace UInt32 with uint32_t 2025-01-14 20:30:45 +00:00
27eb83c981 refactor: replace SInt32 with int32_t 2025-01-14 20:30:45 +00:00
7487eeaa3a refactor: replace UInt16 with uint16_t 2025-01-14 20:30:45 +00:00
1ed49e7487 refactor: replace SInt16 with int16_t 2025-01-14 20:30:45 +00:00
ba11eba91e refactor: replace UInt8 with uint8_t 2025-01-14 20:30:45 +00:00
8ea20cf6da refactor: replace SInt8 with int8_t 2025-01-14 20:30:45 +00:00
ab61fcc007 chore: update readme's linux support. Removes distros list and show the ei / portal needs 2025-01-14 17:01:33 +00:00
f71db61bd3 build: Arch,PKGBUILD: rm arm6h , add all conflicts , correct license 2025-01-14 17:01:33 +00:00
626ff0a5fa chore: remove unused GUI_HOOK 2025-01-14 14:29:39 +00:00
7a72658963 refactor: copy more info with the about dialog info's copy button 2025-01-10 17:05:13 -05:00
b8d12a0895 build: mac os add entitlements 2025-01-10 21:48:55 +00:00
692860f9e9 build: macos bundle plist add hint to tell mac os its not allowed to kill the process
based on https://github.com/input-leap/input-leap/pull/2115"
2025-01-10 21:48:55 +00:00
4b6d0059c5 build: Use custom plist template
Customize the cmake used template so we can generate the plist
using configure file this will allow us to add several additional
keys we would not be able to otherwise add to our plist file
"
2025-01-10 21:48:55 +00:00
1dadc2ddf4 refactor: ActionDialog, Only allow resize when the screen list is visible 2025-01-10 21:39:26 +00:00
328a719d49 refactor: Use Computer in place of Screen for user facing strings 2025-01-10 21:39:26 +00:00
a9f55f8dfc chore: ActionDialog, update UI file to Qt6 format and clean unneed keys 2025-01-10 21:39:26 +00:00
f6dd2881c8 refactor: ActionDialog: disable action saving while settings are invalid 2025-01-10 21:39:26 +00:00
7152119014 refactor: ActionDialog, Only show Action relevent options 2025-01-10 21:39:26 +00:00
29eaa19d95 refactor: ActionDialog, use checkable list for screen selection 2025-01-10 21:39:26 +00:00
4db2b80d4e refactor: ActionDialog, Use Combo for action selection 2025-01-10 21:39:26 +00:00
04f73cfcb7 refactor: ActionDialog, Use Combobox for action trigger 2025-01-10 21:39:26 +00:00
1386ac91dc refactor: ActionDialog, Simplify keySequenceChanged logic 2025-01-10 21:39:26 +00:00
4e913a90eb refactor: ActionDialog, make buttonbox connections in c++ 2025-01-10 21:39:26 +00:00
c36c0f2938 refactor: ActionDialog, Aaccess the keySequenceWidget only thru the ui member 2025-01-10 21:39:26 +00:00
0944d918b7 refactor: KeySequenceWidget, remove protected copy of public method 2025-01-10 21:39:26 +00:00
3572bd28b6 refactor: ActionDialog, Adjust private memberNames 2025-01-10 21:39:26 +00:00
c21595e598 refactor: ActionDialog, remove unneeed forward declare for QRadioButton 2025-01-10 21:39:26 +00:00
096ab3b8ed refactor: ActionDialog, set the current screen combo without the need to track how many items are in the combobox with an additional int variable 2025-01-10 21:39:26 +00:00
1129303254 refactor: ActionDialog, when filling the screen list continue sooner if screen is null 2025-01-10 21:39:26 +00:00
4b456bf835 refactor: ActionDialog, don't keep a copy of the server config 2025-01-10 21:39:26 +00:00
8533348c88 refactor: simplify updateSize 2025-01-10 10:36:19 +00:00
dd0812c201 fix: Mainwindow window size restore \n fixes https://github.com/deskflow/deskflow/issues/8056 2025-01-10 10:36:19 +00:00
9a3a89efab refactor: simplify windows size/pos saving 2025-01-10 10:36:19 +00:00
3875e41154 fix: Enter screen on mac os asap to ensure event hand off
based on https://github.com/input-leap/input-leap/pull/2116
2025-01-09 14:02:01 +00:00
74dcd9bd4e build: run macdeployqt on package 2025-01-08 13:30:52 +00:00
9501b59f81 fix: Save the try icon setting 2025-01-07 20:33:37 -05:00
6c95daf0a1 chore: remove stdstring.h use include <string> instead 2025-01-08 00:11:34 +00:00
3991e0c1a1 refactor: use std::string in place of String
basedon: https://github.com/debauchee/barrier/pull/709
2025-01-08 00:11:34 +00:00
42a17726d9 feat: Allow users to pick mono color (based on isDarkMode) or colorful icon 2025-01-07 23:51:34 +00:00
fc6d39ae6c refactor: Adjust the size of all the tray icons to use the same amount of canvas space" 2025-01-07 23:51:34 +00:00
5d41537505 refactor: remove macOS check for icon theme macOS 11+ uses a mask 2025-01-07 23:51:34 +00:00
f505bfd3e7 refactor: MainWindow setupTrayIcon in method
remove unused MainWindow::createStatusBar and MainWinow::createTrayIcon
2025-01-07 23:51:34 +00:00
d5e651bae9 refactor: MainWindow use QSystemTrayIcon in place of TrayIcon
removes the TrayIcon class
2025-01-07 23:51:34 +00:00
1a35a8bdf7 refactor: Action use QStringLists in place of char * arrays 2025-01-07 23:34:11 +00:00
261d85b423 refactor: Action remove pointless assert 2025-01-07 23:34:11 +00:00
fcc8c3d344 refactor: Action, dont use concatantaion, instead append 2025-01-07 23:34:11 +00:00
112c665480 refactor: Action: add SettingsKeys namespace to hold the settings keys 2025-01-07 23:34:11 +00:00
4c70f4fde5 refactor: Action: use m_foo style member names 2025-01-07 23:34:11 +00:00
665049b723 fix #8059 re add shortcut for quit on windows 2025-01-07 17:17:19 -05:00
13a3c2d281 Chore: rm unused DESKFLOW_GUI_HOOK Items 2025-01-07 17:15:48 -05:00
abdab2d06d feat: resolve #7975, allow only one instance of the gui 2025-01-07 16:54:47 -05:00
fd4ffb6f60 build: Prevent issue where build packages is off with version.rc not being generated 2025-01-07 16:37:04 -05:00
c165413e5b Revert "build: disable package for debug config"
This reverts commit 49622a24b2.
2025-01-07 16:37:04 -05:00
9f1c1da1aa build: unify finding of the qt deploy tool and detect if vcpkg for proper debug build call 2025-01-07 16:37:04 -05:00
a55fafb4fc fix: messages read into vector are cut off by 4 bytes 2025-01-07 21:09:03 +00:00
b0852bfda5 refactor: Hotkey, use internal actionlist in place of function call 2025-01-07 19:45:21 +00:00
9eb0371a92 refactor: Hotkey, use internal keySequence in place of function calls 2025-01-07 19:45:21 +00:00
ef0d929251 refactor: Hotkey outstream logic more Qt 2025-01-07 19:45:21 +00:00
20a5b8eb0b refactor: Hotkey use const for literals 2025-01-07 19:45:21 +00:00
404458aab0 fix: hotkeys w/ multi actions
based on adc49fa066
2025-01-07 19:45:21 +00:00
4702fa56d4 fix: use Fallback version if git found without tag info
fixes https://github.com/deskflow/deskflow/issues/8033
2025-01-07 11:56:32 -05:00
6f744d2278 fix: Version Checker use case insensitive compare in place of toLower() call 2025-01-07 11:54:30 -05:00
49622a24b2 build: disable package for debug config 2025-01-07 11:45:51 -05:00
329afb47be build: windeployqt only on package dir 2025-01-07 11:45:51 -05:00
d4addceb09 build: macos attempt local signing 2025-01-07 11:32:51 -05:00
ca5f41684f fix: MacOS Hide and Show from dock on window close / hide 2025-01-07 09:19:20 -05:00
9c3e08001e fix: mac os CI build by correctly setting INSTALL_RPATH for the gui as a property of its target 2025-01-03 20:02:19 -05:00
6bfde029fe fix: run MacDeployQt at install time on staged app only 2025-01-03 14:10:58 +00:00
351c5123ef fix: Mac Os use Native Hide Event 2025-01-03 13:56:39 +00:00
ba334d5411 refactor: MainWindow remove unneeded onAppAboutToQuit slot 2025-01-03 13:56:39 +00:00
08d4b348e0 fix: use the closeEvent to hide to tray and quit the application 2025-01-03 13:56:39 +00:00
58563d36ca fix: Stop core process when mode changes in gui 2025-01-03 13:32:13 +00:00
ce02bb85b3 chore: update gnome tray fix link to https://extensions.gnome.org/extension/615/appindicator-support/ 2025-01-02 13:44:06 +00:00
df089dab53 fix: Wayland Prompt starts under MainWindow 2025-01-02 13:12:09 +00:00
86ee88d17d feat: Show the TLS Enabled label no matter the selected mode 2025-01-02 13:02:51 +00:00
4f9494245f fix: The Tls Fingerprint label not being shown on start up 2025-01-02 13:02:51 +00:00
2294981525 fix: Unify both Quit actions to use the same function
Mac os tray quit not working
2024-12-30 11:07:34 +00:00
13b58f2f7a fix: 8017, move wayland error to debug context 2024-12-28 20:46:51 +00:00
2455e0e29f refactor: Copy the full version string on the about dialog 2024-12-28 20:36:35 +00:00
23c054661c Release v.18.0, with proper win package
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-check (push) Waiting to run
Continuous Integration / analyse-valgrind (push) Blocked by required conditions
Continuous Integration / analyse-sonarcloud (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-x86_64 (push) Blocked by required conditions
Continuous Integration / fedora-40-x86_84 (push) Blocked by required conditions
Continuous Integration / fedora-41-x86_64 (push) Blocked by required conditions
Continuous Integration / opensuse-x86_84 (push) Blocked by required conditions
Continuous Integration / windows-2022-x64 (push) Blocked by required conditions
Continuous Integration / unix-freebsd (push) Blocked by required conditions
Continuous Integration / flatpak (push) Blocked by required conditions
Continuous Integration / release (push) Blocked by required conditions
Continuous Integration / winget-publish (push) Blocked by required conditions
2024-12-26 13:16:58 -05:00
098f56daee Release 1.18.0 2024-12-26 12:29:20 -05:00
ee8baeb1ff fix: qDebug doesn't work on Fedora 2024-12-26 16:48:39 +00:00
81d478632a fix: 8012 use 2/3 height on mac os for the log indicator 2024-12-26 16:32:11 +00:00
8e9925d6c8 fix: Mac os missing Quit from tray menu 2024-12-26 16:32:11 +00:00
368ccbbe4c fix: show normal mac os 2024-12-26 16:32:11 +00:00
a401c98bf6 build: fix mac os missing ; 2024-12-26 15:24:02 +00:00
f61fe00c33 ci: update lint action style 2024-12-26 15:24:02 +00:00
97890f86d3 chore: use static QApplication members where possible 2024-12-26 15:01:59 +00:00
638970d65e feat: Visiblity toggle for the log on the main window 2024-12-26 14:45:52 +00:00
98eb89255d refactor: move optional scripts to external repo 2024-12-26 14:29:25 +00:00
ccc60ff900 refactor: mv deskflow[s|c|d] to deskflow-server, deskflow-client and deskflow-deamon 2024-12-26 13:37:29 +00:00
db441eb5cf fix: win32 client taskbar remove duplicate state 2024-12-26 13:37:29 +00:00
21b345e9db fix: Create new Tray Icons for windows 2024-12-26 13:37:29 +00:00
9af37463fd refactor: single copy of app ico files for window now in src/apps/res 2024-12-26 13:37:29 +00:00
225ca23482 refactor: move all apps to one src/apps folder 2024-12-26 13:37:29 +00:00
9811586718 fixes: #7940 Use std::string insert to in place of arg sub for std::string static 2024-12-26 13:06:21 +00:00
858c41c946 fix: #7942, Correctly substitute config name part
fixes https://github.com/deskflow/deskflow/issues/7942
2024-12-26 12:28:19 +00:00
8b25e11f81 ci: combine lint-clang and lint-error into lint-check 2024-12-26 11:48:20 +00:00
d9727e60bc ci: remove unused init-python action 2024-12-26 11:48:20 +00:00
f8ddafe4a2 ci: use clang-format directly in lint-clang action 2024-12-26 11:48:20 +00:00
ab44559df6 fix(CVE-2021-42076): Enforce maximum message length to prevent memory exhaustion
based on barrier: debauchee/barrier@7ab8e01, debauchee/barrier@cc36982,
debauchee/barrier@e33c81b, debauchee/barrier@af90f39, debauchee/barrier@fd5295e
2024-12-26 10:45:21 +00:00
626e8c7364 fix(CVE-2021-42074): Handle SSL race conditions and segmentation fault
based on barrier: debauchee/barrier@8b937a4
2024-12-26 10:24:22 +00:00
041512b050 chore: remove unused scripts 2024-12-22 09:52:50 -05:00
cd0e98a480 build: remove post_config macros 2024-12-22 09:52:50 -05:00
802cfaa279 chore: removed unused scripts/daemon.py 2024-12-22 09:52:50 -05:00
aff3495e74 refactor: MainWindow clearer menu creation, remove private menu items 2024-12-22 12:39:59 +00:00
1ff7d5f4aa refactor: MainWindow remove need created / onCreated methods 2024-12-22 12:39:59 +00:00
784b2b2f6f fix: MainWindow, Use tr for use facing strings 2024-12-22 12:39:59 +00:00
927c8c146e refactor: MainWindow, use qDebug and friends correctly 2024-12-22 12:39:59 +00:00
94006f0bcd refactor: MainWindow, do not use autoconnections for the client / server radio butons 2024-12-22 12:39:59 +00:00
19c227b937 refactor: MainWindow, Do not use autoconnection for tls label 2024-12-22 12:39:59 +00:00
be5025b225 refactor: MainWindow, Do not use auto connection for the computer name label 2024-12-22 12:39:59 +00:00
4ee7d7b20f refactor: MainWindow, Do not auto connect the configure sever button 2024-12-22 12:39:59 +00:00
5032a5d275 refactor: MainWindow, no more auto connection for the host and client ip lines 2024-12-22 12:39:59 +00:00
d0dadf2112 refactor: MainWindow, better handle the toggleCore and ApplySettings buttons 2024-12-22 12:39:59 +00:00
2211caecb8 refactor: MainWindow, m_PButtonToggleStart -> btnToggleCore 2024-12-22 12:39:59 +00:00
5aa4840972 refactor: MainWindow, Create Actions in code 2024-12-22 12:39:59 +00:00
937ac053fe fix(CVE-2021-42075): Close connection on app-level handshake failure
based on barrier: debauchee/barrier@deefecc
2024-12-18 17:23:27 +00:00
cb638f4712 ci: bump mount wait time for macOS 2024-12-18 12:10:53 -05:00
751904f27c buid: add depends for deskflow core
fixes #7955
2024-12-18 12:10:53 -05:00
b9247b4c27 refactor: cleanup windows deploy files 2024-12-18 12:10:53 -05:00
cfd0bb9262 refactor: clean up mac os deploy files 2024-12-18 12:10:53 -05:00
d128623df3 refactor: clean up deploy for linux 2024-12-18 12:10:53 -05:00
b641a885d5 refactor: rm cmake/Packaging.cmake, instead do the config_linux_name macro in place 2024-12-18 12:10:53 -05:00
3817489097 chore: remove old wix building and build on ci with cpack 2024-12-18 12:10:53 -05:00
f06a789d25 build: wix generation for windows with cpack 2024-12-18 12:10:53 -05:00
b6d5095871 build: windows install step for deskflow gui 2024-12-18 12:10:53 -05:00
a06d65b1f9 build: windows, create install step for server 2024-12-18 12:10:53 -05:00
56ecd88945 build: windows, create install step for client 2024-12-18 12:10:53 -05:00
5a45e6d102 build: windows, create install step for daemon 2024-12-18 12:10:53 -05:00
e4ecbdae8a fix: macOS correctly restore window when hidden with command+H 2024-12-18 09:52:17 -05:00
bf4f513d7e chore: format *.m and *.mm files 2024-12-18 09:52:17 -05:00
af6dac9eee fix: Always show the tray menu entry for the restore action on macOS 2024-12-18 09:52:17 -05:00
ebad12a922 refactor: use QList for the tray's Action List 2024-12-18 09:52:17 -05:00
8aec0dd5bb fix: UTF-16 surrogate handling.
The data pointer needs to move before decoding the second
surrogate, and not after. The first surrogate was begin decoded
again, resulting in an invalid codepoint.

This affected clipboard operations originating on Windows machines,
where the text is encoded in UTF-16 and copying characters from a
high plane (like emojis) was broken.
2024-12-18 08:28:47 -05:00
ddb443b550 fix: Mainwindow can not start off screen
Fixes #7451
2024-12-18 07:59:56 -05:00
6a816350c1 mv .vscode to new repo github.com:deskflow/.vscode.git 2024-12-17 14:10:03 -05:00
0c26893706 fix: fixes #7949 Fixup groupboxes for settings dialog make settings dialog a fixed height 2024-12-17 09:29:09 -05:00
53b9c0908e fix: Windows, avoid encoding empty data to the clipboard
Do not attempt to convert null data to clipboard format and exit
early
2024-12-17 14:19:24 +00:00
252d11a316 feat: Windows, Use a clipboard format listener to monitor the clipboard
On Windows monitor the clipboard using a Clipboard format listener instead
of the legacy clipboard viewer chain, which was unreliable as it required
other programs to maintain the clipboard chain properly and couldn't
recover it any window in the clipboard viewer chain stopped responding
to messages.

Monitor the clipboard sequence number to not process the clipboard more
than once.
2024-12-17 14:19:24 +00:00
5026eea60a Fix: Use tray icon to hide and show from tray correctly
Remove show / hide from the tray menu
 Remove always disabled "show" action from window menu
2024-12-16 17:17:19 +00:00
482aa7a049 chore: Add minimum macOS version to readme 2024-12-16 08:59:33 -05:00
e12432d3d8 Update README.md 2024-12-06 07:40:05 -05:00
0349c06fed build: ReAdd NDEBUG define 2024-12-05 07:50:26 -05:00
6b7291f4b1 chore: src/lib/server/Config remove redundant c_str call 2024-12-04 10:40:58 -05:00
991293dd0c chore: src/gui/Action use default constructor 2024-12-04 10:40:58 -05:00
2349ce7f52 chore: replace simple cases of typedef with using 2024-12-04 10:40:58 -05:00
1d43e7c626 chore: src/gui/Action initilize items in class when possible 2024-12-04 10:40:58 -05:00
48e357f111 chore: IArchTrayBarReceiver subclass should override virtual methods not mark them virtual 2024-12-04 10:40:58 -05:00
d225be501e chore: IArchTaskBarReeiver subclasses should return nullptr for empty icon not NULL 2024-12-04 10:40:58 -05:00
37acc3b2fc chore: IArchTaskBarReciver subclasses Icon pointer should not be a const 2024-12-04 10:40:58 -05:00
b783f6e754 chore: scripts/package.py, remove unused vars in package method 2024-12-04 10:40:58 -05:00
6e01cc6ce5 ci: add config option for build step 2024-12-04 10:05:34 -05:00
6498fe5a6b refactor: use Qt Required Version rm configure_qt macro for its one use 2024-12-04 10:05:34 -05:00
4e23460c6f refactor: no configure_openssl macro 2024-12-04 10:05:34 -05:00
7ce2845c9b refactor: place simple macros where they are used 2024-12-04 10:05:34 -05:00
c8e1e4f38f refactor: rm unneed macro to flatten code coverage logic 2024-12-04 10:05:34 -05:00
922ad66aff refactor: options in place
remove use of env vars to set build options
 users should set these at cmake configure time
2024-12-04 10:05:34 -05:00
b0d22926f9 refactor: rm :cmake/Defines move last macro to Bulid.cmake 2024-12-04 10:05:34 -05:00
81631cac32 refactor: set test names directly and call only configure_options in main cmakelists.txt 2024-12-04 10:05:34 -05:00
1685c6e946 chore: rm unneeded debug define 2024-12-04 10:05:34 -05:00
1e8ff50d59 refactor: mv cmake policy settings to main CMakelists.txt 2024-12-04 10:05:34 -05:00
5d591e3518 build: rm unneeed configure_ninja steps 2024-12-04 10:05:34 -05:00
57f6248b6a build: rm configure_build macro set items in main CMakeLists.txt 2024-12-04 10:05:34 -05:00
d6c682a923 chore: rm unused src/lib/gui/gui_config.h 2024-12-04 10:05:34 -05:00
4f8ae57ffd build: always include headers 2024-12-04 10:05:34 -05:00
a92f5b0351 refactor: correct osx deployment target and move to main CMakeLists.txt 2024-12-04 10:05:34 -05:00
0f0846f011 build: mv CXX Options to the Main CMakeLists.txt 2024-12-04 10:05:34 -05:00
86cca8a0d1 refactor: don't use a macro for a single line 2024-12-04 10:05:34 -05:00
eb9e507a1f chore: rm Unused Build_Time macro and define 2024-12-04 10:05:34 -05:00
03f1408a98 refactor: mv src/lib/gui/VersionChecker => src/gui/src/ 2024-12-04 10:05:34 -05:00
7f9fd80f98 refactor: remove workarounds for unsupported ms vc versions 2024-12-04 10:05:34 -05:00
c5cfdc2b69 refactor: AboutDialog, show the version tweak only if its not 0, when showing the tweak also show the sha 2024-12-04 10:05:34 -05:00
7656b49f1b refactor: set GIT_SHA_SHORT with git command 2024-12-04 10:05:34 -05:00
c05a87b716 refactor: rm src/lib/common/copyright, add to src/lib/common/constants 2024-12-04 10:05:34 -05:00
4a83eb711f build: generate version info, use it for all sources of version 2024-12-04 10:05:34 -05:00
f321f6596b build: make an interface lib out of the common folder 2024-12-04 10:05:34 -05:00
18bc419b7a build: remove unused DESKFLOW_REVISION and DESKFLOW_VERSION_STAGE defines 2024-12-04 10:05:34 -05:00
25660049e4 Add windows requirement and flathub link to readme 2024-11-25 21:15:07 +00:00
9fcf261245 build: use CPACK_WIX_UPGRADE_GUID for wix GUID
Remove unuseable 32bit Parts
2024-11-25 20:50:58 +00:00
59d9454df1 build: install License files 2024-11-25 20:50:58 +00:00
14f66e2dee refactor: simplify linux os-release parsing 2024-11-25 20:50:58 +00:00
882b71ea84 ci: consistant upload name for flatpak fixes 7911 2024-11-25 19:37:13 +00:00
d26339d94a ci: remove unused test-actions workflow 2024-11-25 19:27:05 +00:00
079bfdc854 chore: update metadata long desc 2024-11-21 14:55:58 +00:00
3003670b94 ci: use x86_64 for job names 2024-11-21 14:55:58 +00:00
79c17e3564 ci: use master version of flatpak builder 2024-11-21 14:55:58 +00:00
397f9f0fac ci: add linux to flatpak bundle name 2024-11-21 14:55:58 +00:00
40ff14473d build: use linux for distro name is its no defined 2024-11-21 14:55:58 +00:00
b16a03c3ad fix: flatpak recipe should not clean up "lib/debug" 2024-11-21 14:55:58 +00:00
f11178327d chore: remove unused python parts 2024-11-21 14:27:01 +00:00
c6f352ac4a refactor: move most of the remaing packaging info into deploy 2024-11-21 14:27:01 +00:00
2cdbd8f491 build: use CPack for macOS to create dmg 2024-11-21 14:27:01 +00:00
a63435e64a build: use cmake to make the macOS bundle 2024-11-21 14:27:01 +00:00
1266 changed files with 52768 additions and 67660 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

View File

@ -1,33 +1,37 @@
name: Bug report
description: If you find a bug in Deskflow, please let us know so we can fix it.
labels: ["bug", "triage", "unanswered"]
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
- type: input
- type: textarea
id: version
attributes:
label: Deskflow version number
description: You can find the Deskflow version number on the about screen.
placeholder: 1.2.3.4
label: Deskflow version info
description: You can find the Deskflow version number on the About screen.
placeholder: |
Deskflow: 1.2.3.4 (deadc0de)
Qt: 3.2.1
System: Hannah Montana Linux (Workstation Edition)
Session: Unity (Compiz)
validations:
required: true
@ -51,7 +55,7 @@ body:
id: os
attributes:
label: Operating systems (OS)
description: Which operating systems (OS) are you using?
description: Operating systems (OS) in use for all servers and clients
options:
- label: Windows
- label: macOS
@ -62,69 +66,28 @@ 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 the OS of the server/host/primary and the OS of the client/guest/secondary.
This will help us understand how you're using Deskflow.
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
attributes:
label: What steps will reproduce the problem?
description: |
Please list the steps to reproduce the issue.
Please list the _numbered steps_ to reproduce the issue.
If you're not sure, please provide as much detail as possible.
This will help us understand the problem.
placeholder: |
1. Start Deskflow
2. Click 'Configure Server'

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

@ -1,6 +1,6 @@
name: Feature request
description: Had an idea how to improve Deskflow? Share it with us.
labels: ["enhancement", "triage", "unanswered"]
type: "Triage [feature]"
body:
- type: markdown
attributes:
@ -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

@ -1,23 +0,0 @@
# Important: Do not be tempted to cache the .venv dir (Python virtual environment).
# When the runner environment changes (e.g. Python is upgraded), the venv will need to be
# re-created. Trying to upgrade a venv can be complex and it's usually more practical re-create it.
# We don't save much time anyway by caching the venv so it's not worth the added complexity.
name: "Setup Python venv"
description: "Creates a Python virtual environment (venv)"
runs:
using: "composite"
steps:
- name: Setup Python venv
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
python=python
else
python=python3
fi
echo "Setting up Python venv, bin=$python"
$python -m venv .venv
shell: bash

View File

@ -9,8 +9,12 @@ inputs:
description: "Used only on linux distro type: debian, fedora, suse, arch"
required: false
mac-qt-version:
description: "The verison of Qt to install on mac os"
qt-version:
description: "The version of Qt to install (Windows & macOS)"
required: false
vcpkg-triplet:
description: "vcpkg triplet to use (Windows)"
required: false
outputs:
@ -23,41 +27,33 @@ runs:
steps:
- name: Install Depends
if: ${{ runner.os != 'Windows' }}
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
echo "Window not supported yet"
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install cmake googletest ninja openssl --quiet
if [ "$RUNNER_OS" == "macOS" ]; then
brew install googletest openssl --quiet
elif [ "$RUNNER_OS" == "Linux" ]; then
if [ ${{inputs.like}} == "debian" ]; then
apt update -qqq > /dev/null
apt install -qqq cmake build-essential ninja-build \
xorg-dev libx11-dev libxtst-dev libssl-dev \
libglib2.0-dev libgdk-pixbuf-2.0-dev libnotify-dev \
libxkbfile-dev qt6-base-dev qt6-tools-dev \
libgtk-3-dev libgtest-dev libgmock-dev libpugixml-dev \
libei-dev libportal-dev libtomlplusplus-dev libcli11-dev -y >/dev/null
libglib2.0-dev libxkbfile-dev qt6-base-dev qt6-tools-dev \
libgtk-3-dev libgtest-dev libgmock-dev \
libei-dev libportal-dev help2man -y >/dev/null
elif [ ${{inputs.like}} == "fedora" ]; then
dnf install -y cmake make ninja-build gcc-c++ \
rpm-build openssl-devel glib2-devel \
gdk-pixbuf2-devel libXtst-devel libnotify-devel \
libxkbfile-devel qt6-qtbase-devel qt6-qttools-devel \
gtk3-devel gtest-devel gmock-devel pugixml-devel \
libei-devel libportal-devel tomlplusplus-devel \
cli11-devel
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
elif [ ${{inputs.like}} == "suse" ]; then
zypper refresh
zypper install -y --force-resolution \
cmake make ninja gcc-c++ rpm-build libopenssl-devel \
glib2-devel gdk-pixbuf-devel libXtst-devel libnotify-devel \
libxkbfile-devel qt6-base-devel qt6-tools-devel gtk3-devel \
googletest-devel googlemock-devel pugixml-devel libei-devel \
libportal-devel tomlplusplus-devel cli11-devel
glib2-devel libXtst-devel libxkbfile-devel qt6-base-devel qt6-tools-devel \
qt6-linguist-devel gtk3-devel \
googletest-devel googlemock-devel libei-devel libportal-devel help2man
elif [ ${{ inputs.like }} == "arch" ]; then
pacman -Syu --noconfirm base-devel cmake ninja \
gcc openssl glib2 gdk-pixbuf2 libxtst libnotify \
libxkbfile gtest pugixml libei libportal \
qt6-base qt6-tools gtk3 tomlplusplus cli11
gcc openssl glib2 libxtst libxkbfile gtest libei libportal \
qt6-base qt6-tools qt6-svg qt6-translations qt6-declarative gtk3 help2man doxygen graphviz rsync
else
echo "Unknown like"
fi
@ -67,34 +63,31 @@ runs:
shell: bash
- name: Install Qt
if: ${{runner.os == 'macOS' }}
if: ${{runner.os != 'Linux' }}
uses: jurplel/install-qt-action@v4
env:
AQT_CONFIG: ${{ github.workspace }}/.github/actions/install-dependencies/aqt.ini
with:
dir: "/Users/runner"
version: ${{inputs.mac-qt-version}}
version: ${{inputs.qt-version}}
cache: true
cache-key-prefix: ${{matrix.target.os}}-${{env.qt-version}}
# Install Ninja with an action instead of using Chocolatey, as it's more
# reliable and faster. The Ninja install action is pretty good as it
# downloads directly from the `ninja-build` GitHub project releases.
- name: Install Ninja
if: ${{ runner.os == 'Windows' }}
uses: seanmiddleditch/gha-setup-ninja@master
cache-key-prefix: ${{matrix.target.os}}-${{inputs.qt-version}}
- name: Build and cache vcpkg
if: ${{ runner.os == 'Windows' }}
id: vcpkg
uses: johnwason/vcpkg-action@v6
uses: johnwason/vcpkg-action@v7
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-windows-release
pkgs: gtest openssl
extra-args: --classic --host-triplet=${{inputs.vcpkg-triplet}}
triplet: ${{inputs.vcpkg-triplet}}
token: ${{ github.token }}
github-binarycache: true
revision: master
- name: Install Wix
if: ${{ runner.os == 'Windows' }}
run: |
dotnet tool install --global wix --version 4.0.4
wix extension add --global WixToolset.UI.wixext/4.0.4
dotnet tool install --global wix --version 5.0.2
wix extension add --global WixToolset.UI.wixext/5.0.2
wix extension add --global WixToolset.Util.wixext/5.0.2
wix extension add --global WixToolset.Firewall.wixext/5.0.2
shell: pwsh

View File

@ -0,0 +1,14 @@
[aqt]
# Using this mirror instead of download.qt.io because of timeouts in CI
baseurl: https://qt.mirror.constant.com
[requests]
hash_algorithm: sha1
[mirrors]
trusted_mirrors:
https://qt.mirror.constant.com
fallbacks:
https://qt.mirror.constant.com
https://mirrors.ocf.berkeley.edu
https://download.qt.io

View File

@ -1,21 +1,91 @@
name: "Lint clang"
description: "Lint with Clang formatter"
name: "Lint Clang"
description: "Checks for Clang lint errors and posts a helpful comment"
runs:
using: "composite"
steps:
- name: Setup Python venv
uses: ./.github/actions/init-python
- name: Install dependencies
- name: Install Dependencies
run: pipx install --global clang-format==20.1.0
shell: bash
run: |
source .venv/bin/activate
pip install pyyaml clang_format
- name: Linting with Clang formatter
uses: ./.github/actions/lint-error
- name: Run format command
run: find src/ -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|c\|m\|mm\)' -exec clang-format -i {} \;
shell: bash
- name: Find changes
id: changes
run: |
file=clang-format.diff
diff=$(git diff | tee $file)
if [ -z "$diff" ]; then
echo "No changes detected"
exit 0
fi
echo "file=$file" >> $GITHUB_OUTPUT
{
echo "diff<<EOF"
cat $file
echo "EOF"
} >> $GITHUB_OUTPUT
shell: bash
- name: Upload to GitHub
id: upload
if: steps.changes.outputs.diff
uses: actions/upload-artifact@v4
with:
format-command: ./scripts/lint_clang.py -f
format-tool: "clang-format"
name: clang-format-diff
path: ${{ steps.changes.outputs.file }}
if-no-files-found: error
- name: Set summary
id: summary
if: steps.changes.outputs.diff
run: |
code_block="\`\`\`"
clang_version=$(clang-format --version | sed -n 's/^.*version //p')
summary=$(cat <<EOF
❌ \`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\`:
[\`${{ steps.changes.outputs.file }}\`](${{ steps.upload.outputs.artifact-url }})
$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
pr_comment=$(cat <<EOF
### Lint result
$summary
EOF
)
file="ci-summary.md"
echo "$pr_comment" | tee $file
echo "file=$file" >> $GITHUB_OUTPUT
shell: bash
- name: Upload CI summary as artifact
if: steps.summary.outputs.file
uses: actions/upload-artifact@v4
with:
name: summary-clang-format
path: ${{ steps.summary.outputs.file }}
if-no-files-found: error
- name: Fail if diff exists
if: steps.changes.outputs.diff
run: exit 1
shell: bash

View File

@ -1,85 +0,0 @@
name: "Lint error"
description: "Checks for lint errors and posts a helpful comment"
inputs:
format-command:
description: "The command to run to fix lint errors"
required: true
format-tool:
description: "The name of the linting tool"
required: true
runs:
using: "composite"
steps:
- name: Run format command
run: ${{ inputs.format-command }}
shell: bash
- name: Find changes
id: changes
run: |
file=${{ inputs.format-tool }}.diff
diff=$(git diff | tee $file)
if [ -z "$diff" ]; then
echo "No changes detected"
exit 0
fi
echo "file=$file" >> $GITHUB_OUTPUT
{
echo "diff<<EOF"
cat $file
echo "EOF"
} >> $GITHUB_OUTPUT
shell: bash
- name: Upload to GitHub
id: upload
if: steps.changes.outputs.diff
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.format-tool }}-diff
path: ${{ steps.changes.outputs.file }}
if-no-files-found: error
- name: Set summary
id: summary
if: steps.changes.outputs.diff
run: |
code_block="\`\`\`"
summary=$(cat<<EOF
❌ \`${{ inputs.format-tool }}\`: It looks like your changes don't match our code style.
🛠️ Please either run \`${{ inputs.format-command }}\` or apply this patch with \`git apply\`:
[\`${{ steps.changes.outputs.file }}\`](${{ steps.upload.outputs.artifact-url }})
$code_block diff
${{ steps.changes.outputs.diff }}
$code_block
EOF
)
echo "$summary" >> $GITHUB_STEP_SUMMARY
file="ci_summary.md"
echo "❌🛠️ \`${{ inputs.format-tool }}\`: Lint errors, fix available." >> $file
echo "file=$file" >> $GITHUB_OUTPUT
shell: bash
- name: Upload CI summary as artifact
if: steps.summary.outputs.file
uses: actions/upload-artifact@v4
with:
name: summary-${{ inputs.format-tool }}
path: ${{ steps.summary.outputs.file }}
if-no-files-found: error
- name: Fail if diff exists
if: steps.changes.outputs.diff
run: exit 1
shell: bash

View File

@ -15,12 +15,12 @@ runs:
using: "composite"
steps:
- name: Unit tests
id: unittests
- name: Unit Tests
id: unit-tests
env:
QT_QPA_PLATFORM: offscreen
run: |
./${{ inputs.bin-dir }}/unittests
ctest --test-dir "build/src/unittests" --output-on-failure
result=$?
if [ $result -ne 0 ]; then
@ -29,16 +29,16 @@ runs:
shell: bash
continue-on-error: true
- name: Integration tests
id: integtests
- name: Legacy Tests
id: legacy-tests
env:
QT_QPA_PLATFORM: offscreen
run: |
./${{ inputs.bin-dir }}/integtests
./${{ inputs.bin-dir }}/legacytests
result=$?
if [ $result -ne 0 ]; then
echo "Integration tests failed with code: $result" >> $GITHUB_STEP_SUMMARY
echo "Legacy tests failed with code: $result" >> $GITHUB_STEP_SUMMARY
fi
shell: bash
continue-on-error: true
@ -48,12 +48,12 @@ runs:
run: |
pass="✅ Pass"
fail="❌ Fail"
unittests_outcome="${{ steps.unittests.outcome }}"
integtests_outcome="${{ steps.integtests.outcome }}"
unittests=$( [ "$unittests_outcome" = "success" ] && echo $pass || echo $fail )
integtests=$( [ "$integtests_outcome" = "success" ] && echo $pass || echo $fail )
echo "unittests=$unittests" >> $GITHUB_OUTPUT
echo "integtests=$integtests" >> $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.integtests }} |"
row+="| ${{ steps.results.outputs.unit-tests }} "
row+="| ${{ steps.results.outputs.legacy-tests }} "
echo "$row" > $file
echo "file=$file" > $GITHUB_OUTPUT
@ -77,8 +77,8 @@ runs:
path: ${{ steps.row.outputs.file }}
- name: Check test outcome
if: steps.unittests.outcome == 'failure'
if: (steps.unit-tests.outcome != 'success' || steps.legacy-tests.outcome != 'success')
run: |
echo "Unit tests failed"
echo "Tests failed"
exit 1
shell: bash

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

@ -21,12 +21,13 @@ runs:
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
$packageId = "Deskflow.Deskflow"
$installerUrl = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-x64.msi"
$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 "$installerUrl" `
--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.0.0
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,63 +8,34 @@ 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 }}
PACKAGE_PREFIX: "deskflow"
PACKAGE_PATH: ./dist
CMAKE_CONFIGURE: "cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=ON"
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-clang
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,39 +43,43 @@ 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
lint-clang:
lint-reuse:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Linting Clang
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5
lint-clang:
needs: [lint-reuse]
runs-on: ubuntu-slim
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Lint Checker
uses: ./.github/actions/lint-clang
analyse-valgrind:
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-clang
name: ${{ matrix.target.name }}
@ -120,53 +95,135 @@ jobs:
target:
- name: "windows-2022-x64"
runs-on: "windows-2022"
timeout: 120 #Windows can take while if it has to build vcpkg cache
timeout: 30
config-args: "-G Ninja"
vcpkg-triplet: x64-windows-release
arch: "amd64"
qt-version: 6.10.1
- name: "macos-14-arm64"
runs-on: "macos-14"
- name: "windows-2022-arm64"
runs-on: "windows-11-arm"
timeout: 30
config-args: "-G Ninja"
vcpkg-triplet: arm64-windows
arch: "arm64"
qt-version: 6.10.1
- name: "macos-arm64"
runs-on: macos-15
timeout: 10
arch: arm64
config-args: "-DCMAKE_OSX_ARCHITECTURES=\"arm64\" -DMACOSX_DEPLOYMENT_TARGET=12"
qt-version: 6.10.1
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\" -DMACOSX_DEPLOYMENT_TARGET=12"
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-amd64"
- 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: "fedora-41-amd64"
- name: "debian-arm64"
runs-on: ubuntu-24.04-arm
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: fedora:41
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"
- name: "fedora-42-x86_64"
runs-on: ubuntu-latest
container: fedora:42
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "fedora-40-amd64"
runs-on: ubuntu-latest
container: fedora:40
- name: "fedora-42-arm64"
runs-on: ubuntu-24.04-arm
container: fedora:42
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "opensuse-amd64"
- name: "fedora-43-x86_64"
runs-on: ubuntu-latest
container: fedora:43
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "fedora-43-arm64"
runs-on: ubuntu-24.04-arm
container: fedora:43
like: "fedora"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "opensuse-x86_64"
runs-on: ubuntu-latest
container: opensuse/tumbleweed:latest
like: "suse"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "archlinux-amd64"
- name: "opensuse-arm64"
runs-on: ubuntu-24.04-arm
container: opensuse/tumbleweed:latest
like: "suse"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- 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.10-x86_64"
runs-on: ubuntu-latest
container: ubuntu:25.10
like: "debian"
timeout: 20
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
- name: "ubuntu-25.10-arm64"
runs-on: ubuntu-24.04-arm
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"
steps:
@ -174,57 +231,53 @@ jobs:
- name: Install Git on Container
if: ${{ matrix.target.container }}
shell: bash
run : |
if [ "${{matrix.target.like}}" == "debian" ]; then
apt update -qqq > /dev/null && apt install -qqq git devscripts > /dev/null
elif [ "${{matrix.target.like}}" == "fedora" ]; then
dnf install -y git
elif [ "${{matrix.target.like}}" == "suse" ]; then
zypper refresh
zypper install -y --force-resolution git
elif [ "${{matrix.target.like}}" == "arch" ]; then
pacman -Syu --noconfirm git
else
echo "Unknown: ${{matrix.target.like}}"
fi
run: |
if [ "${{matrix.target.like}}" == "debian" ]; then
apt update -qqq > /dev/null && apt install -qqq git devscripts > /dev/null
elif [ "${{matrix.target.like}}" == "fedora" ]; then
dnf install -y git
elif [ "${{matrix.target.like}}" == "suse" ]; then
zypper refresh
zypper install -y --force-resolution git
elif [ "${{matrix.target.like}}" == "arch" ]; then
pacman -Syu --noconfirm git
else
echo "Unknown: ${{matrix.target.like}}"
fi
# Fancy checkout gets all the tags
# it also makes sure we can use git --describe correctly
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1.0.0
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.
- name: Setup VC++ environment
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.target.arch}}
- name: Install dependencies
id: get-deps
uses: ./.github/actions/install-dependencies
with:
mac-qt-version: 6.7.2
qt-version: ${{matrix.target.qt-version}}
vcpkg-triplet: ${{matrix.target.vcpkg-triplet}}
like: ${{ matrix.target.like }}
- name: Setup Python
if: ${{runner.os != 'Linux' }}
run: python ./scripts/setup_venv.py
- name: Get version
uses: ./.github/actions/get-version
- name: Configure
run: ${{env.CMAKE_CONFIGURE}} ${{ matrix.target.config-args }} ${{ steps.get-deps.outputs.vcpkg-cmake-config }} -DPACKAGE_VERSION_LABEL=${{env.DESKFLOW_PACKAGE_VERSION}}
run: ${{env.CMAKE_CONFIGURE}} ${{ matrix.target.config-args }} ${{ steps.get-deps.outputs.vcpkg-cmake-config }} -DPACKAGE_VERSION_LABEL="${{env.DESKFLOW_PACKAGE_VERSION}}"
- name: Build
shell: bash
run: |
if [[ "$RUNNER_OS" == "Linux" && "${{matrix.target.like}}" != "arch" ]]; then
cmake --build build -j8 --target package
if [[ "${{matrix.target.like}}" != "arch" ]]; then
cmake --build build --config Release -j8 --target package
else
cmake --build build -j8
fi
if [ ${{ matrix.target.like }} == "arch" ];then
cmake --build build --config Release -j8
useradd -m build
sudo chown -R build build
cd build
@ -235,28 +288,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: Package
if: ${{ runner.os != 'Linux' }}
shell: bash
run: |
python ./scripts/package.py --package-version ${{env.DESKFLOW_PACKAGE_VERSION}}
mv dist/deskflow* build/
env:
WINDOWS_PFX_CERTIFICATE: ${{ secrets.WINDOWS_PFX }}
WINDOWS_PFX_PASSWORD: ${{ secrets.WINDOWS_PFX_PASS }}
APPLE_CODESIGN_ID: ${{ secrets.APPLE_CODESIGN_ID }}
APPLE_P12_CERTIFICATE: ${{ secrets.APPLE_P12_CERTIFICATE }}
APPLE_P12_PASSWORD: ${{ secrets.APPLE_P12_PASSWORD }}
APPLE_NOTARY_USER: ${{ secrets.APPLE_NOTARY_USER }}
APPLE_NOTARY_PASSWORD: ${{ secrets.APPLE_NOTARY_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- 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
- name: Upload
uses: actions/upload-artifact@v4
@ -282,49 +338,68 @@ 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.0.0
uses: sithlord48/fancy-checkout@v2
- name: Build on FreeBSD
if: ${{ matrix.distro.name == 'freebsd' }}
uses: vmactions/freebsd-vm@v1
with:
usesh: true
run: |
./scripts/install_deps.sh
pkg install -y cmake ninja gmake gcc12 openssl glib \
libX11 libXtst libxkbfile qt6-base qt6-tools gtk3 \
googletest pkgconf libei libportal
${{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
./build/bin/integtests || true
./build/bin/unittests || true
flatpak:
needs: lint-clang
runs-on: ubuntu-latest
name: flatpak-${{matrix.flatpak.arch}}
runs-on: ${{matrix.flatpak.runs-on}}
timeout-minutes: 60
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
options: --privileged
strategy:
fail-fast: false
matrix:
flatpak:
- runs-on: ubuntu-latest
arch: x86_64
- runs-on: ubuntu-24.04-arm
arch: aarch64
steps:
- name: Check out repository
uses: sithlord48/fancy-checkout@v1.0.0
uses: sithlord48/fancy-checkout@v2
- run: git config --global protocol.file.allow always
- name: Get version
uses: ./.github/actions/get-version
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
name: "Build"
- name: Lint appsteam
run: flatpak-builder-lint appstream deploy/linux/org.deskflow.deskflow.metainfo.xml
- name: Lint manifest
run: flatpak-builder-lint manifest deploy/linux/flatpak/org.deskflow.deskflow.yml
- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: deskflow-${{env.DESKFLOW_PACKAGE_VERSION}}-x86_64.flatpak
manifest-path: deploy/dist/flatpak/org.deskflow.deskflow.yml
cache-key: flatpak-builder-${{ github.sha }}
bundle: deskflow-${{env.DESKFLOW_PACKAGE_VERSION}}-linux-${{matrix.flatpak.arch}}.flatpak
manifest-path: deploy/linux/flatpak/org.deskflow.deskflow.yml
cache-key: flatpak-builder-${{matrix.flatpak.arch}}-2.0
arch: ${{matrix.flatpak.arch}}
upload-artifact: false
- name: Validate build
run: flatpak-builder-lint --exceptions --user-exceptions deploy/linux/flatpak/ci-build-lint-exceptions.json repo repo
- name: Upload
uses: actions/upload-artifact@v4
with:
name: package-${{ env.PACKAGE_PREFIX }}-flatpak
name: package-${{ env.PACKAGE_PREFIX }}-flatpak-${{matrix.flatpak.arch}}
path: ${{github.workspace}}/deskflow[-_]*.flatpak
release:
@ -334,7 +409,7 @@ jobs:
steps:
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1.0.0
uses: sithlord48/fancy-checkout@v2
- name: Get version
uses: ./.github/actions/get-version
@ -358,7 +433,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
@ -372,14 +447,24 @@ jobs:
files: |
deskflow-*
sums.txt
- 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"}'
winget-publish:
needs: release
if: contains(github.ref, 'tags/v')
runs-on: windows-latest
steps:
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1.0.0
uses: sithlord48/fancy-checkout@v2
- name: Get version
uses: ./.github/actions/get-version

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.0.0
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: |
@ -44,39 +63,38 @@ jobs:
-G "Ninja" \
-DCMAKE_BUILD_TYPE="Debug" \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DSKIP_BUILD_TESTS=ON \
-DENABLE_COVERAGE=ON
- name: Build
run: |
build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build -j${CPU_CORE_COUNT}
- name: Unit tests coverage
- name: Test coverage
shell: bash
env:
QT_QPA_PLATFORM: offscreen
run: cmake --build build --target coverage-unittests
- name: Integration tests coverage
env:
QT_QPA_PLATFORM: offscreen
run: cmake --build build --target coverage-integtests
run: |
tests=(`cmake --build build --target help | grep -o "^coverage-[^:]*"`)
for i in "${tests[@]}"; do
cmake --build build --target "$i"
done
- name: Get coverage report paths
id: coverage-paths
run: |
unittests=$(find build -name coverage-unittests.xml)
integtests=$(find build -name coverage-integtests.xml)
paths="${unittests}${integtests:+,$integtests}"
paths=$(ls -w 0 -m build/coverage-*.xml | sed 's/ //g')
if [ -z "$paths" ]; then
echo "Error: No coverage files found"
exit 1
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

@ -1,41 +0,0 @@
name: Test actions
# Intended to only be run manually for testing actions in isolation.
on:
workflow_dispatch:
jobs:
test-summary:
runs-on: ubuntu-latest
name: Test summary (${{ matrix.message.name }})
strategy:
matrix:
message:
- name: success
text: "|Success|✅|✅|"
expect: ""
- name: failure
text: "|Failure|❌|❌|"
expect: "❌🔬 Tests failed: 2"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate
shell: bash
run: |
echo "${{ matrix.message.text }}" > test-result.md
- name: Upload
uses: actions/upload-artifact@v4
with:
path: test-result.md
name: test-result-${{ matrix.message.name }}
- name: Test
uses: ./.github/actions/test-summary
with:
download-pattern: test-result-${{ matrix.message.name }}
upload-name: summary-${{ matrix.message.name }}

View File

@ -17,7 +17,7 @@ jobs:
apt install -qqq git valgrind > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1.0.0
uses: sithlord48/fancy-checkout@v2
- name: Install dependencies
uses: ./.github/actions/install-dependencies
@ -31,16 +31,10 @@ jobs:
run: cmake --build build -j8
- name: Valgrind unit tests
id: unittests
id: legacytests
uses: ./.github/actions/run-valgrind
with:
executable: ./build/bin/unittests
- name: Valgrind integration tests
id: integtests
uses: ./.github/actions/run-valgrind
with:
executable: ./build/bin/integtests
executable: ./build/bin/legacytests
- name: Set job summary
run: |
@ -48,14 +42,9 @@ jobs:
message=$(cat <<EOF
## Valgrind summary
### Unit tests
### legacytests Unit tests
$backticks
${{ steps.unittests.outputs.summary }}
$backticks
### Integration tests
$backticks
${{ steps.integtests.outputs.summary }}
${{ steps.legacytests.outputs.summary }}
$backticks
EOF
)

17
.gitignore vendored
View File

@ -10,7 +10,6 @@
/tmp
/vcpkg
/vcpkg_installed
/scripts/**/*.pyc
/.cache
/.venv
aqtinstall.log
@ -26,6 +25,12 @@ deskflow-config.toml
/*.user
*.ui.autosave
#Qt creator 18 user files
/.qtcreator
# generated vcpkg file
vcpkg.json
#Generic linux files
**/*.directory
@ -34,3 +39,13 @@ CMakeLists.txt.user
CMakeCache.txt
CMakeUserPresets.json
CMakeFiles/*
# vscode folder
/.vscode
# scripts folder
/scripts
# Ai helperfilers
**/[cC]laude.[mM][dD]
**/CLAUDE.[mM][dD]

View File

@ -1,11 +0,0 @@
{
"recommendations": [
"ms-vscode.cmake-tools",
"twxs.cmake",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cpptools",
"vadimcn.vscode-lldb",
"cheshirekow.cmake-format",
"jacqueslucke.gcov-viewer"
]
}

135
.vscode/launch.json vendored
View File

@ -1,135 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "unix - gui",
"type": "lldb",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow",
"preLaunchTask": "kill-build"
},
{
"name": "unix - unittests",
"type": "lldb",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/unittests",
"args": [ "${input:gtest-args}" ],
"preLaunchTask": "build"
},
{
"name": "unix - integtests",
"type": "lldb",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/integtests",
"args": [ "${input:gtest-args}" ],
"preLaunchTask": "build",
},
{
"name": "unix - server",
"type": "lldb",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow-server",
"args": ["--config-toml", "deskflow-config.toml"],
"preLaunchTask": "kill-build"
},
{
"name": "unix - client",
"type": "lldb",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow-client",
"args": ["--config-toml", "deskflow-config.toml"],
"preLaunchTask": "kill-build"
},
{
"name": "unix - attach",
"type": "lldb",
"request": "attach",
"pid": "${command:pickProcess}"
},
{
"name": "windows - gui",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "kill-build"
},
{
"name": "windows - unittests",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/unittests",
"args": [ "${input:gtest-args}" ],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "build"
},
{
"name": "windows - integtests",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/integtests",
"args": [ "${input:gtest-args}" ],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "build"
},
{
"name": "windows - server",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow-server",
"args": ["--config-toml", "deskflow-config.toml"],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "kill-build"
},
{
"name": "windows - client",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow-client",
"args": ["--config-toml", "deskflow-config.toml"],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "kill-build"
},
{
"name": "windows - daemon",
"type": "cppvsdbg",
"cwd": "${workspaceRoot}",
"request": "launch",
"program": "${workspaceFolder}/build/bin/deskflow-daemon",
"args": ["-f"],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "build"
},
{
"name": "windows - attach",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}"
},
{
"name": "install_deps.py",
"type": "debugpy",
"request": "launch",
"program": "scripts/install_deps.py",
"console": "integratedTerminal"
}
],
"inputs": [
{
"id": "gtest-args",
"type": "promptString",
"description": "Test arguments",
"default": "--gtest_filter=*"
}
]
}

172
.vscode/tasks.json vendored
View File

@ -1,172 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "cmake",
"command": "build",
"targets": ["all"],
"preset": "${command:cmake.activeBuildPresetName}",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["absolute"]
}
},
{
"label": "clean",
"type": "cmake",
"command": "build",
"targets": ["clean"],
"preset": "${command:cmake.activeBuildPresetName}",
"group": "build"
},
{
"label": "clean-gcda",
"type": "shell",
"command": "find . -name '*.gcda' -delete",
"windows": {
"command": "$null"
},
"presentation": {
"reveal": "silent"
}
},
{
"label": "clean-qt",
"type": "shell",
"command": "rm -r build/src/gui build/src/lib/gui",
"windows": {
"command": "remove-item -recurse build/src/gui,build/src/lib/gui"
}
},
{
"label": "clean-config",
"type": "shell",
"linux": {
"command": "rm -r ~/.config/Deskflow/Deskflow.conf"
},
"windows": {
"command": "remove-item -recurse $env:APPDATA\\Deskflow\\Deskflow"
},
"osx": {
"command": "rm -r ~/Library/Application\\ Support/Deskflow/Deskflow"
}
},
{
"label": "tests",
"dependsOn": ["integtests", "unittests"],
"problemMatcher": []
},
{
"label": "kill",
"type": "shell",
"command": "killall deskflow; killall deskflow-client; killall deskflow-server || true",
"windows": {
"command": "taskkill /F /IM deskflow.exe /IM deskflow-client.exe /IM deskflow-client.exe; $true"
},
"presentation": {
"reveal": "silent"
}
},
{
"label": "kill-build",
"dependsOn": ["kill", "build"],
"problemMatcher": []
},
{
"label": "gui",
"type": "process",
"command": "${workspaceFolder}/build/bin/deskflow",
"dependsOn": ["build", "kill"],
"problemMatcher": [],
"windows": {
"command": "${workspaceFolder}/build/bin/deskflow.exe"
}
},
{
"label": "restart daemon",
"type": "shell",
"command": "python scripts/daemon.py --restart",
"dependsOn": ["build"]
},
{
"label": "reinstall daemon",
"type": "shell",
"command": "python scripts/daemon.py --reinstall",
"dependsOn": ["build"]
},
{
"label": "stop daemon",
"type": "shell",
"command": "python scripts/daemon.py --stop"
},
{
"label": "unittests (current)",
"type": "shell",
"command": "python",
"args": [
"./scripts/tests.py",
"--unit-tests",
"--ignore-return-code",
"--filter-file=${file}"
],
"dependsOn": ["build", "clean-gcda"]
},
{
"label": "integtests (current)",
"type": "shell",
"command": "python",
"args": [
"./scripts/tests.py",
"--integ-tests",
"--ignore-return-code",
"--filter-file=${file}"
],
"dependsOn": ["build", "clean-gcda"]
},
{
"label": "unittests",
"type": "shell",
"command": "python",
"args": ["./scripts/tests.py", "--unit-tests", "--ignore-return-code"],
"dependsOn": ["build", "clean-gcda"]
},
{
"label": "integtests",
"type": "shell",
"command": "python",
"args": ["./scripts/tests.py", "--integ-tests", "--ignore-return-code"],
"dependsOn": ["build", "clean-gcda"]
},
{
"label": "unittests (current, valgrind)",
"type": "shell",
"command": "python",
"args": [
"./scripts/tests.py",
"--unit-tests",
"--ignore-return-code",
"--filter-file=${file}",
"--valgrind"
],
"dependsOn": ["build", "clean-gcda"]
},
{
"label": "integtests (current, valgrind)",
"type": "shell",
"command": "python",
"args": [
"./scripts/tests.py",
"--integ-tests",
"--ignore-return-code",
"--filter-file=${file}",
"--valgrind"
],
"dependsOn": ["build", "clean-gcda"]
}
]
}

View File

@ -1,44 +1,50 @@
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2024 Symless Ltd.
# Copyright (C) 2009 Nick Bolton
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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
# Why CMake 3.8?
# This allows package maintainers to create reproducible builds:
# > New in version 3.8: If the SOURCE_DATE_EPOCH environment variable is set,
# > its value will be used instead of the current time.
# > See https://reproducible-builds.org/specs/source-date-epoch/ for details.
cmake_minimum_required(VERSION 3.24)
# Link items by fill path
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)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Fallback for when git can not be found
set(DESKFLOW_VERSION_MAJOR 1)
set(DESKFLOW_VERSION_MINOR 17)
set(DESKFLOW_VERSION_PATCH 2)
set(DESKFLOW_VERSION_MINOR 26)
set(DESKFLOW_VERSION_PATCH 0)
set(DESKFLOW_VERSION_TWEAK 0)
# Get the version from git if it's a git repository
# cmake-format: off
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
find_package(Git)
if(GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --short=8 HEAD
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
OUTPUT_VARIABLE GIT_SHA_SHORT
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
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)
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
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}")
@ -50,45 +56,146 @@ 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})
else()
set(DESKFLOW_VERSION_TWEAK "9999")
endif()
unset(GITREV)
endif()
endif()
# cmake-format: on
set(DESKFLOW_VERSION
"${DESKFLOW_VERSION_MAJOR}.${DESKFLOW_VERSION_MINOR}.${DESKFLOW_VERSION_PATCH}.${DESKFLOW_VERSION_TWEAK}"
)
set(DESKFLOW_VERSION_MS_CSV
"${DESKFLOW_VERSION_MAJOR},${DESKFLOW_VERSION_MINOR},${DESKFLOW_VERSION_PATCH},${DESKFLOW_VERSION_TWEAK}"
)
add_definitions(-DDESKFLOW_VERSION="${DESKFLOW_VERSION}")
#generate vcpkg file if needed
if(WIN32)
option (VCPKG_QT "Use Qt from VCPKG" OFF)
if(VCPKG_QT)
set(QT_LIBS ", \"qttranslations\", \"qtsvg\"")
endif()
configure_file(cmake/vcpkg.json.in ${CMAKE_SOURCE_DIR}/vcpkg.json @ONLY)
endif()
#Define our project
project(
deskflow
VERSION ${DESKFLOW_VERSION}
DESCRIPTION "Mouse and keyboard sharing utility"
LANGUAGES C CXX)
VERSION "${DESKFLOW_VERSION_MAJOR}.${DESKFLOW_VERSION_MINOR}.${DESKFLOW_VERSION_PATCH}.${DESKFLOW_VERSION_TWEAK}"
DESCRIPTION "Keyboard and mouse sharing utility"
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-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)
unset(DESKFLOW_VERSION_MINOR)
unset(DESKFLOW_VERSION_PATCH)
unset(DESKFLOW_VERSION_TWEAK)
message(STATUS "Building ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
include(cmake/Definitions.cmake)
include(cmake/Build.cmake)
# Set lib versions
set(REQUIRED_OPENSSL_VERSION 3.0)
set(REQUIRED_LIBEI_VERSION 1.3)
set(REQUIRED_LIBPORTAL_VERSION 0.8)
set(REQUIRED_QT_VERSION 6.7.0)
if (WIN32)
add_definitions(-DSYSAPI_WIN32 -DWINAPI_MSWINDOWS)
# VSCMD_ARG_TGT_ARCH is set on CI
if ("$ENV{VSCMD_ARG_TGT_ARCH}" STREQUAL "")
# NOT on CI
if (CMAKE_SYSTEM_PROCESSOR MATCHES "[Aa][Rr][Mm]64")
set(BUILD_ARCHITECTURE arm64)
else()
set(BUILD_ARCHITECTURE x64)
endif()
else()
set (BUILD_ARCHITECTURE $ENV{VSCMD_ARG_TGT_ARCH})
endif()
else()
set (BUILD_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
endif()
if (MSVC)
# On Windows, require that the same MSVC runtime is used as on the host.
# Mitigates things like access violations caused by accidental ABI-compatibility breakage.
set(REQUIRED_MSVC_RUNTIME_MAJOR 14)
cmake_host_system_information(
RESULT REQUIRED_MSVC_RUNTIME_MINOR
QUERY WINDOWS_REGISTRY
"HKLM/SOFTWARE/Microsoft/VisualStudio/${REQUIRED_MSVC_RUNTIME_MAJOR}.0/VC/Runtimes/${BUILD_ARCHITECTURE}"
VALUE "Minor")
if (REQUIRED_MSVC_RUNTIME_MINOR)
message(STATUS "MSVC runtime: ${REQUIRED_MSVC_RUNTIME_MAJOR}.${REQUIRED_MSVC_RUNTIME_MINOR}")
else()
message(FATAL_ERROR "MSVC runtime registry entry not found")
endif()
endif()
# Control debug item visibility
# When not set logging is forced to DEBUG and show code locations
# Also exposes a test menu
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "Disabling debug build")
add_definitions(-DNDEBUG)
endif()
# Set Output Folders
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
# disables the use of signals,slots and emit
# Instead use Q_SIGNAL, Q_SLOT and Q_EMIT
# prevents issues when used with glib for libportal
add_definitions(-DQT_NO_KEYWORDS)
#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)
include(cmake/Packaging.cmake)
include(GNUInstallDirs)
configure_definitions()
configure_build()
configure_libs()
configure_packaging()
# setup install paths
include(GNUInstallDirs)
if (WIN32)
set(CMAKE_INSTALL_BINDIR .)
set(CMAKE_INSTALL_LIBDIR .)
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(doc)
add_subdirectory(src)
add_subdirectory(deploy)
post_config_all()
# 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
)

13
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,13 @@
# Contributing to Deskflow
Thanks for your interest in contributing to Deskflow! We welcome all kinds of contributions — bug reports, feature suggestions, documentation improvements, and code.
## Read the Full Guidelines
To keep this repository clean and contribution-friendly, we've outlined our full contributing guidelines on the Deskflow Wiki:
👉 [How to Contribute to Deskflow](https://github.com/deskflow/deskflow/wiki/Contributing)
Please take a moment to read through the page before opening an issue or submitting a pull request.
Thanks again for helping make Deskflow better!

117
LICENSES/GPL-2.0-only.txt Normal file
View File

@ -0,0 +1,117 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice

176
LICENSES/LGPL-2.1-only.txt Normal file
View File

@ -0,0 +1,176 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.
To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.
Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.
When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.
We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.
For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).
To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
one line to give the library's name and an idea of what it does.
Copyright (C) year name of author
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in
the library `Frob' (a library for tweaking knobs) written
by James Random Hacker.
signature of Ty Coon, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

18
LICENSES/MIT.txt Normal file
View File

@ -0,0 +1,18 @@
MIT License
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

131
README.md
View File

@ -1,13 +1,8 @@
![Deskflow](https://github.com/user-attachments/assets/f005b958-24df-4f4a-9bfd-4f834dae59d6)
> [!NOTE]
> **Deskflow** is the official upstream project for [Synergy](https://symless.com/synergy).
> Purchasing a Synergy license is one way to support Deskflows growth and sustainability.
>
> The Deskflow project was established to cultivate community-driven development where everyone can collaborate.
> Synergy sponsors the Deskflow project by contributing code and providing financial support.
>
> More info: [Relationship with Synergy](https://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy)
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/deskflow/deskflow-artwork/blob/main/logo/deskflow-logo-dark-200px.png?raw=true">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/deskflow/deskflow-artwork/blob/main/logo/deskflow-logo-light-200px.png?raw=true">
<img alt="Deskflow" src="https://github.com/user-attachments/assets/f005b958-24df-4f4a-9bfd-4f834dae59d6">
</picture>
**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,
@ -15,16 +10,35 @@ and work seamlessly between them.
It's like a software KVM (but without the video).
TLS encryption is enabled by default. Wayland is supported. Clipboard sharing is supported.
[![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)
> [!TIP]
>
> **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.
To use Deskflow you can use one of our [packages](https://github.com/deskflow/deskflow/releases), install `deskflow` (if available in your package repository), or [build it](#build-quick-start) yourself from source.
## Download
[![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.
## Stats
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/deskflow/deskflow?logo=github)](https://github.com/deskflow/deskflow/commits/master/)
[![GitHub top language](https://img.shields.io/github/languages/top/deskflow/deskflow?logo=github)](https://github.com/deskflow/deskflow/commits/master/)
[![GitHub License](https://img.shields.io/github/license/deskflow/deskflow?logo=github)](LICENSE)
[![REUSE status](https://api.reuse.software/badge/github.com/deskflow/deskflow)](https://api.reuse.software/info/github.com/deskflow/deskflow)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=deskflow_deskflow&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=deskflow_deskflow)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=deskflow_deskflow&metric=coverage)](https://sonarcloud.io/summary/new_code?id=deskflow_deskflow)
@ -35,27 +49,15 @@ To use Deskflow you can use one of our [packages](https://github.com/deskflow/de
[![CodeQL Analysis](https://github.com/deskflow/deskflow/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/deskflow/deskflow/actions/workflows/codeql-analysis.yml)
[![SonarCloud Analysis](https://github.com/deskflow/deskflow/actions/workflows/sonarcloud-analysis.yml/badge.svg)](https://github.com/deskflow/deskflow/actions/workflows/sonarcloud-analysis.yml)
## Project Values
## Contribute
- Motivated by the community interests (not business-driven)
- Privacy by default (e.g. update check is off by default)
- Leading edge releases (we don't focus on supporting older systems)
- Decisions are discussed and documented publicly with majority rule
- Have fun; we don't need to worry about impressing anyone
[![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)
## Ways to get involved
There are many ways to contribute to the Deskflow project.
> [!TIP]
> Join us! Real-time discussion on Matrix: [`#deskflow:matrix.org`](https://matrix.to/#/#deskflow:matrix.org)
>
> Alternatively, we have [other ways](https://github.com/deskflow/deskflow/wiki/Chat-with-us) to communicate.
>
Here are a few ways to join in with the project and get involved:
* Build the latest `master` version (see below) and [report a bug](https://github.com/deskflow/deskflow/issues)
* [Submit a PR](https://github.com/deskflow/deskflow/wiki/Contributing) (pull request) with a bug fix or improvement
* [Let us know](https://github.com/deskflow/deskflow/issues) if you have an idea for an improvement
We're a friendly, active, and welcoming community focused on building a great app.
## Build Quick Start
Read our [Contributing](https://github.com/deskflow/deskflow/wiki/Contributing) page to get started.
For instructions on building Deskflow, use the wiki page: [Building](https://github.com/deskflow/deskflow/wiki/Building)
@ -63,8 +65,12 @@ 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.
All Linux distributions are supported, primarily focusing on:
Debian, Ubuntu, Linux Mint, Fedora, RHEL, AlmaLinux, Rocky Linux, Arch Linux, openSUSE, Gentoo.
Windows 10 v1809 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.
We officially support FreeBSD, and would also like to support: OpenBSD, NetBSD, DragonFly, Solaris.
@ -75,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.
@ -89,77 +93,73 @@ 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:
- Stable: `brew install deskflow`
- Continuous: `brew install deskflow-dev`
## Collaborative Projects
## Similar Projects
In the open source developer community, similar projects collaborate for the improvement of all
mouse and keyboard sharing tools. We aim for idea sharing and interoperability.
* [**Lan Mouse**](https://github.com/feschber/lan-mouse) -
- [**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://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy) -
Downstream commercial fork and Deskflow sponsor, geared toward adapting to customer
needs, offering business and enterprise licensing.
- [**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
### What is the relationship with Synergy?
[![Sponsored by: Synergy](https://raw.githubusercontent.com/deskflow/deskflow-artwork/b2c72a3e60a42dee793bd47efc275b5ee0bdaa5f/misc/synergy-sponsor.svg)](https://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy)
Synergy sponsors the Deskflow project by contributing code and providing financial support while maintaining its customer-oriented code downstream.
Learn more: [Relationship with Synergy](https://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy)
### Is Deskflow compatible with Synergy, Input Leap, or Barrier?
Yes, Deskflow has network compatibility with all forks:
- Requires Deskflow >= v1.17.0.96
- Deskflow will *just work* with Input Leap and Barrier (server or client).
- Connecting a Deskflow client to a Synergy server will also *just work*.
- To connect a Synergy client, you need to select the Synergy protocol in the Deskflow server settings.
- Deskflow will _just work_ with Input Leap and Barrier (server or client).
- Connecting a Deskflow client to a Synergy 1 server will also _just work_.
- To connect a Synergy 1 client, you need to select the Synergy protocol in the Deskflow server settings.
_Note:_ Only Synergy 1 is compatible with Deskflow (Synergy 3 is not yet compatible).
### Is Deskflow compatible with Lan Mouse?
We would love to see compatibility with Lan Mouse. This maybe quite an effort as currently they way they handle the generated input is very different.
We would love to see compatibility with Lan Mouse. This may be quite an effort as currently the way they handle the generated input is very different.
### If I want to solve issues in Deskflow do I need to contribute to a fork?
We welcome PRs (pull requests) from the community. If you'd like to make a change, please feel
free to [start a discussion](https://github.com/deskflow/deskflow/discussions) or
free to [start a discussion](https://github.com/deskflow/deskflow/discussions) or
[open a PR](https://github.com/deskflow/deskflow/wiki/Contributing).
### Is clipboard sharing supported?
Absolutely. The clipboard-sharing feature is a cornerstone feature of the product and we are
Absolutely. The clipboard-sharing feature is a cornerstone feature of the product and we are
committed to maintaining and improving that feature.
### Is Wayland for Linux supported?
Yes! Wayland (the Linux display server protocol aimed to become the successor of the X Window
Yes! Wayland (the Linux display server protocol aimed to become the successor of the X Window
System) is an important platform for us.
The [`libei`](https://gitlab.freedesktop.org/libinput/libei) and
[`libportal`](https://github.com/flatpak/libportal) libraries enable
The [`libei`](https://gitlab.freedesktop.org/libinput/libei) and
[`libportal`](https://github.com/flatpak/libportal) libraries enable
Wayland support for Deskflow. We would like to give special thanks to Peter Hutterer,
who is the author of `libei`, a major contributor to `libportal`, and the author of the Wayland
implementation in Deskflow. Others such as Olivier Fourdan and Povilas Kanapickas helped with the
Wayland implementation.
Some features _may_ be unavailable or broken on Wayland. Please see the [known Wayland issues](https://github.com/deskflow/deskflow/discussions/7499).
### Where did it all start?
Deskflow was first created as Synergy in 2001 by Chris Schoeneman.
@ -170,9 +170,12 @@ wiki.
![Meow'Dib](https://github.com/user-attachments/assets/726f695c-3dfb-4abd-875d-ed658f6c610f)
## Deskflow Contributors
[![Sponsored by Synergy](https://raw.githubusercontent.com/deskflow/deskflow-artwork/b2c72a3e60a42dee793bd47efc275b5ee0bdaa5f/misc/synergy-sponsor.svg)](https://symless.com/synergy)
[Synergy](https://symless.com/synergy) sponsors the Deskflow project by contributing code and providing financial support ([learn more](https://github.com/deskflow/deskflow/wiki/Relationship-with-Synergy)).
Deskflow is made by possible by these contributors.
<a href = "https://github.com/deskflow/deskflow/graphs/contributors">
@ -181,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](LICENSE_EXCEPTION).
This project is licensed under [GPL-2.0](LICENSE) with an [OpenSSL exception](LICENSES/LicenseRef-OpenSSL-Exception.txt).

67
REUSE.toml Normal file
View File

@ -0,0 +1,67 @@
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
version = 1
SPDX-PackageName = "deskflow"
SPDX-PackageSupplier = "Deskflow Devs"
SPDX-PackageDownloadLocation = "https://github.com/deskflow/deskflow"
[[annotations]]
path = [
".github/**"
, ".clang-format"
, ".editorconfig"
, ".gitattributes"
, ".gitignore"
, "cspell.json"
, "sonar-project.properties"
, "cmake/vcpkg.json.in"
, "**/*.md"
, "doc/**"
, "deploy/linux/flatpak/**"
, "deploy/linux/org.deskflow.deskflow.metainfo.xml"
, "deploy/windows/wix-patch.xml.in"
, "src/apps/deskflow-client/deskflow-client.exe.manifest"
, "src/apps/deskflow-core/deskflow-core.exe.manifest"
, "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"
]
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = [
"deploy/mac/dmg-background.tiff"
, "deploy/mac/dmg-volume.icns"
, "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"
, "src/apps/res/image/welcome.png"
, "src/apps/res/Deskflow.icns"
, "src/apps/res/deskflow.ico"
, "src/apps/res/deskflow.qrc"
]
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "GPL-2.0-only"
[[annotations]]
path = "src/apps/res/icons/deskflow-**/**/**/**.svg"
SPDX-FileCopyrightText = "Kde Breeze Icons"
SPDX-License-Identifier = "LGPL-2.1-only"
[[annotations]]
path = "src/apps/res/icons/deskflow-**/index.theme"
SPDX-FileCopyrightText = "Chris Rizzitello <sithlord48@gmail.com>"
SPDX-License-Identifier = "LGPL-2.1-only"
[[annotations]]
path = [
"src/lib/gui/MainWindow.ui"
, "src/lib/gui/dialogs/*.ui"
]
SPDX-FileCopyrightText = "Deskflow Developers"
SPDX-License-Identifier = "GPL-2.0-only WITH LicenseRef-OpenSSL-Exception"

11
SECURITY.md Normal file
View File

@ -0,0 +1,11 @@
# Security Policy
## Supported Versions
The latest minor release is supported and receives security updates:
https://github.com/deskflow/deskflow/releases
## Reporting a Vulnerability
Please report vulnerabilities on our issue tracker as bugs:
https://github.com/deskflow/deskflow/issues

View File

@ -1,104 +0,0 @@
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2024 Symless Ltd.
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
macro(configure_build)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
if(APPLE)
message(STATUS "Configuring for Apple")
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
endif()
set_build_date()
configure_file_shared()
endmacro()
macro(set_build_date)
# Since CMake 3.8.0, `string(TIMESTAMP ...)` respects `SOURCE_DATE_EPOCH` env var if set,
# which allows package maintainers to create reproducible builds.
# We require CMake 3.8.0 in the root `CMakeLists.txt` for this reason.
string(TIMESTAMP BUILD_DATE "%Y-%m-%d" UTC)
message(STATUS "Build date: ${BUILD_DATE}")
add_definitions(-DBUILD_DATE="${BUILD_DATE}")
endmacro()
macro(configure_file_shared)
configure_file(${PROJECT_SOURCE_DIR}/src/lib/gui/gui_config.h.in
${PROJECT_BINARY_DIR}/config/gui_config.h)
endmacro()
macro(post_config)
# Build to a temp bin dir on Windows and then copy to the final bin dir
# (ignore copy fail). It is neccesary to do this. Since the binary may already
# be running and you can't write to a running binary (on Windows). It's common
# to use Deskflow to develop Deskflow (i.e. eating your own dog food immediately
# making it).
if(WIN32)
if(NOT target)
message(FATAL_ERROR "target not set")
endif()
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${BIN_TEMP_DIR})
endif()
endmacro()
macro(post_config_all)
if(WIN32)
# Always try to copy the files to the bin directory after every build and deliberatly ignore
# copy errors, usually the error is because a running process has locked the file.
#
# It is useful to copy every time because the copy may have failed last time due to the file
# being in use, and we'll usually want to try again (after killing the process).
#
# Yes, this looks like a ridiculous thing to do, but it really is necessary to
# use a Python script to copy files on Windows. Why? Two reasons:
#
# 1. Windows file locks (on running processes) creates a very painful development
# experience; you can't overwrite the binary you're running it.
# Why not just stop the process? Windows services are an abject PITA to manage,
# and we don't always care about overwriting all binaries.
#
# 2. The Windows copy command is limited and gives vague/misleading errors.
# The CMake copy command also has similar shortfalls.
#
# Patches welcome! :)
add_custom_target(
run_post_build ALL
COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/fancy_copy.py
${BIN_TEMP_DIR} ${PROJECT_BINARY_DIR}/bin --ignore-errors
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
VERBATIM
COMMENT "Copying files to bin dir")
add_dependencies(
run_post_build
deskflow
deskflow-client
deskflow-server
deskflow-daemon)
endif()
endmacro()

View File

@ -1,72 +1,11 @@
# SOURCE https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake
# Copyright (c) 2012 - 2017, Lars Bilke
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# CHANGES:
#
# 2012-01-31, Lars Bilke
# - Enable Code Coverage
#
# 2013-09-17, Joakim Söderberg
# - Added support for Clang.
# - Some additional usage instructions.
#
# 2016-02-03, Lars Bilke
# - Refactored functions to use named parameters
#
# 2017-06-02, Lars Bilke
# - Merged with modified version from github.com/ufz/ogs
#
# 2019-05-06, Anatolii Kurotych
# - Remove unnecessary --coverage flag
#
# 2019-12-13, FeRD (Frank Dana)
# - Deprecate COVERAGE_LCOVR_EXCLUDES and COVERAGE_GCOVR_EXCLUDES lists in favor
# of tool-agnostic COVERAGE_EXCLUDES variable, or EXCLUDE setup arguments.
# - CMake 3.4+: All excludes can be specified relative to BASE_DIRECTORY
# - All setup functions: accept BASE_DIRECTORY, EXCLUDE list
# - Set lcov basedir with -b argument
# - Add automatic --demangle-cpp in lcovr, if 'c++filt' is available (can be
# overridden with NO_DEMANGLE option in setup_target_for_coverage_lcovr().)
# - Delete output dir, .info file on 'make clean'
# - Remove Python detection, since version mismatches will break gcovr
# - Minor cleanup (lowercase function names, update examples...)
#
# 2019-12-19, FeRD (Frank Dana)
# - Rename Lcov outputs, make filtered file canonical, fix cleanup for targets
#
# 2020-01-19, Bob Apthorpe
# - Added gfortran support
#
# 2020-02-17, FeRD (Frank Dana)
# - Make all add_custom_target()s VERBATIM to auto-escape wildcard characters
# in EXCLUDEs, and remove manual escaping from gcovr targets
#
# 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:
#
# 1. Copy this file into your cmake modules path.

View File

@ -1,101 +0,0 @@
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2012-2024 Symless Ltd.
# Copyright (C) 2009-2012 Nick Bolton
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
macro(configure_definitions)
configure_ninja()
configure_options()
set(INTEG_TESTS_BIN integtests)
set(UNIT_TESTS_BIN unittests)
if(NOT "$ENV{GIT_SHA}" STREQUAL "")
# Shorten the Git SHA to 8 chars for readability
string(SUBSTRING "$ENV{GIT_SHA}" 0 8 GIT_SHA_SHORT)
message(STATUS "Short Git SHA: ${GIT_SHA_SHORT}")
add_definitions(-DGIT_SHA_SHORT="${GIT_SHA_SHORT}")
endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "Disabling debug build")
add_definitions(-DNDEBUG)
endif()
# TODO: find out why we need these, and remove them if we don't.
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0005 NEW)
endif()
# TODO: explain why we're adding headers to sources.
if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
set(ADD_HEADERS_TO_SOURCES FALSE)
else()
set(ADD_HEADERS_TO_SOURCES TRUE)
endif()
set(BIN_TEMP_DIR ${PROJECT_BINARY_DIR}/temp/bin)
endmacro()
macro(configure_ninja)
# use response files so that ninja can compile on windows, otherwise you get
# an error when linking qt: "The input line is too long."
set(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS 1)
set(CMAKE_C_RESPONSE_FILE_LINK_FLAG "@")
set(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "@")
set(CMAKE_NINJA_FORCE_RESPONSE_FILE
1
CACHE INTERNAL "")
endmacro()
macro(configure_options)
set(DEFAULT_BUILD_GUI ON)
set(DEFAULT_BUILD_INSTALLER ON)
set(DEFAULT_BUILD_TESTS ON)
# unified binary is off by default for now, for backwards compatibility.
set(DEFAULT_BUILD_UNIFIED OFF)
# coverage is off by default because it's GCC only and a developer preference.
set(DEFAULT_ENABLE_COVERAGE OFF)
if("$ENV{DESKFLOW_BUILD_MINIMAL}" STREQUAL "true")
set(DEFAULT_BUILD_GUI OFF)
set(DEFAULT_BUILD_INSTALLER OFF)
endif()
if("$ENV{DESKFLOW_BUILD_TESTS}" STREQUAL "false")
set(DEFAULT_BUILD_TESTS OFF)
endif()
if("$ENV{DESKFLOW_BUILD_UNIFIED}" STREQUAL "true")
set(DEFAULT_BUILD_UNIFIED ON)
endif()
if("$ENV{DESKFLOW_ENABLE_COVERAGE}" STREQUAL "true")
set(DEFAULT_ENABLE_COVERAGE ON)
endif()
option(BUILD_GUI "Build GUI" ${DEFAULT_BUILD_GUI})
option(BUILD_INSTALLER "Build installer" ${DEFAULT_BUILD_INSTALLER})
option(BUILD_TESTS "Build tests" ${DEFAULT_BUILD_TESTS})
option(BUILD_UNIFIED "Build unified binary" ${DEFAULT_BUILD_UNIFIED})
option(ENABLE_COVERAGE "Enable test coverage" ${DEFAULT_ENABLE_COVERAGE})
endmacro()

View File

@ -1,20 +1,6 @@
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2024 Symless Ltd.
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set(LIBEI_MIN_VERSION 1.3)
set(LIBPORTAL_MIN_VERSION 0.8)
# SPDX-FileCopyrightText: (C) 2024 - 2025 Deskflow Developers
# SPDX-FileCopyrightText: (C) 2024 Symless Ltd
# SPDX-License-Identifier: MIT
macro(configure_libs)
@ -22,13 +8,81 @@ macro(configure_libs)
if(UNIX)
configure_unix_libs()
elseif(WIN32)
configure_windows_libs()
find_package(Python REQUIRED QUIET)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD /O2 /Ob2")
list(APPEND libs Wtsapi32 Userenv Wininet comsuppw Shlwapi version)
add_definitions(
/DWIN32
/D_WINDOWS
/D_CRT_SECURE_NO_WARNINGS
/D_XKEYCHECK_H
)
endif()
configure_qt()
configure_openssl()
configure_coverage()
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Widgets Network)
if(UNIX AND NOT APPLE)
find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS DBus Xml)
endif()
# Define the location of Qt deployment tool
if(WIN32)
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND VCPKG_QT)
set(DEPLOY_TOOL windeployqt.debug.bat)
else()
set(DEPLOY_TOOL windeployqt)
endif()
elseif(APPLE)
set(DEPLOY_TOOL macdeployqt)
endif()
if (WIN32 OR APPLE)
find_program(DEPLOYQT ${DEPLOY_TOOL})
if(DEPLOYQT STREQUAL "DEPLOYQT-NOTFOUND")
message(FATAL_ERROR "Unable to locate the Qt Deploy Tool: \"${DEPLOY_TOOL}\"")
endif()
unset(DEPLOY_TOOL)
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
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")
include(cmake/CodeCoverage.cmake)
append_coverage_compiler_flags()
set(test_exclude subprojects/* build/* src/unittests/*)
set(test_src ${PROJECT_SOURCE_DIR}/src)
# Apparently solves the bug in gcov where it returns negative counts and confuses gcovr.
# > Got negative hit value in gcov line 'branch 2 taken -1' caused by a bug in gcov tool
# Bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-update=atomic")
setup_target_for_coverage_gcovr_xml(
NAME coverage-legacytests
EXECUTABLE legacytests
BASE_DIRECTORY ${test_src}
EXCLUDE ${test_exclude}
)
endif()
endmacro()
@ -49,61 +103,23 @@ macro(configure_unix_libs)
include(CheckIncludeFileCXX)
include(CheckSymbolExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
check_include_file_cxx(istream HAVE_ISTREAM)
check_include_file_cxx(ostream HAVE_OSTREAM)
check_include_file_cxx(sstream HAVE_SSTREAM)
check_include_files(inttypes.h HAVE_INTTYPES_H)
check_include_files(locale.h HAVE_LOCALE_H)
check_include_files(memory.h HAVE_MEMORY_H)
check_include_files(stdlib.h HAVE_STDLIB_H)
check_include_files(strings.h HAVE_STRINGS_H)
check_include_files(string.h HAVE_STRING_H)
check_include_files(sys/select.h HAVE_SYS_SELECT_H)
check_include_files(sys/socket.h HAVE_SYS_SOCKET_H)
check_include_files(sys/stat.h HAVE_SYS_STAT_H)
check_include_files(sys/time.h HAVE_SYS_TIME_H)
check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(wchar.h HAVE_WCHAR_H)
check_function_exists(getpwuid_r HAVE_GETPWUID_R)
check_function_exists(gmtime_r HAVE_GMTIME_R)
check_function_exists(nanosleep HAVE_NANOSLEEP)
check_function_exists(sigwait HAVE_POSIX_SIGWAIT)
check_function_exists(strftime HAVE_STRFTIME)
check_function_exists(vsnprintf HAVE_VSNPRINTF)
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_SYS_SOCKET_H)
message(FATAL_ERROR "Missing header: sys/socket.h")
endif()
check_type_size(char SIZEOF_CHAR)
check_type_size(int SIZEOF_INT)
check_type_size(long SIZEOF_LONG)
check_type_size(short SIZEOF_SHORT)
check_include_files(unistd.h HAVE_UNISTD_H)
if (NOT HAVE_UNISTD_H)
message(FATAL_ERROR "Missing unistd.h")
endif()
check_function_exists(sigwait HAVE_POSIX_SIGWAIT)
if (NOT HAVE_POSIX_SIGWAIT)
message(FATAL_ERROR "Missing posix sigwait")
endif()
# pthread is used on both Linux and Mac
check_library_exists("pthread" pthread_create "" HAVE_PTHREAD)
@ -114,100 +130,41 @@ macro(configure_unix_libs)
endif()
if(APPLE)
configure_mac_libs()
set(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS} -DGTEST_USE_OWN_TR1_TUPLE=1")
find_library(lib_ScreenSaver ScreenSaver)
find_library(lib_IOKit IOKit)
find_library(lib_ApplicationServices ApplicationServices)
find_library(lib_Foundation Foundation)
find_library(lib_Carbon Carbon)
find_library(lib_UserNotifications UserNotifications)
list(APPEND libs
${lib_ScreenSaver} ${lib_IOKit} ${lib_ApplicationServices}
${lib_Foundation} ${lib_Carbon} ${lib_UserNotifications}
)
add_definitions(-DWINAPI_CARBON=1)
else()
configure_xorg_libs()
configure_wayland_libs()
find_package(pugixml REQUIRED)
if (BUILD_X11_SUPPORT)
configure_xorg_libs()
endif()
include(FindPkgConfig)
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(lib_glib REQUIRED IMPORTED_TARGET glib-2.0)
pkg_search_module(PC_GDKPIXBUF gdk-pixbuf-2.0)
include_directories(${PC_GDKPIXBUF_INCLUDE_DIRS})
pkg_check_modules(lib_gdkpixbuf REQUIRED IMPORTED_TARGET gdk-pixbuf-2.0)
pkg_check_modules(lib_notify REQUIRED IMPORTED_TARGET libnotify)
add_definitions(-DHAVE_GDK_PIXBUF=1 -DHAVE_LIBNOTIFY=1)
pkg_check_modules(LIBXKBCOMMON REQUIRED xkbcommon)
pkg_check_modules(GLIB2 REQUIRED glib-2.0)
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 libnotify and gdk-pixbuf")
message(WARNING "pkg-config not found, skipping wayland libraries")
endif()
endif()
# For config.h, set some static values; it may be a good idea to make these
# values dynamic for non-standard UNIX compilers.
set(ACCEPT_TYPE_ARG3 socklen_t)
set(HAVE_CXX_BOOL 1)
set(HAVE_CXX_CASTS 1)
set(HAVE_CXX_EXCEPTIONS 1)
set(HAVE_CXX_MUTABLE 1)
set(HAVE_CXX_STDLIB 1)
set(HAVE_PTHREAD_SIGNAL 1)
set(SELECT_TYPE_ARG1 int)
set(SELECT_TYPE_ARG234 " (fd_set *)")
set(SELECT_TYPE_ARG5 " (struct timeval *)")
set(STDC_HEADERS 1)
set(TIME_WITH_SYS_TIME 1)
set(HAVE_SOCKLEN_T 1)
# 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()
#
# Apple macOS
#
macro(configure_mac_libs)
set(CMAKE_CXX_FLAGS
"--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS} -DGTEST_USE_OWN_TR1_TUPLE=1"
)
find_library(lib_ScreenSaver ScreenSaver)
find_library(lib_IOKit IOKit)
find_library(lib_ApplicationServices ApplicationServices)
find_library(lib_Foundation Foundation)
find_library(lib_Carbon Carbon)
list(
APPEND
libs
${lib_ScreenSaver}
${lib_IOKit}
${lib_ApplicationServices}
${lib_Foundation}
${lib_Carbon})
find_library(lib_UserNotifications UserNotifications)
list(APPEND libs ${lib_UserNotifications})
add_definitions(-DWINAPI_CARBON=1 -D_THREAD_SAFE)
endmacro()
macro(configure_wayland_libs)
include(FindPkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBXKBCOMMON REQUIRED xkbcommon)
pkg_check_modules(GLIB2 REQUIRED glib-2.0 gio-2.0)
find_library(LIBM m)
include_directories(${LIBXKBCOMMON_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS}
${LIBM_INCLUDE_DIRS})
else()
message(WARNING "pkg-config not found, skipping wayland libraries")
endif()
add_definitions(-DSYSAPI_UNIX=1)
endmacro()
@ -229,18 +186,11 @@ macro(configure_xorg_libs)
HAVE_X11_EXTENSIONS_DPMS_H)
check_include_files("X11/extensions/Xinerama.h"
HAVE_X11_EXTENSIONS_XINERAMA_H)
check_include_files("${XKBlib};X11/extensions/XKBstr.h"
HAVE_X11_EXTENSIONS_XKBSTR_H)
check_include_files("X11/extensions/XKB.h" HAVE_XKB_EXTENSION)
check_include_files("X11/extensions/XTest.h" HAVE_X11_EXTENSIONS_XTEST_H)
check_include_files("${XKBlib}" HAVE_X11_XKBLIB_H)
check_include_files("X11/extensions/XInput2.h" HAVE_XI2)
if(HAVE_X11_EXTENSIONS_DPMS_H)
# Assume that function prototypes declared, when include exists.
set(HAVE_DPMS_PROTOTYPES 1)
endif()
if(NOT HAVE_X11_XKBLIB_H)
message(FATAL_ERROR "Missing header: " ${XKBlib})
endif()
@ -312,101 +262,3 @@ macro(configure_xorg_libs)
add_definitions(-DWINAPI_XWINDOWS=1)
endmacro()
#
# Windows
#
macro(configure_windows_libs)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} /MP /D _BIND_TO_CURRENT_VCLIBS_VERSION=1")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD /O2 /Ob2")
list(
APPEND
libs
Wtsapi32
Userenv
Wininet
comsuppw
Shlwapi)
add_definitions(
/DWIN32
/D_WINDOWS
/D_CRT_SECURE_NO_WARNINGS
/DDESKFLOW_VERSION=\"${DESKFLOW_VERSION}\"
/D_XKEYCHECK_H)
configure_openssl()
endmacro()
macro(configure_qt)
find_package(
Qt6
COMPONENTS Core Widgets Network
REQUIRED)
message(STATUS "Qt version: ${Qt6_VERSION}")
endmacro()
macro(configure_openssl)
# Apple has to use static libraries because "Use of the Apple-provided OpenSSL
# libraries by apps is strongly discouraged."
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
# TODO: How about bundling the OpenSSL .dylib files with the app so they can be updated?
if(APPLE)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
find_package(OpenSSL 3.0 REQUIRED COMPONENTS SSL Crypto)
if(WIN32) #Used for dev in TLS and WIX
cmake_path(SET OPENSSL_ROOT_DIR NORMALIZE "${OPENSSL_INCLUDE_DIR}/..")
message(VERBOSE "Set OPENSSL_ROOT_DIR: ${OPENSSL_ROOT_DIR}")
set(OPENSSL_EXE_DIR "${OPENSSL_ROOT_DIR}/tools/openssl")
add_definitions(-DOPENSSL_EXE_DIR="${OPENSSL_EXE_DIR}")
endif()
endmacro()
macro(configure_coverage)
if(ENABLE_COVERAGE)
message(STATUS "Enabling code coverage")
include(cmake/CodeCoverage.cmake)
append_coverage_compiler_flags()
set(test_exclude subprojects/* build/* src/test/*)
set(test_src ${PROJECT_SOURCE_DIR}/src)
# Apparently solves the bug in gcov where it returns negative counts and confuses gcovr.
# > Got negative hit value in gcov line 'branch 2 taken -1' caused by a bug in gcov tool
# Bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-update=atomic")
setup_target_for_coverage_gcovr_xml(
NAME
coverage-${INTEG_TESTS_BIN}
EXECUTABLE
${INTEG_TESTS_BIN}
BASE_DIRECTORY
${test_src}
EXCLUDE
${test_exclude})
setup_target_for_coverage_gcovr_xml(
NAME
coverage-${UNIT_TESTS_BIN}
EXECUTABLE
${UNIT_TESTS_BIN}
BASE_DIRECTORY
${test_src}
EXCLUDE
${test_exclude})
else()
message(STATUS "Code coverage is disabled")
endif()
endmacro()

View File

@ -1,235 +0,0 @@
# 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
#
# If enabled, configure packaging based on OS.
#
macro(configure_packaging)
message(VERBOSE "Configuring Packaging")
set(DESKFLOW_PROJECT_RES_DIR ${PROJECT_SOURCE_DIR}/res)
if(${BUILD_INSTALLER})
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_CONTACT "Deskflow <maintainers@deskflow.org>")
set(CPACK_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
set(CPACK_PACKAGE_VENDOR "Deskflow")
set(CPACK_RESOURCE_FILE_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE)
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
#Prevent this override from being written in the package
if(NOT PACKAGE_VERSION_LABEL)
set (PACKAGE_VERSION_LABEL "${CPACK_PACKAGE_VERSION}")
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
configure_windows_packaging()
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
configure_mac_packaging()
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
configure_linux_packaging()
elseif(${CMAKE_SYSTEM_NAME} MATCHES "|.*BSD")
message(STATUS "BSD packaging not yet supported")
set(OS_STRING ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
endif()
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PACKAGE_VERSION_LABEL}-${OS_STRING}")
message(STATUS "Package Basename: ${CPACK_PACKAGE_FILE_NAME}")
include(CPack)
else()
message(STATUS "Not configuring installer")
endif()
endmacro()
#
# Windows installer
#
macro(configure_windows_packaging)
cmake_path(SET QT_PATH NORMALIZE "${Qt6_DIR}../../")
set(DESKFLOW_MSI_64_GUID
"027D1C8A-E7A5-4754-BB93-B2D45BFDBDC8"
CACHE STRING "GUID for 64-bit MSI installer")
set(DESKFLOW_MSI_32_GUID
"8F57C657-BC87-45E6-840E-41242A93511C"
CACHE STRING "GUID for 32-bit MSI installer")
configure_files(${PROJECT_SOURCE_DIR}/deploy/dist/wix
${PROJECT_BINARY_DIR}/installer)
if(CMAKE_SYSTEM_PROCESSOR MATCHES AMD64)
set(OS_STRING "win-x64")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES ARM64)
set(OS_STRING "win-arm64")
else()
set(OS_STRING "win-${CMAKE_SYSTEM_PROCESSOR}")
endif()
endmacro()
#
# macOS app bundle
#
macro(configure_mac_packaging)
set(CMAKE_INSTALL_RPATH
"@loader_path/../Libraries;@loader_path/../Frameworks")
set(DESKFLOW_BUNDLE_SOURCE_DIR
${PROJECT_SOURCE_DIR}/deploy/dist/mac/bundle
CACHE PATH "Path to the macOS app bundle")
set(DESKFLOW_BUNDLE_DIR ${PROJECT_BINARY_DIR}/bundle/Deskflow.app)
set(DESKFLOW_BUNDLE_BINARY_DIR ${DESKFLOW_BUNDLE_DIR}/Contents/MacOS)
configure_files(${DESKFLOW_BUNDLE_SOURCE_DIR} ${DESKFLOW_BUNDLE_DIR})
set(OS_STRING "macos-${CMAKE_SYSTEM_PROCESSOR}")
endmacro()
#
# Linux packages
#
macro(configure_linux_package_name)
# Get Distro name information
execute_process(
COMMAND bash "-c" "cat /etc/os-release | grep ^ID= | sed 's/ID=//g'"
OUTPUT_VARIABLE _DISTRO_NAME
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "\"" "" DISTRO_NAME "${_DISTRO_NAME}")
message(STATUS "Distro Name: ${DISTRO_NAME}")
execute_process(
COMMAND bash "-c"
"cat /etc/os-release | grep ^ID_LIKE= | sed 's/ID_LIKE=//g'"
OUTPUT_VARIABLE _DISTRO_LIKE
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "\"" "" DISTRO_LIKE "${_DISTRO_LIKE}")
message(STATUS "Distro Like: ${DISTRO_LIKE}")
execute_process(
COMMAND
bash "-c"
"cat /etc/os-release | grep ^VERSION_CODENAME= | sed 's/VERSION_CODENAME=//g'"
OUTPUT_VARIABLE _DISTRO_CODENAME
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "\"" "" DISTRO_CODENAME "${_DISTRO_CODENAME}")
message(STATUS "Distro Codename: ${DISTRO_CODENAME}")
execute_process(
COMMAND bash "-c"
"cat /etc/os-release | grep ^VERSION_ID= | sed 's/VERSION_ID=//g'"
OUTPUT_VARIABLE _DISTRO_VERSION_ID
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "\"" "" DISTRO_VERSION_ID "${_DISTRO_VERSION_ID}")
message(STATUS "Distro ID: ${DISTRO_VERSION_ID}")
# Check if Debian-link
string(REGEX MATCH debian|buntu DEBTYPE "${DISTRO_LIKE}")
if((NOT ("${DEBTYPE}" STREQUAL "")) OR ("${DISTRO_NAME}" STREQUAL "debian"))
set(CPACK_GENERATOR "DEB")
endif()
# Check if Rpm-like
string(REGEX MATCH suse|fedora|rhel RPMTYPE "${DISTRO_LIKE}")
string(REGEX MATCH fedora|suse|rhel RPMNAME "${DISTRO_NAME}")
if((NOT ("${RPMTYPE}" STREQUAL "")) OR (NOT ("${RPMNAME}" STREQUAL "")))
set(CPACK_GENERATOR "RPM")
endif()
# Disto specific name adjustments
if("${DISTRO_NAME}" STREQUAL "opensuse-tumbleweed")
set(DISTRO_NAME "opensuse")
set(DISTRO_CODENAME "tumbleweed")
elseif("${DISTRO_NAME}" STREQUAL "arch")
# Arch linux is rolling the version id reported is the date of last iso.
set(DISTRO_VERSION_ID "")
endif()
# Determain the code name to be used if any
if(NOT "${DISTRO_VERSION_ID}" STREQUAL "")
set(CN_STRING "${DISTRO_VERSION_ID}-")
endif()
if(NOT "${DISTRO_CODENAME}" STREQUAL "")
set(CN_STRING "${DISTRO_CODENAME}-")
endif()
set(OS_STRING "${DISTRO_NAME}-${CN_STRING}${CMAKE_SYSTEM_PROCESSOR}")
endmacro()
macro(configure_linux_packaging)
# Gather distro info
# This is used in package names
configure_linux_package_name()
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
set(CPACK_RPM_PACKAGE_GROUP "Applications/System")
# HACK: The GUI depends on the Qt6 QPA plugins package, but that's not picked
# up by shlibdeps on Ubuntu 22 (though not a problem on Ubuntu 24 and Debian
# 12), so we must add it manually.
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qt6-qpa-plugins")
endmacro()
#
# Same as the `configure_file` command but for directories recursively.
#
macro(configure_files srcDir destDir)
message(VERBOSE "Configuring directory ${destDir}")
make_directory(${destDir})
file(
GLOB_RECURSE sourceFiles
RELATIVE ${srcDir}
${srcDir}/*)
file(
GLOB_RECURSE templateFiles
LIST_DIRECTORIES false
RELATIVE ${srcDir}
${srcDir}/*.in)
list(REMOVE_ITEM sourceFiles ${templateFiles})
foreach(sourceFile ${sourceFiles})
set(sourceFilePath ${srcDir}/${sourceFile})
if(IS_DIRECTORY ${sourceFilePath})
message(VERBOSE "Copying directory ${sourceFile}")
make_directory(${destDir}/${sourceFile})
else()
message(VERBOSE "Copying file ${sourceFile}")
configure_file(${sourceFilePath} ${destDir}/${sourceFile} COPYONLY)
endif()
endforeach(sourceFile)
foreach(templateFile ${templateFiles})
set(sourceTemplateFilePath ${srcDir}/${templateFile})
string(REGEX REPLACE "\.in$" "" templateFile ${templateFile})
message(VERBOSE "Configuring file ${templateFile}")
configure_file(${sourceTemplateFilePath} ${destDir}/${templateFile} @ONLY)
endforeach(templateFile)
endmacro(configure_files)
macro(check_is_rpm)
# Check if RPM-like.
endmacro()

12
cmake/vcpkg.json.in Normal file
View File

@ -0,0 +1,12 @@
{
"$comment": "Generated file do not hand edit",
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "deskflow",
"version": "@DESKFLOW_VERSION_MAJOR@.@DESKFLOW_VERSION_MINOR@.@DESKFLOW_VERSION_PATCH@.@DESKFLOW_VERSION_TWEAK@",
"builtin-baseline": "d5ec528843d29e3a52d745a64b469f810b2cedbf",
"dependencies": [
"gtest",
"openssl"
@QT_LIBS@
]
}

View File

@ -11,19 +11,23 @@
"codesigning",
"Compat",
"contribs",
"daemonized",
"Daun",
"Devs",
"Deskflow",
"Devs",
"distro",
"distros",
"dmgbuild",
"dotenv",
"Evenson",
"Feder",
"Flatpaks",
"Fourdan",
"gdrive",
"Hadzhylov",
"Hetu",
"HINSTANCE",
"HKLM",
"hotspots",
"Hutterer",
"ifdef",
@ -35,12 +39,15 @@
"Kitware",
"Kutytska",
"Lanz",
"legacytests",
"libei",
"Libera",
"libportal",
"LLDB",
"logonui",
"Lysytsia",
"macdeployqt",
"mojibake",
"msvc",
"noquote",
"NOSONAR",
@ -48,6 +55,8 @@
"Oleksandr",
"Olena",
"outputdir",
"outputter",
"outputters",
"pacman",
"Petroules",
"Pixmap",
@ -57,8 +66,10 @@
"Priddy",
"psutil",
"pyproject",
"qobject",
"qputenv",
"readf",
"Redist",
"Regen",
"Repology",
"Rizzitello",
@ -67,9 +78,13 @@
"Schoeneman",
"Serhii",
"shemp",
"SNAPPROCESS",
"sonarcloud",
"sonarqube",
"Sorin",
"subproject",
"subprojects",
"Toolhelp",
"trackpad",
"Trixie",
"unittests",
@ -81,7 +96,9 @@
"Volker",
"whot",
"winget",
"wismill",
"writef",
"xkbcommon",
"XWINDOWS"
],
"ignoreWords": [],

View File

@ -1,41 +1,40 @@
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
# Handle Pre install Items
if(WIN32)
# Copy License with txt ext for picky package creation tools
file(COPY_FILE
${CMAKE_SOURCE_DIR}/LICENSE
${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt
ONLY_IF_DIFFERENT
)
# Configure the windows version rc file
configure_file(
${CMAKE_CURRENT_LIST_DIR}/version.rc.in
${PROJECT_BINARY_DIR}/src/version.rc @ONLY
)
# Generic Package Items
set(CPACK_STRIP_FILES TRUE)
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_CONTACT ${CMAKE_PROJECT_CONTACT})
set(CPACK_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
set(CPACK_PACKAGE_VENDOR ${CMAKE_PROJECT_VENDOR})
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt)
elseif(NOT APPLE)
# Install our desktop file
install(
FILES ${CMAKE_CURRENT_LIST_DIR}/org.deskflow.deskflow.desktop
DESTINATION share/applications
)
# Install our icon
install(
FILES ${CMAKE_CURRENT_LIST_DIR}/deskflow.png
DESTINATION share/icons/hicolor/512x512/apps/
RENAME org.deskflow.deskflow.png
)
# Install our metainfo
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.deskflow.deskflow.metainfo.xml
DESTINATION share/metainfo/
)
# Prepare PKGBUILD for Arch Linux
configure_file(
${CMAKE_CURRENT_LIST_DIR}/dist/arch/PKGBUILD.in
${CMAKE_BINARY_DIR}/PKGBUILD
@ONLY
)
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
#Prevent this override from being written in the package
if(NOT PACKAGE_VERSION_LABEL)
set (PACKAGE_VERSION_LABEL "${CPACK_PACKAGE_VERSION}")
endif()
if(WIN32)
include(windows/deploy.cmake)
elseif(UNIX AND NOT APPLE)
include(linux/deploy.cmake)
elseif(APPLE)
include(mac/deploy.cmake)
else()
message(STATUS "UNKNOWN System: ${CMAKE_SYSTEM_NAME}")
endif()
# Always use "deskflow" for start of name
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${PACKAGE_VERSION_LABEL}-${OS_STRING}")
message(STATUS "Package Basename: ${CPACK_PACKAGE_FILE_NAME}")
include(CPack)

View File

@ -1,40 +0,0 @@
# Maintainer: Deskflow Developers
pkgname=deskflow
pkgver=@DESKFLOW_VERSION@
pkgrel=1
pkgdesc="Mouse and keyboard sharing utility"
url='https://deskflow.org'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
license=('GPL-2.0-only')
depends=(
'gcc-libs'
'glibc'
'openssl'
'libx11'
'libxi'
'libxkbfile'
'libxext'
'libxtst'
'libxinerama'
'libxkbcommon-x11'
'libnotify'
'hicolor-icon-theme'
'pugixml'
'qt6-base'
'qt6-tools'
'libei'
'libportal'
'tomlplusplus'
'cli11'
)
conflicts=('synergy-git' 'synergy1-bin' 'synergy2-bin' 'synergy3-bin')
options=('!debug')
package() {
# By default, `makepkg` will run from the `src` directory, which would
# only install the binaries, and not the .desktop file, etc. To install
# everything, we need to set DESTDIR.
cd $startdir
DESTDIR=$pkgdir cmake --install .
}

View File

@ -1,31 +0,0 @@
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>Deskflow</string>
<key>CFBundleExecutable</key>
<string>deskflow</string>
<key>CFBundleIconFile</key>
<string>Deskflow.icns</string>
<key>CFBundleIdentifier</key>
<string>org.deskflow.deskflow</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Deskflow</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>DFLW</string>
<key>CFBundleShortVersionString</key>
<string>@DESKFLOW_VERSION@</string>
<key>CFBundleVersion</key>
<string>@DESKFLOW_VERSION@</string>
<key>NSHumanReadableCopyright</key>
<string>© 2024 Deskflow Developers</string>
<key>LSMinimumSystemVersion</key>
<string>10.9.0</string>
</dict>
</plist>

View File

@ -1 +0,0 @@
APPLDFLW

View File

@ -1,69 +0,0 @@
# -*- coding: utf-8 -*-
# Example: https://dmgbuild.readthedocs.io/en/latest/example.html
from __future__ import unicode_literals
import os.path
app = defines.get("app")
app_basename = os.path.basename(app)
format = defines.get("format", "UDBZ")
size = defines.get("size", None)
files = [app]
symlinks = {"Applications": "/Applications"}
icon = os.path.join(app, "Contents/Resources/Volume.icns")
icon_locations = {
app_basename: (144, 190),
"Applications": (455, 190),
}
background = os.path.join(app, "Contents/Resources/Background.tiff")
show_status_bar = False
show_tab_view = False
show_toolbar = False
show_pathbar = False
show_sidebar = False
sidebar_width = 180
window_rect = ((200, 120), (620, 420))
default_view = "icon-view"
show_icon_preview = False
include_icon_view_settings = "auto"
include_list_view_settings = "auto"
arrange_by = None
grid_offset = (0, 0)
grid_spacing = 100
scroll_position = (0, 0)
label_pos = "bottom"
text_size = 16
icon_size = 100
list_icon_size = 16
list_text_size = 12
list_scroll_position = (0, 0)
list_sort_by = "name"
list_use_relative_dates = True
list_calculate_all_sizes = (False,)
list_columns = ("name", "date-modified", "size", "kind", "date-added")
list_column_widths = {
"name": 300,
"date-modified": 181,
"date-created": 181,
"date-added": 181,
"date-last-opened": 181,
"size": 97,
"kind": 115,
"label": 100,
"version": 75,
"comments": 300,
}
list_column_sort_directions = {
"name": "ascending",
"date-modified": "descending",
"date-created": "descending",
"date-added": "descending",
"date-last-opened": "descending",
"size": "descending",
"kind": "ascending",
"label": "ascending",
"version": "ascending",
"comments": "ascending",
}

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="AppBrowseDlg" Width="370" Height="270" Title="!(loc.BrowseDlg_Title)">
<Control Id="PathEdit" Type="PathEdit" X="25" Y="202" Width="320" Height="18" Property="_BrowseProperty" Indirect="yes" />
<Control Id="OK" Type="PushButton" X="240" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUIOK)">
<Publish Event="SetTargetPath" Value="[_BrowseProperty]">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="Reset" Value="0">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="ComboLabel" Type="Text" X="25" Y="58" Width="44" Height="10" TabSkip="no" Text="!(loc.BrowseDlgComboLabel)" />
<Control Id="DirectoryCombo" Type="DirectoryCombo" X="70" Y="55" Width="220" Height="80" Property="_BrowseProperty" Indirect="yes" Fixed="yes" Remote="yes">
<Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
</Control>
<Control Id="WixUI_Bmp_Up" Type="PushButton" X="298" Y="55" Width="19" Height="19" ToolTip="!(loc.BrowseDlgWixUI_Bmp_UpTooltip)" Icon="yes" FixedSize="yes" IconSize="16" Text="!(loc.BrowseDlgWixUI_Bmp_Up)">
<Publish Event="DirectoryListUp" Value="0">1</Publish>
</Control>
<Control Id="NewFolder" Type="PushButton" X="325" Y="55" Width="19" Height="19" ToolTip="!(loc.BrowseDlgNewFolderTooltip)" Icon="yes" FixedSize="yes" IconSize="16" Text="!(loc.BrowseDlgNewFolder)">
<Publish Event="DirectoryListNew" Value="0">1</Publish>
</Control>
<Control Id="DirectoryList" Type="DirectoryList" X="25" Y="83" Width="320" Height="98" Property="_BrowseProperty" Sunken="yes" Indirect="yes" TabSkip="no" />
<Control Id="PathLabel" Type="Text" X="25" Y="190" Width="320" Height="10" TabSkip="no" Text="!(loc.BrowseDlgPathLabel)" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.BrowseDlgBannerBitmap)" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Title" Type="Text" X="15" Y="15" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.BrowseDlgTitle)" />
</Dialog>
</UI>
</Fragment>
</Wix>

View File

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
First-time install dialog sequence:
- WixUI_WelcomeDlg
- WixUI_LicenseAgreementDlg
- WixUI_InstallDirDlg
- WixUI_VerifyReadyDlg
- WixUI_DiskCostDlg
Maintenance dialog sequence:
- WixUI_MaintenanceWelcomeDlg
- WixUI_MaintenanceTypeDlg
- WixUI_InstallDirDlg
- WixUI_VerifyReadyDlg
Patch dialog sequence:
- WixUI_WelcomeDlg
- WixUI_VerifyReadyDlg
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="AppDlgSequence">
<TextStyle Id="WixUI_Font_Normal" FaceName="Roboto" Size="9" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Roboto" Size="14" />
<TextStyle Id="WixUI_Font_Title" FaceName="Roboto" Size="12" Bold="yes" Blue="255" Red="255" Green="255"/>
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="AppBrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="AppBrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="StartGui">NOT Installed</Publish>
<Publish Dialog="AppWelcome" Control="Next" Event="NewDialog" Value="AppInstallDirDlg" Order="1">1</Publish>
<Publish Dialog="AppWelcome" Control="Next" Event="NewDialog" Value="AppVerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="AppInstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="AppInstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="AppInstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="AppInstallDirDlg" Control="Next" Event="NewDialog" Value="AppVerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="AppInstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="AppInstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="AppBrowseDlg" Order="2">1</Publish>
<Publish Dialog="AppInstallDirDlg" Control="Back" Event="NewDialog" Value="AppWelcome" Order="2">1</Publish>
<Publish Dialog="AppVerifyReadyDlg" Control="Back" Event="NewDialog" Value="AppInstallDirDlg" Order="1">NOT Installed</Publish>
<Publish Dialog="AppVerifyReadyDlg" Control="Back" Event="NewDialog" Value="AppMaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="AppVerifyReadyDlg" Control="Back" Event="NewDialog" Value="AppInstallDirDlg" Order="2">Installed AND PATCH</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="AppMaintenanceTypeDlg">1</Publish>
<Publish Dialog="AppMaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="AppVerifyReadyDlg">1</Publish>
<Publish Dialog="AppMaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="AppVerifyReadyDlg">1</Publish>
<Publish Dialog="AppMaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
</Fragment>
</Wix>

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Include.wxi?>
<Fragment>
<UI Id="AppInstallDirDlg">
<Dialog Id="AppInstallDirDlg" Width="370" Height="270" Title="!(loc.InstallDirDlg_Title)">
<Control Id="Title" Type="Text" X="15" Y="15" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgTitle)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg" />
</Control>
<Control Id="InstallDirDlgBackground" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[CommonBackground]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="FolderLabel" Transparent="yes" Type="Text" X="20" Y="70" Width="290" Height="30" NoPrefix="yes" Text="!(loc.InstallDirDlgFolderLabel)" />
<Control Id="Folder" Type="PathEdit" X="20" Y="90" Width="320" Height="18" Property="WIXUI_INSTALLDIR" Indirect="yes" />
<Control Id="ChangeFolder" Type="PushButton" X="20" Y="112" Width="56" Height="17" Text="!(loc.InstallDirDlgChange)" />
</Dialog>
</UI>
</Fragment>
</Wix>

View File

@ -1,58 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
The use and distribution terms for this software are covered by the
Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
which can be found in the file CPL.TXT at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="AppMaintenanceTypeDlg" Width="370" Height="270" Title="!(loc.MaintenanceTypeDlg_Title)">
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[CommonBackground]" />
<Control Id="ChangeButton" Type="PushButton" X="40" Y="65" Width="80" Height="17" ToolTip="!(loc.MaintenanceTypeDlgChangeButtonTooltip)" Default="yes" Text="!(loc.MaintenanceTypeDlgChangeButton)">
<Publish Property="WixUI_InstallMode" Value="Change">1</Publish>
<Condition Action="disable">ARPNOMODIFY</Condition>
</Control>
<Control Id="ChangeText" Transparent="yes" Type="Text" X="60" Y="85" Width="280" Height="20" Text="!(loc.MaintenanceTypeDlgChangeText)">
<Condition Action="hide">ARPNOMODIFY</Condition>
</Control>
<Control Id="ChangeDisabledText" Transparent="yes" Type="Text" X="60" Y="85" Width="280" Height="20" NoPrefix="yes" Text="!(loc.MaintenanceTypeDlgChangeDisabledText)" Hidden="yes">
<Condition Action="show">ARPNOMODIFY</Condition>
</Control>
<Control Id="RepairButton" Type="PushButton" X="40" Y="118" Width="80" Height="17" ToolTip="!(loc.MaintenanceTypeDlgRepairButtonTooltip)" Text="!(loc.MaintenanceTypeDlgRepairButton)">
<Publish Property="WixUI_InstallMode" Value="Repair">1</Publish>
<Condition Action="disable">ARPNOREPAIR</Condition>
</Control>
<Control Id="RepairText" Transparent="yes" Type="Text" X="60" Y="138" Width="280" Height="30" Text="!(loc.MaintenanceTypeDlgRepairText)">
<Condition Action="hide">ARPNOREPAIR</Condition>
</Control>
<Control Id="RepairDisabledText" Transparent="yes" Type="Text" X="60" Y="138" Width="280" Height="30" NoPrefix="yes" Text="!(loc.MaintenanceTypeDlgRepairDisabledText)" Hidden="yes">
<Condition Action="show">ARPNOREPAIR</Condition>
</Control>
<Control Id="RemoveButton" Type="PushButton" X="40" Y="171" Width="80" Height="17" ToolTip="!(loc.MaintenanceTypeDlgRemoveButtonTooltip)" Text="!(loc.MaintenanceTypeDlgRemoveButton)">
<Publish Property="WixUI_InstallMode" Value="Remove">1</Publish>
<Condition Action="disable">ARPNOREMOVE</Condition>
</Control>
<Control Id="RemoveText" Transparent="yes" Type="Text" X="60" Y="191" Width="280" Height="20" NoPrefix="yes" Text="!(loc.MaintenanceTypeDlgRemoveText)">
<Condition Action="hide">ARPNOREMOVE</Condition>
</Control>
<Control Id="RemoveDisabledText" Transparent="yes" Type="Text" X="60" Y="191" Width="280" Height="20" NoPrefix="yes" Text="!(loc.MaintenanceTypeDlgRemoveDisabledText)" Hidden="yes">
<Condition Action="show">ARPNOREMOVE</Condition>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUINext)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Title" Type="Text" X="15" Y="15" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.MaintenanceTypeDlgTitle)" />
</Dialog>
</UI>
</Fragment>
</Wix>

View File

@ -1,140 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Include.wxi?>
<Fragment>
<UI>
<Dialog Id="AppVerifyReadyDlg" Width="370" Height="270" Title="!(loc.VerifyReadyDlg_Title)" TrackDiskSpace="yes">
<Control Id="Install" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgInstall)">
<Condition Action="show">NOT Installed AND ALLUSERS</Condition>
<Condition Action="enable">NOT Installed</Condition>
<Condition Action="default">NOT Installed</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="InstallNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgInstall)">
<Condition Action="show">NOT Installed AND NOT ALLUSERS</Condition>
<Condition Action="enable">NOT Installed</Condition>
<Condition Action="default">NOT Installed</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="Change" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgChange)">
<Condition Action="show">WixUI_InstallMode = "Change" AND ALLUSERS AND (ADDLOCAL OR REMOVE)</Condition>
<Condition Action="enable">WixUI_InstallMode = "Change"</Condition>
<Condition Action="default">WixUI_InstallMode = "Change"</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="ChangeNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgChange)">
<Condition Action="show">WixUI_InstallMode = "Change" AND (NOT ALLUSERS OR (NOT ADDLOCAL AND NOT REMOVE))</Condition>
<Condition Action="enable">WixUI_InstallMode = "Change"</Condition>
<Condition Action="default">WixUI_InstallMode = "Change"</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="Repair" Type="PushButton" X="212" Y="243" Width="80" Height="17" Default="yes" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRepair)">
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
<Condition Action="enable">WixUI_InstallMode = "Repair"</Condition>
<Condition Action="default">WixUI_InstallMode = "Repair"</Condition>
<Publish Event="ReinstallMode" Value="ecmus"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="Reinstall" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="Remove" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
<Condition Action="show">WixUI_InstallMode = "Remove" AND ALLUSERS</Condition>
<Condition Action="enable">WixUI_InstallMode = "Remove"</Condition>
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="RemoveNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgRemove)">
<Condition Action="show">WixUI_InstallMode = "Remove" AND NOT ALLUSERS</Condition>
<Condition Action="enable">WixUI_InstallMode = "Remove"</Condition>
<Publish Event="Remove" Value="All"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="Update" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgUpdate)">
<Condition Action="show">WixUI_InstallMode = "Update" AND ALLUSERS</Condition>
<Condition Action="enable">WixUI_InstallMode = "Update"</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="UpdateNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Hidden="yes" Disabled="yes" Text="!(loc.VerifyReadyDlgUpdate)">
<Condition Action="show">WixUI_InstallMode = "Update" AND NOT ALLUSERS</Condition>
<Condition Action="enable">WixUI_InstallMode = "Update"</Condition>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="InstallTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="{\WixUI_Font_Title}Ready to install">
<Condition Action="show">NOT Installed</Condition>
</Control>
<Control Id="InstallText" Transparent="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" Text="!(loc.VerifyReadyDlgInstallText)">
<Condition Action="show">NOT Installed</Condition>
</Control>
<Control Id="ChangeTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgChangeTitle)">
<Condition Action="show">WixUI_InstallMode = "Change"</Condition>
</Control>
<Control Id="ChangeText" Transparent="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" Text="!(loc.VerifyReadyDlgChangeText)">
<Condition Action="show">WixUI_InstallMode = "Change"</Condition>
</Control>
<Control Id="RepairTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgRepairTitle)">
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
</Control>
<Control Id="RepairText" Transparent="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgRepairText)">
<Condition Action="show">WixUI_InstallMode = "Repair"</Condition>
</Control>
<Control Id="RemoveTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgRemoveTitle)">
<Condition Action="show">WixUI_InstallMode = "Remove"</Condition>
</Control>
<Control Id="RemoveText" Transparent="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgRemoveText)">
<Condition Action="show">WixUI_InstallMode = "Remove"</Condition>
</Control>
<Control Id="UpdateTitle" Type="Text" X="15" Y="15" Width="300" Height="15" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="!(loc.VerifyReadyDlgUpdateTitle)">
<Condition Action="show">WixUI_InstallMode = "Update"</Condition>
</Control>
<Control Id="UpdateText" Transparent="yes" Type="Text" X="25" Y="70" Width="320" Height="80" Hidden="yes" NoPrefix="yes" Text="!(loc.VerifyReadyDlgUpdateText)">
<Condition Action="show">WixUI_InstallMode = "Update"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)">
<Condition Action="default">WixUI_InstallMode = "Remove"</Condition>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[CommonBackground]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
</Dialog>
</UI>
</Fragment>
</Wix>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Include.wxi?>
<Fragment>
<UI Id="AppWelcome">
<Property Id="AppWelcomeBackground">welcome_background</Property>
<Binary Id="welcome_background" SourceFile="$(var.DeployResDir)\dist\wix\images\welcome_background.png"/>
<Dialog Id="AppWelcome" Width="370" Height="270" Title="!(loc.WelcomeDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Property="WixUI_InstallMode" Value="Update">Installed AND PATCH</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[AppWelcomeBackground]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
</Dialog>
<InstallUISequence>
<Show Dialog="AppWelcome" Before="ProgressDlg" Overridable="yes">NOT Installed OR PATCH</Show>
</InstallUISequence>
</UI>
</Fragment>
</Wix>

View File

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
First-time install dialog sequence:
- WixUI_WelcomeDlg
- WixUI_LicenseAgreementDlg
- WixUI_InstallDirDlg
- WixUI_VerifyReadyDlg
- WixUI_DiskCostDlg
Maintenance dialog sequence:
- WixUI_MaintenanceWelcomeDlg
- WixUI_MaintenanceTypeDlg
- WixUI_InstallDirDlg
- WixUI_VerifyReadyDlg
Patch dialog sequence:
- WixUI_WelcomeDlg
- WixUI_VerifyReadyDlg
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="DeskflowDlgSequence">
<TextStyle Id="WixUI_Font_Normal" FaceName="Roboto" Size="9" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Roboto" Size="14" />
<TextStyle Id="WixUI_Font_Title" FaceName="Roboto" Size="12" Bold="yes" Blue="255" Red="255" Green="255"/>
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="DeskflowBrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="DeskflowBrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="StartGui">NOT Installed</Publish>
<Publish Dialog="DeskflowWelcome" Control="Next" Event="NewDialog" Value="DeskflowInstallDirDlg" Order="1">1</Publish>
<Publish Dialog="DeskflowWelcome" Control="Next" Event="NewDialog" Value="DeskflowVerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="Next" Event="NewDialog" Value="DeskflowVerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="DeskflowBrowseDlg" Order="2">1</Publish>
<Publish Dialog="DeskflowInstallDirDlg" Control="Back" Event="NewDialog" Value="DeskflowWelcome" Order="2">1</Publish>
<Publish Dialog="DeskflowVerifyReadyDlg" Control="Back" Event="NewDialog" Value="DeskflowInstallDirDlg" Order="1">NOT Installed</Publish>
<Publish Dialog="DeskflowVerifyReadyDlg" Control="Back" Event="NewDialog" Value="DeskflowMaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="DeskflowVerifyReadyDlg" Control="Back" Event="NewDialog" Value="DeskflowInstallDirDlg" Order="2">Installed AND PATCH</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="DeskflowMaintenanceTypeDlg">1</Publish>
<Publish Dialog="DeskflowMaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="DeskflowVerifyReadyDlg">1</Publish>
<Publish Dialog="DeskflowMaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="DeskflowVerifyReadyDlg">1</Publish>
<Publish Dialog="DeskflowMaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
</Fragment>
</Wix>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<?define AppId="deskflow"?>
<?define Name="Deskflow"?>
<?define Version="@DESKFLOW_VERSION@"?>
<?define Author="Deskflow"?>
<?define BinDir="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"?>
<?define ProjectIcon="@CMAKE_SOURCE_DIR@/src/gui/src/deskflow.ico"?>
<?define DeployResDir="@CMAKE_SOURCE_DIR@/deploy"?>
<?define QtDir="@QT_PATH@"?>
<?define QtBinDir="$(var.QtDir)\bin"?>
<?if $(var.Platform) = "x64"?>
<?define ProgramFilesFolder="ProgramFiles64Folder"?>
<?define PlatformSimpleName="64-bit"?>
<?define UpgradeGuid="@DESKFLOW_MSI_64_GUID@"?>
<?else?>
<?define ProgramFilesFolder="ProgramFilesFolder"?>
<?define PlatformSimpleName="32-bit"?>
<?define UpgradeGuid="@DESKFLOW_MSI_32_GUID@"?>
<?endif?>
<?define QtPluginsPath="$(var.QtDir)\plugins"?>
<?define OpenSslExeDir="@OPENSSL_EXE_DIR@"?>
<?define OpenSslDllDir="@OPENSSL_ROOT_DIR@/bin"?>
<?define GuiBin="deskflow.exe"?>
<?define ServerBin="deskflow-server.exe"?>
<?define ClientBin="deskflow-client.exe"?>
<?define CoreBin="deskflow-core.exe"?>
<?define DaemonBin="deskflow-daemon.exe"?>
</Include>

View File

@ -1,31 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29411.108
MinimumVisualStudioVersion = 10.0.40219.1
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Installer", "Installer.wixproj", "{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Debug|x64 = Debug|x64
Release|x86 = Release|x86
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Debug|x86.ActiveCfg = Debug|x86
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Debug|x86.Build.0 = Debug|x86
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Debug|x64.ActiveCfg = Debug|x64
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Debug|x64.Build.0 = Debug|x64
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Release|x86.ActiveCfg = Release|x86
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Release|x86.Build.0 = Release|x86
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Release|x64.ActiveCfg = Release|x64
{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2E0AA1C9-0F14-4FE4-8F18-430484EFBACE}
EndGlobalSection
EndGlobal

View File

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProductVersion>3.11</ProductVersion>
<ProjectGuid>{d4ba9f39-6a35-4c8f-9cb2-67fcbe5cab17}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>Installer</OutputName>
<OutputType>Package</OutputType>
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>wix\obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(SolutionDir)/AppWelcome.wxs" />
<Compile Include="$(SolutionDir)/AppInstallDirDlg.wxs" />
<Compile Include="$(SolutionDir)/AppBrowseDlg.wxs" />
<Compile Include="$(SolutionDir)/AppVerifyReadyDlg.wxs" />
<Compile Include="$(SolutionDir)/AppMaintenanceTypeDlg.wxs" />
<Compile Include="$(SolutionDir)/AppDlgSequence.wxs" />
<Compile Include="$(SolutionDir)/Product.wxs" />
<Content Include="$(SolutionDir)/Include.wxi" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
<WixExtension Include="WixUIExtension">
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
<WixExtension Include="WixFirewallExtension">
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixFirewallExtension.dll</HintPath>
<Name>WixFirewallExtension</Name>
</WixExtension>
</ItemGroup>
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets"
Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
</Project>

View File

@ -1,166 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?include Include.wxi?>
<Product Id="*" Language="1033" Manufacturer="$(var.Author)" Name="$(var.Name) ($(var.PlatformSimpleName))" UpgradeCode="$(var.UpgradeGuid)" Version="$(var.Version)">
<Package Compressed="yes" InstallScope="perMachine" InstallerVersion="301"/>
<MajorUpgrade DowngradeErrorMessage="A newer version of $(var.Name) is already installed."/>
<MediaTemplate EmbedCab="yes"/>
<!-- causes ICE61 warning, but stops user from installing many instances from nightly builds. -->
<Upgrade Id="$(var.UpgradeGuid)">
<UpgradeVersion Minimum="0.0.0.0" Property="UPGRADE"/>
</Upgrade>
<Feature Id="ProductFeature" Title="$(var.Name)">
<ComponentGroupRef Id="ProductComponents"/>
<ComponentGroupRef Id="OpenSSLComponents"/>
<ComponentGroupRef Id="ProductQtStylesComponents"/>
<ComponentGroupRef Id="ProductQtPluginComponents"/>
<ComponentRef Id="RegistryEntries"/>
<MergeRef Id="VC_Redist"/>
</Feature>
<DirectoryRef Id="TARGETDIR">
<Component Guid="7CF3564D-1F8E-4D3D-9781-E1EE22D5BD67" Id="RegistryEntries">
<RegistryKey Id="$(var.AppId)_server" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes" Key="Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" Root="HKLM">
<RegistryValue Name="[INSTALLFOLDER]$(var.ServerBin)" Type="string" Value="~ HIGHDPIAWARE WIN7RTM"/>
</RegistryKey>
<RegistryKey Id="$(var.AppId)_client" Root="HKLM"
Key="Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Type="string" Name="[INSTALLFOLDER]$(var.ClientBin)" Value="~ HIGHDPIAWARE WIN7RTM"/>
</RegistryKey>
<RegistryKey Id="$(var.AppId)" Root="HKLM"
Key="Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Type="string" Name="[INSTALLFOLDER]$(var.GuiBin)" Value="~ HIGHDPIAWARE WIN7RTM"/>
</RegistryKey>
<!-- Windows 8 and later only -->
<Condition><![CDATA[Installed OR (VersionNT >= 602)]]></Condition>
</Component>
<?if $(var.Platform) = x64 ?>
<Merge Id="VC_Redist" SourceFile="$(var.DeployResDir)\dist\wix\msm\Microsoft_VC142_CRT_x64.msm" DiskId="1" Language="0"/>
<?else ?>
<Merge Id="VC_Redist" SourceFile="$(var.DeployResDir)\dist\wix\msm\Microsoft_VC142_CRT_x86.msm" DiskId="1" Language="0"/>
<?endif ?>
</DirectoryRef>
<Property Id="CommonBackground">CommonBackground</Property>
<Binary Id="CommonBackground" SourceFile="$(var.DeployResDir)\dist\wix\images\common_background.png"/>
<Icon Id="AppIcon" SourceFile="$(var.ProjectIcon)"/>
<WixVariable Id="WixUIBannerBmp" Value="$(var.DeployResDir)\dist\wix\images\banner.png"/>
<WixVariable Id="WixUIDialogBmp" Value="$(var.DeployResDir)\dist\wix\images\dialog.png"/>
<Property Id="ARPPRODUCTICON" Value="AppIcon"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
<Property Id="LEGACY_UNINSTALL_EXISTS">
<RegistrySearch Id="LegacyRegistrySearch" Key="SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$(var.Name)" Name="UninstallString" Root="HKLM" Type="file" Win64="no">
<FileSearch Id="LegacyFileSearch" Name="uninstall.exe"/>
</RegistrySearch>
</Property>
<Condition Message="An existing installation of $(var.Name) was detected, please uninstall it before continuing.">NOT LEGACY_UNINSTALL_EXISTS
</Condition>
<CustomAction ExeCommand="" FileKey="GuiProgram" Id="StartGui" Return="asyncNoWait"/>
<UI>
<UIRef Id="AppDlgSequence" />
</UI>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.ProgramFilesFolder)">
<Directory Id="INSTALLFOLDER" Name="$(var.Name)">
<Directory Id="OpenSSLDir" Name="OpenSSL"/>
<Directory Id="PlatformsDir" Name="Platforms"/>
<Directory Id="QTStylesDir" Name="styles"/>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder"/>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Directory="INSTALLFOLDER" Id="ProductComponents">
<Component Guid="EC9AD3B0-277C-4157-B5C8-5FD5B6A5F4AD" Id="Core">
<File KeyPath="yes" Source="$(var.BinDir)/$(var.DaemonBin)"/>
<ServiceInstall Description="Controls the $(var.Name) foreground processes." DisplayName="$(var.Name)" ErrorControl="normal" Id="ServiceInstall" Name="$(var.Name)" Start="auto" Type="ownProcess">
<util:ServiceConfig FirstFailureActionType="restart" ResetPeriodInDays="1" RestartServiceDelayInSeconds="1" SecondFailureActionType="restart" ThirdFailureActionType="restart"/>
</ServiceInstall>
<ServiceControl Id="ServiceControl" Name="$(var.Name)" Remove="uninstall" Start="install" Stop="both"/>
<File Source="$(var.BinDir)/$(var.ServerBin)">
<fire:FirewallException Id="ServerFirewallException" IgnoreFailure="yes" Name="$(var.Name) Server" Scope="any"/>
</File>
<File Source="$(var.BinDir)/$(var.ClientBin)">
<fire:FirewallException Id="ClientFirewallException" IgnoreFailure="yes" Name="$(var.Name) Client" Scope="any"/>
</File>
<?if $(var.Platform) = x64 ?>
<File Source="$(var.OpenSslDllDir)/libssl-3-x64.dll"/>
<File Source="$(var.OpenSslDllDir)/libcrypto-3-x64.dll"/>
<?else ?>
<File Source="$(var.OpenSslDllDir)/libssl-3.dll"/>
<File Source="$(var.OpenSslDllDir)/libcrypto-3.dll"/>
<?endif ?>
</Component>
<Component Guid="BAC8149B-6287-45BF-9C27-43D71ED40214" Id="Gui">
<File Id="GuiProgram" KeyPath="yes" Source="$(var.BinDir)/$(var.GuiBin)">
<Shortcut Advertise="yes" Directory="ProgramMenuFolder" Icon="$(var.GuiBin)" Id="GuiShortcut" Name="$(var.Name)">
<Icon Id="$(var.GuiBin)" SourceFile="$(var.ProjectIcon)"/>
</Shortcut>
<fire:FirewallException Id="GuiFirewallException" IgnoreFailure="yes" Name="$(var.Name)" Scope="any"/>
</File>
<?if $(var.Configuration) = "Debug" ?>
<File Source="$(var.BinDir)\Qt6Cored.dll"/>
<File Source="$(var.BinDir)\Qt6Guid.dll"/>
<File Source="$(var.BinDir)\Qt6Networkd.dll"/>
<File Source="$(var.BinDir)\Qt6Svgd.dll"/>
<File Source="$(var.BinDir)\Qt6Widgetsd.dll"/>
<File Source="$(var.BinDir)\styles\qmodernwindowsstyle.dll"/>
<!-- HACK: Normally the C++ redistributable solves this dependency, including it can cause problems -->
<File Source="C:\Program Files (x86)\Windows Kits\10\bin\$(var.Platform)\ucrt\ucrtbased.dll"/>
<?else ?>
<File Source="$(var.BinDir)\brotlicommon.dll"/>
<File Source="$(var.BinDir)\brotlidec.dll"/>
<File Source="$(var.BinDir)\bz2.dll"/>
<File Source="$(var.BinDir)\double-conversion.dll"/>
<File Source="$(var.BinDir)\freetype.dll"/>
<File Source="$(var.BinDir)\harfbuzz.dll"/>
<File Source="$(var.BinDir)\icudt74.dll"/>
<File Source="$(var.BinDir)\icuin74.dll"/>
<File Source="$(var.BinDir)\icuuc74.dll"/>
<File Source="$(var.BinDir)\libpng16.dll"/>
<File Source="$(var.BinDir)\pcre2-16.dll"/>
<File Source="$(var.BinDir)\Qt6Core.dll"/>
<File Source="$(var.BinDir)\Qt6Gui.dll"/>
<File Source="$(var.BinDir)\Qt6Network.dll"/>
<File Source="$(var.BinDir)\Qt6Svg.dll"/>
<File Source="$(var.BinDir)\Qt6Widgets.dll"/>
<File Source="$(var.BinDir)\zlib1.dll"/>
<File Source="$(var.BinDir)\zstd.dll"/>
<File Source="$(var.BinDir)\styles\qmodernwindowsstyle.dll"/>
<?endif ?>
</Component>
</ComponentGroup>
<ComponentGroup Directory="QTStylesDir" Id="ProductQtStylesComponents">
<Component Guid="96E0F8D8-64FD-4CE8-94D1-F6EDCBBB4995" Id="Styles">
<File Id="qmodernwindowsstyle" Source="$(var.BinDir)\styles\qmodernwindowsstyle.dll"/>
</Component>
</ComponentGroup>
<ComponentGroup Directory="PlatformsDir" Id="ProductQtPluginComponents">
<Component Guid="684EFA14-856B-440E-A5E6-E90E04E36B41" Id="QtPlatformPlugin">
<?if $(var.Configuration) = "Debug" ?>
<File Source="$(var.BinDir)\platforms\qwindowsd.dll"/>
<?else ?>
<File Source="$(var.BinDir)\platforms\qwindows.dll"/>
<?endif ?>
</Component>
</ComponentGroup>
<ComponentGroup Directory="OpenSSLDir" Id="OpenSSLComponents">
<Component Guid="92648F77-65A6-4B16-AC59-A1F37BD341B1" Id="OpenSSL">
<?if $(var.Platform) = x64 ?>
<File Id="OpenSSLDll1" Source="$(var.OpenSslDllDir)/libcrypto-3-x64.dll"/>
<File Id="OpenSSLDll2" Source="$(var.OpenSslDllDir)/libssl-3-x64.dll"/>
<?else ?>
<File Id="OpenSSLDll1" Source="$(var.OpenSslDllDir)/libcrypto-3.dll"/>
<File Id="OpenSSLDll2" Source="$(var.OpenSslDllDir)/libssl-3.dll"/>
<?endif ?>
<File Source="$(var.OpenSslExeDir)/openssl.exe"/>
<File Source="$(var.OpenSslExeDir)/openssl.cnf"/>
</Component>
</ComponentGroup>
</Fragment>
</Wix>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,48 @@
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
# SPDX-License-Identifier: MIT
# Maintainer: Deskflow Developers
_basename=@CMAKE_PROJECT_NAME@
pkgname=${_basename}-git
pkgver=@CMAKE_PROJECT_VERSION@
pkgrel=1
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=("$_basename")
depends=(
gcc-libs
glib2
glibc
hicolor-icon-theme
libei
libglvnd
libice
libportal
libsm
libx11
libxext
libxi
libxinerama
libxkbcommon
libxkbcommon-x11
libxkbfile
libxrandr
libxtst
openssl
qt6-base
qt6-svg
qt6-translations
)
options=('!debug')
package() {
# By default, `makepkg` will run from the `src` directory, which would
# only install the binaries, and not the .desktop file, etc. To install
# everything, we need to set DESTDIR.
cd $startdir
DESTDIR=$pkgdir cmake --install .
}

110
deploy/linux/deploy.cmake Normal file
View File

@ -0,0 +1,110 @@
# 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})
# Install our desktop file
install(
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 ${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}/${CMAKE_PROJECT_REV_FQDN}.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo/
)
# Prepare PKGBUILD for Arch Linux
configure_file(
${MY_DIR}/arch/PKGBUILD.in
${CMAKE_BINARY_DIR}/PKGBUILD
@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")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# Get Distro name information
if(EXISTS "/etc/os-release")
FILE(STRINGS "/etc/os-release" RELEASE_FILE_CONTENTS)
else()
message(FATAL_ERROR "Unable to read file /etc/os-release")
endif()
foreach(LINE IN LISTS RELEASE_FILE_CONTENTS)
if( "${LINE}" MATCHES "^ID=")
string(REGEX REPLACE "^ID=" "" DISTRO_NAME ${LINE})
string(REGEX REPLACE "\"" "" DISTRO_NAME ${DISTRO_NAME})
message(DEBUG "Distro Name :${DISTRO_NAME}")
elseif( "${LINE}" MATCHES "^ID_LIKE=")
string(REGEX REPLACE "^ID_LIKE=" "" DISTRO_LIKE "${LINE}")
string(REGEX REPLACE "\"" "" DISTRO_LIKE ${DISTRO_LIKE})
message(DEBUG "Distro Like :${DISTRO_LIKE}")
elseif( "${LINE}" MATCHES "^VERSION_CODENAME=")
string(REGEX REPLACE "^VERSION_CODENAME=" "" DISTRO_CODENAME "${LINE}")
string(REGEX REPLACE "\"" "" DISTRO_CODENAME "${DISTRO_CODENAME}")
message(DEBUG "Distro Codename:${DISTRO_CODENAME}")
elseif( "${LINE}" MATCHES "^VERSION_ID=")
string(REGEX REPLACE "^VERSION_ID=" "" DISTRO_VERSION_ID "${LINE}")
string(REGEX REPLACE "\"" "" DISTRO_VERSION_ID "${DISTRO_VERSION_ID}")
message(DEBUG "Distro VersionID:${DISTRO_VERSION_ID}")
endif()
endforeach()
# Check if Debian-link
string(REGEX MATCH debian|buntu DEBTYPE "${DISTRO_LIKE}")
string(REGEX MATCH debian|deepin|uos DEBNAME "${DISTRO_NAME}")
if((NOT ("${DEBTYPE}" STREQUAL "")) OR (NOT ("${DEBNAME}" STREQUAL "")))
set(CPACK_GENERATOR "DEB")
endif()
# Check if Rpm-like
string(REGEX MATCH suse|fedora|rhel RPMTYPE "${DISTRO_LIKE}")
string(REGEX MATCH fedora|suse|rhel RPMNAME "${DISTRO_NAME}")
if((NOT ("${RPMTYPE}" STREQUAL "")) OR (NOT ("${RPMNAME}" STREQUAL "")))
set(CPACK_GENERATOR "RPM")
endif()
# Disto specific name adjustments
if("${DISTRO_NAME}" STREQUAL "opensuse-tumbleweed")
set(DISTRO_NAME "opensuse")
set(DISTRO_CODENAME "tumbleweed")
elseif("${DISTRO_NAME}" STREQUAL "arch")
# Arch linux is rolling the version id reported is the date of last iso.
set(DISTRO_VERSION_ID "")
endif()
# Determain the code name to be used if any
if(NOT "${DISTRO_VERSION_ID}" STREQUAL "")
set(CN_STRING "${DISTRO_VERSION_ID}-")
endif()
if(NOT "${DISTRO_CODENAME}" STREQUAL "")
set(CN_STRING "${DISTRO_CODENAME}-")
endif()
if("${DISTRO_NAME}" STREQUAL "")
set(DISTRO_NAME "linux")
endif()
set(OS_STRING "${DISTRO_NAME}-${CN_STRING}${BUILD_ARCHITECTURE}")
elseif(${CMAKE_SYSTEM_NAME} MATCHES "|.*BSD")
message(STATUS "BSD packaging not yet supported")
set(OS_STRING ${CMAKE_SYSTEM_NAME}-${BUILD_ARCHITECTURE})
endif()

View File

@ -0,0 +1,6 @@
{
"org.deskflow.deskflow": [
"appstream-external-screenshot-url",
"appstream-screenshots-not-mirrored-in-ostree"
]
}

View File

@ -0,0 +1,41 @@
From 796053d2eebe4532aad6bd3fd80cdf3b197806ec Mon Sep 17 00:00:00 2001
From: Jan Grulich <jgrulich@redhat.com>
Date: Thu, 27 Mar 2025 09:38:10 +0100
Subject: [PATCH] qt6: fix build against Qt 6.9+
QGenericUnixServices was renamed to QDesktopUnixServices in Qt 6.9.
Upstream change: https://codereview.qt-project.org/c/qt/qtbase/+/609639
---
libportal/portal-qt6.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libportal/portal-qt6.cpp b/libportal/portal-qt6.cpp
index d38a4e30..34f0d72a 100644
--- a/libportal/portal-qt6.cpp
+++ b/libportal/portal-qt6.cpp
@@ -31,8 +31,12 @@
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#include <qpa/qplatformintegration.h>
#include <private/qguiapplication_p.h>
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+#include <private/qdesktopunixservices_p.h>
+#else
#include <private/qgenericunixservices_p.h>
#endif
+#endif
static gboolean
_xdp_parent_export_qt (XdpParent *parent,
@@ -45,7 +49,11 @@ _xdp_parent_export_qt (XdpParent *parent,
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+ if (const auto services = dynamic_cast<QDesktopUnixServices*>(QGuiApplicationPrivate::platformIntegration()->services()))
+#else
if (const auto services = dynamic_cast<QGenericUnixServices*>(QGuiApplicationPrivate::platformIntegration()->services()))
+#endif
{
g_autofree char *handle = g_strdup(services->portalWindowIdentifier(w).toUtf8().constData());

View File

@ -1,6 +1,6 @@
app-id: org.deskflow.deskflow
runtime: org.kde.Platform
runtime-version: "6.8"
runtime-version: "6.10"
sdk: org.kde.Sdk
command: deskflow
finish-args:
@ -17,24 +17,11 @@ cleanup:
- /lib/cmake
- /lib/pkgconfig
- /share/pkgconfig
- /share/tomlplusplus
- /share/cmake
- /share/doc
- /share/gir-1.0
- /lib/debug
- /lib/girepository-1.0
modules:
- name: python3-attrs
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}"
--prefix=${FLATPAK_DEST} --no-build-isolation attrs
sources:
- type: file
url: https://files.pythonhosted.org/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl
sha256: 99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1
cleanup:
- '*'
- name: python3-Jinja2
buildsystem: simple
build-commands:
@ -42,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
@ -58,8 +49,11 @@ modules:
sources:
- type: git
url: https://gitlab.freedesktop.org/libinput/libei
tag: 1.3.0
commit: 997b7c0f37faea4f8bae59613c8f27370925d5b0
tag: 1.5.0
commit: 19b64535408aa47abbc8151bc2c925afd6583851
x-checker-data:
type: git
tag-pattern: ^([\\d.]+)$
- name: libportal
buildsystem: meson
config-opts:
@ -71,38 +65,20 @@ modules:
sources:
- type: git
url: https://github.com/flatpak/libportal.git
tag: 0.8.1
commit: 26c15008cbe579f57f89468384f8efc033f25f6f
- name: puixml
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/zeux/pugixml
tag: v1.14
commit: db78afc2b7d8f043b4bc6b185635d949ea2ed2a8
- name: cli11
buildsystem: cmake-ninja
config-opts:
- -DCLI11_BUILD_TESTS=OFF
sources:
- type: git
url: https://github.com/CLIUtils/CLI11
tag: v2.4.2
commit: 6c7b07a878ad834957b98d0f9ce1dbe0cb204fc9
- name: tomlplusplus
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/marzer/tomlplusplus
tag: v3.4.0
commit: 30172438cee64926dc41fdd9c11fb3ba5b2ba9de
tag: 0.9.1
commit: 8f5dc8d192f6e31dafe69e35219e3b707bde71ce
- type: patch
path: libportal-qt69.patch
- 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

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2024 Deskflow Developers
# SPDX-License-Identifier: MIT
[Desktop Entry]
Type=Application
Version=1.0
Name=Deskflow
Comment=Mouse and keyboard sharing utility
Exec=deskflow
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

@ -0,0 +1,537 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.deskflow.deskflow</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0-only</project_license>
<name>Deskflow</name>
<developer id="org.deskflow">
<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>
<url type="bugtracker">https://github.com/deskflow/deskflow/issues</url>
<url type="faq">https://github.com/deskflow/deskflow/wiki/Project-FAQ</url>
<url type="help">https://github.com/deskflow/deskflow/wiki#user-guides</url>
<url type="vcs-browser">https://github.com/deskflow/deskflow</url>
<url type="contribute">https://github.com/deskflow/deskflow/wiki/Contributing</url>
<screenshots>
<screenshot type="default">
<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-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>
<categories>
<category>Utility</category>
</categories>
<keywords>
<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>
<branding>
<color type="primary" scheme_preference="light">#dddddd</color>
<color type="primary" scheme_preference="dark">#555555</color>
</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>
<ul>
<li>Fix: Core app not running when app starts minimized.</li>
<li>Fix: Several items in the server configuration dialog being enabled at the wrong time.</li>
<li>Fix: Use the correct license in our appstream data (GPL2.0 only).</li>
<li>Fix: Apps saved size could grow over time on desktops using client side decorations.</li>
<li>Fix: Use the system monospace font in the log area, instead of forcing one that may not be on the system.</li>
<li>Fix: Issue with incorrect borders being set for libEI, causing issues on edges without neighbors.</li>
<li>Feat: Add Restart action for the core process.</li>
<li>Feat: Remove defunct --no-xinitthreads option.</li>
<li>Feat: Make 2048 the minimum encryption key size.</li>
<li>Feat: Provide additional connection information in the status area.</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.23.0</url>
</release>
<release version="1.22.0" date="2025-05-28" urgency="high">
<description>
<p>This stable release fixes a issues found in the previous version. For the full changelog see the release page.</p>
<ul>
<li>Remove: Broken drag and drop file transfer support</li>
<li>Remove: DESKFLOW_RESET_ALL and --no-reset. reset settings is now done by passing the --reset option instead</li>
<li>Continue migration to Qt by using more Qt classes in more places</li>
<li>Retire SHA1 generation and use SHA256 always to compare</li>
<li>Add missing accelerators for gui controls</li>
<li>unittests binary is now legacytests</li>
<li>integtests have been remove and replaced with Qt based tests run during build</li>
<li>Fix: Potential XDG-Portal release issue</li>
<li>Fix: Issue where the first start dialog could hang in the background</li>
<li>Fix: Edge cases that could cause incorrect settings causing client / server process to crash</li>
<li>Fix: Default server config file is Deskflow-server.conf</li>
<li>Backport: Event Types from downstream</li>
<li>Backport: Cleaner error handling from downstream</li>
<li>Improve Windows Daemon</li>
<li>Better detection of arm on windows, in build and installer</li>
<li>Chore: Clean up sonar scan code smells</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.22.0</url>
</release>
<release version="1.21.2" date="2025-04-07" urgency="high">
<description>
<p>This stable release fixes a few critical bugs in 1.21.1. For the full changelog see the release page.</p>
<ul>
<li>Fix: Crash with Qt 6.9</li>
<li>Fix: Windows settings in wrong locations</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.21.2</url>
</release>
<release version="1.21.1" date="2025-03-31" urgency="high">
<description>
<p>This stable release fixes a few critical bugs in 1.21.0. For the full changelog see the release page.</p>
<ul>
<li>Fix: Flatpak can't save settings'</li>
<li>Fix: Crash on localfingerprint dialog</li>
<li>Fix: Check for updates settings reading from wrong value</li>
<li>Fix: Windows settings saving blocked for non admin users </li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.21.1</url>
</release>
<release version="1.21.0" date="2025-03-27" urgency="high">
<description>
<p>This stable release removes some dependencies, additionally fixes several bugs. For the full changelog see the release page.</p>
<ul>
<li>Cleanup unused classes</li>
<li>New Settings class</li>
<li>Remove need for pugixml</li>
<li>Remove need for libNotify</li>
<li>Remove need for gio</li>
<li>Remove need for gitkpixbuf</li>
<li>Fix issues with windows installer when msvc is missing</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.21.0</url>
</release>
<release version="1.20.1" date="2025-03-07" urgency="low">
<description>
<p>This stable release introduces a Windows dependency requirement and fixes a macOS bug.</p>
<ul>
<li>Fix: macOS menu bar icon invisible when menu bar is light</li>
<li>Feature: Add Windows installer check for Visual C++ Redistributable</li>
<li>Feature: Prevent Windows binaries running if MSVC runtime too old</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.20.1</url>
</release>
<release version="1.20.0" date="2025-03-03" urgency="high">
<description>
<p>This stable release fixes a few security issues, additionally fixes several bugs and adds a few new features. For the full changelog see the release page.</p>
<ul>
<li>Feature: Peer Id Checking - Fixes CVE-2021-42072 and CVE-2021-42073</li>
<li>Feature: Use Sha256 fingerprints</li>
<li>Feature: Gui cleanup and improvements</li>
<li>Remove: Inverse connection option</li>
<li>Fix: Screen Corner option</li>
<li>Fix: Show new client dialog</li>
<li>Win32: Daemon Improvements</li>
<li>Win32: Fix clear settings</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.20.0</url>
</release>
<release version="1.19.0" date="2025-01-31" urgency="high">
<description>
<p>This stable release fixes several bugs and adds a few new features. For the full changelog see the release page.</p>
<ul>
<li>Feature: New Fallback icon theme</li>
<li>Feature: Allow only one gui instance</li>
<li>Fix: Modifier remapping on macOS</li>
<li>Fix: Show Screen icons again in the server settings</li>
<li>Fix: Show the TLS Label</li>
<li>Fix: Mainwindow restore </li>
<li>Fix: Hotkey with more then one action now work again</li>
<li>Better Detection of evdev on BSD</li>
<li>Better language detection on X11</li>
<li>Better deal with screen changes on wayland</li>
<li>Remove Legacy tray icons</li>
<li>Lots of Internal Cleanup</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.19.0</url>
</release>
<release version="1.18.0" date="2024-12-26" urgency="high">
<description>
<p>This stable release fixes a few security issues, additionally fixes several bugs and adds a few new features. For the full changelog see the release page.</p>
<ul>
<li>Fix CVE-2021-42075: Close connection on app-level handshake failure</li>
<li>Fix CVE-2021-42074: Handle SSL race conditions and segmentation fault</li>
<li>Fix CVE-2021-42076: Enforce maximum message length </li>
<li>Add a visiblity toggle for the log</li>
<li>Fix deskflow will now hide or show when the tray icon is clicked</li>
<li>Fix how Utf-16 surrogates are handled</li>
<li>Avoid encoding empty data to the clipboard on Windows</li>
<li>Create new Tray Icons for windows</li>
<li>Always show the tray menu entry for the restore action on macOS</li>
<li>Correctly restore window when hidden with command+H on macOS</li>
<li>Update the windows clipboard format listener to monitor the clipboard</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.18.0</url>
</release>
<release version="1.17.2" date="2024-11-20" urgency="medium">
<description>
<p>This stable Release contains alot of internal refactoring.</p>
<ul>
<li>docs: Update readme to use latest for the stable link and continuous</li>
<li>chore: rm unused res/doxygen.cfg.in</li>
<li>chore: rm unused res/License.tex</li>
<li>chore: rm unused res/License.rtf</li>
<li>refactor: mv res/gui/win/app.rc => src/gui/src/app.rc</li>
<li>refactor: mv res/app.ico src/gui/src/app.ico</li>
<li>refactor: mv src/lib/gui/TrayIcon => src/gui/src/TrayIcon</li>
<li>feat: use platform native styles when possible</li>
<li>refactor: use theme icon for document open fallback to the folder icon</li>
<li>refactor mv: res/gui => src/gui/res</li>
<li>chore: alphabetize app.qrc resource file</li>
<li>chore rm: unused app.svg</li>
<li>refactor: mv res/app.png and res/app.svg => deploy</li>
<li>refactor: mv res/dist/linux/app.desktop.in => deploy/org.deskflow.desktop</li>
<li>refactor: mv res/dist/arch => deploy/dist/arch</li>
<li>chore: rm unneeded res/dist/flatpak/flatpak-desktop.patch</li>
<li>refactor: mv res/dist/flatpak => deploy/res/flatpak</li>
<li>refactor: mv res/dist/mac => deploy/dist/mac</li>
<li>refactor: mv res/dist/wix => deploy/dist/wix</li>
<li>build: add metainfo</li>
<li>ci: rename ci.yml to => continuous-integration.yml</li>
<li>Rename CI badge to match new .yml filename</li>
<li>chore: update the deskflow shipped icon to have proper padding</li>
<li>chore: adjust branding light / dark colors to dddddd / 555555</li>
<li>fix: SettingsDialog ui generating nonsence alignment tags when edited</li>
<li>feat: SettingsDialog, Allow user to toggle the check for updates settings</li>
<li>fix: MainWindow not saving initial update flag</li>
<li>build: rm DESKFLOW_APP_ID define</li>
<li>build: rm DESKFLOW_DOMAIN define</li>
<li>build: rm DESKFLOW_APP_NAME define</li>
<li>build: rm DESKFLOW_AUTHOR_NAME define</li>
<li>build: rm DESKFLOW_MAINTAINER define</li>
<li>build: rm DESKFLOW_WEBSITE_URL define</li>
<li>build: rm DESKFLOW_VERSION_URL define</li>
<li>build: rm DESKFLOW_HELP_TEXT define</li>
<li>build: rm DESKFLOW_RES_DIR define</li>
<li>build: rm DESKFLOW_MAC_BUNDLE_CODE</li>
<li>build: rm GUI_BINARY_NAME define</li>
<li>build: rm SERVER_BINARY_NAME define</li>
<li>build:rm CLIENT_BINARY_NAME define</li>
<li>build: rm CORE_BINARY_NAME define</li>
<li>build: rm DAEMON_BINARY_NAME</li>
<li>build: remove DESKFLOW_SHOW_DEV_THANKS define</li>
<li>fix: single typo in README.md</li>
<li>feat: fix flatpak recipe</li>
<li>ci: build flatpaks</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.2</url>
</release>
<release version="1.17.1" date="2024-11-07" urgency="high">
<description>
<p>This stable release has a very long changelog some notable ones are.</p>
<ul>
<li>Remove word 'beta' from Wayland message</li>
<li>docs: Update `README.md` with Matrix link</li>
<li>Make `README.md` more relevant to current repo state</li>
<li>Use #pragma once for headers</li>
<li>Remove Python `.venv` dir caching to reduce complexity</li>
<li>Add discussion value to project values in README.md</li>
<li>Use modern Qt connections in GUI</li>
<li>chore: rm unused string_utils file</li>
<li>build: findSSL via cmake</li>
<li>fix: Set correct QGuiApplication::desktopFileName</li>
<li>feat: Use native style on KDE Plasma</li>
<li>build: Don't force CMAKE_INSTALL_PREFIX</li>
<li>CI: Requires Lint to pass before running other jobs. Allow CI to be skipped for non code changes</li>
<li>Move res/config.h.in -> src/lib/config.h.in</li>
<li>build: Drop warnings_as_errors</li>
<li>chore: cmake user files to gitignore</li>
<li>chore: add basic .gitattributes</li>
<li>Use high res icons and remove unused</li>
<li>Coverage for `AboutDialog.cpp`</li>
<li>CI cleanup and consolidation</li>
<li>Remove dead `test-dist-upload.yml` file</li>
<li>fix: align --display explanation in help message</li>
<li>Use version from Git tags instead of `VERSION` file</li>
<li>Add leading edge philosophy to README.md</li>
<li>Fixed minor typos in the bug report template</li>
<li>Change TLS dir to same as Qt config</li>
<li>Restore `pull_request` trigger for `codeql-analysis.yml`</li>
<li>Fixed error count logic for test summary</li>
<li>Solve QCheckBox 6.7+ warning and exclude GUI from coverage</li>
<li>build: set project description</li>
<li>fix: Check for errors before reading version string</li>
<li>ci: clearer and cleaner steps</li>
<li>Arch package fixup</li>
<li>Force LF in gitattributes</li>
<li>docs: Add other build type to bug report template</li>
<li>Fixed code style in `ci.yml` workflow</li>
<li>Remove `cmake-format` linter (more harm than good)</li>
<li>Ignore paths for CodeQL Analysis</li>
<li>Always run PR comments job</li>
<li>docs: Add .editorconfig file</li>
<li>Remove Wayland experimental pop</li>
<li>build: linux packages with proper names using cpack</li>
<li>ci: vcpkg cache working</li>
<li>fix: Use `OPENSSL_EXE_DIR` instead of `OPENSSL_ROOT_DIR` on Windows</li>
<li>build: Add `gtest-args` for VS Code users</li>
<li>chore: Replace assert with warning for screen boundary issue</li>
<li>chore: resolve cmake cap nits</li>
<li>fix: Let users select version number and build in About Dialog</li>
<li>Adjust Clang-format linter rules</li>
<li>chore: Update feature request template</li>
<li>build: update required ssl to 3.0+</li>
<li>ci: Use `cmake` instead of `make` directly for Arch package</li>
<li>build: Require cmake 3.24</li>
<li>ci: use vcpkg action on ci to cache</li>
<li>ci: Remove CMake presets</li>
<li>build: get CLI11 via file download if not on system</li>
<li>ci: remove unused cache step</li>
<li>build: arch package won't install /bin</li>
<li>build: use File to dl toml++ if not on system</li>
<li>ci: Catch std::exception on toml::parse_file</li>
<li>Optional FreeBSD integtests and reduce CMake arg dupe</li>
<li>fix: server config dialog show event</li>
<li>docs: Checkbox for continuous build on bug template</li>
<li>build: use vcpkg for all depends, vcpkg action on ci to cache</li>
<li>Remove `.ui` files from being the base class</li>
<li>Protocol interoperability for Input Leap (Barrier) and Synergy</li>
<li>build: arch package requires tomlplusplus and cli11</li>
<li>build: Use Fetch Content for Gtest</li>
<li>fix:#7760 use a proper fedora package name</li>
<li>Static cast screen column count for scan alert 559</li>
<li>build: remove stale meson parts for wintoast</li>
<li>ci: Normalize CI step names, descriptions, etc</li>
<li>ci: New macOS CI with Qt action</li>
<li>Drop `.ui` file for setup wizard</li>
<li>Clazy nits</li>
<li>ci: Bump containers for analyze workflows</li>
<li>ci: use fancy checkout action</li>
<li>Fix the windows installer</li>
<li>build: Require libei and libportal on linux</li>
<li>Unify Jobs into one matrix</li>
<li>docs: Update Readme</li>
<li>ci: remove unused libportal check from Librarires.cmake</li>
<li>docs: Remove confusing value line in readme</li>
<li>Simplify build by using Docker containers directly</li>
<li>docs: Remote build containers badge</li>
<li>Elaborate on settings dialog help (what's this)</li>
<li>Mosty glob free</li>
<li>build: update package names for linux to be more unified</li>
<li>chore: add link to wayland discussion</li>
<li>docs: readme add mac os xattr note</li>
<li>Update README.md to restore sponsor link</li>
<li>docs: Fixed sponsor link in README</li>
<li>User docs</li>
<li>chore: settingsDialog rm unused CoreTool include</li>
<li>Do not build deskflow legacy</li>
<li>build: add deskflow devs to binaries copyright</li>
<li>doc: correct target for documents</li>
<li>docs: Improve error messages around Doxygen</li>
<li>fix: crash on --help arg</li>
<li>docs: contributors on readme</li>
<li>Clean up scripts directory</li>
<li>No UI about dialog</li>
<li>chore: add homebrew tap info to readme</li>
<li>chore: Replace screen leave/enter asserts with warnings</li>
<li>CI: added updated winget package submission</li>
<li>ci: Use GITHUB_TOKEN in place of PAT</li>
<li>ci: use pre-release for continuous to stop it from grabbing latest tag</li>
<li>ci: git-version-action: Always report described version</li>
<li>ci: adjust pacakge script to use the names we would like when in cpack</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.1</url>
</release>
<release version="1.17.0" date="2024-10-02" urgency="low">
<description>
<p>This is the first Deskflow release.</p>
<ul>
<li>Use Deskflow Name</li>
<li>fix: windows build typos</li>
<li>Fix broken CI caused by renaming project to Deskflow</li>
<li>fix: protocol compatibility with Synergy</li>
<li>Remove Google Drive upload and always upload to GitHub</li>
<li>fix: stuck keys on leave</li>
<li>ci: always upgrade packages on arch</li>
<li>ci: option to skip changelog lint in PR</li>
<li>docs: fixed link to config.yaml in README.md</li>
<li>docs: add sponsor badge and blurb to readme</li>
<li>ci: lint and add comment to PR on fail</li>
<li>docs: add build type to bug report form</li>
<li>docs: add extra badges and fix sponsor link</li>
<li>build: default to system tomlplusplus and CLI11</li>
<li>ci: give write permission for PR comments</li>
<li>build: fixed option name for SYSTEM_TOMLPLUSPLUS</li>
<li>build: script to create Python virtual env</li>
<li>build: set BUILD_DATE instead of using __DATE__</li>
<li>ci: delete ChangeLog because it's redundant</li>
<li>feat: use new Deskflow graphics</li>
<li>fix: various typos found by unit193</li>
<li>docs: add new logo to readme and update screenshot</li>
<li>ci: use workflow_run to comment on PRs</li>
<li>feat: change most domains to Deskflow</li>
<li>feat: ask for permission before update check</li>
<li>ci: remove restore-keys for vcpkg and use local bootstrap</li>
<li>ci: add pr comment based on ci result</li>
<li>ci: add link back to workflow summary in pr comment</li>
<li>ci: use github.event.workflow_run.id for CI summary comment</li>
<li>ci: check for summaries dir before building message</li>
<li>ci: handle files with same name in ci comment workflow</li>
<li>ci: fixed syntax error in ci comment workflow</li>
<li>ci: use braces block for formatting in ci comment</li>
<li>ci: use job summary instead of pr comment</li>
<li>ci: lookup pr number by head sha for ci comment</li>
<li>fix: Update onMouseMoveSecondary to allow offset adjustments</li>
<li>ci: lock qt version to 6.7.2 on win/mac</li>
<li>docs: Fixed broken URL in README.md</li>
<li>fix: Use library config for Windows OpenSSL</li>
<li>Relocate commercial code downstream</li>
<li>build: Bump min libei and libportal versions</li>
<li>Use sonarsource/sonarcloud-github-c-cpp</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.0</url>
</release>
</releases>
</component>

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

23
deploy/mac/deploy.cmake Normal file
View File

@ -0,0 +1,23 @@
# 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(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()

BIN
deploy/mac/dmg-volume.icns Normal file

Binary file not shown.

View File

@ -0,0 +1,48 @@
-- SPDX-FileCopyrightText: 2020 Chris Rizzitello <sithlord48@gmail.com>
-- SPDX-License-Identifier: MIT
on run argv
set image_name to item 1 of argv
tell application "Finder"
tell disk image_name
-- wait for the image to finish mounting
set open_attempts to 0
repeat while open_attempts < 5
try
open
delay 5
set open_attempts to 5
close
on error errStr number errorNumber
set open_attempts to open_attempts + 1
delay 10
end try
end repeat
-- open the image the first time and save a DS_Store with just
-- background and icon setup
open
set current view of container window to icon view
set theViewOptions to the icon view options of container window
set background picture of theViewOptions to file ".background:background.tiff"
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 100
set text size of theViewOptions to 16
close
open
tell container window
set sidebar width to 0
set statusbar visible to false
set toolbar visible to false
set pathbar visible to false
set the bounds to { 200, 120, 800, 520 }
set position of item "Deskflow.app" to { 144, 190 }
set position of item "Applications" to { 455, 190 }
end tell
close
end tell
end tell
end run

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Deskflow
Comment=Mouse and keyboard sharing utility
Exec=deskflow
Icon=org.deskflow.deskflow
Terminal=false
Categories=Utility;
Keywords=keyboard;mouse;sharing;network;share;

View File

@ -1,260 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.deskflow.deskflow</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Deskflow</name>
<developer_name>Deskflow Developers</developer_name>
<summary>Software Keyboard and mouse sharing</summary>
<description>
<p>
Use your keyboard and mouse to control other machines on the network or be controle
</p>
</description>
<launchable type="desktop-id">org.deskflow.deskflow.desktop</launchable>
<url type="homepage">https://deskflow.org</url>
<url type="bugtracker">https://github.com/deskflow/deskflow/issues</url>
<screenshots>
<screenshot type="default">
<image>https://github.com/user-attachments/assets/883660dc-f3f5-4b69-8821-a079a58d3882</image>
</screenshot>
</screenshots>
<provides> <id>org.deskflow.deskflow.desktop</id> </provides>
<categories>
<category>Utility</category>
</categories>
<keywords>
<keyword translate="no">Input</keyword>
<keyword translate="no">Sharing</keyword>
<keyword translate="no">KVM</keyword>
<keyword translate="no">Synergy</keyword>
</keywords>
<branding>
<color type="primary" scheme_preference="light">#dddddd</color>
<color type="primary" scheme_preference="dark">#555555</color>
</branding>
<content_rating type="oars-1.0" />
<releases>
<release version="1.17.2" date="2024-11-20" urgency="medium">
<description>
<p>This stable Release contains alot of internal refactoring.</p>
<ul>
<li>docs: Update readme to use latest for the stable link and continuous</li>
<li>chore: rm unused res/doxygen.cfg.in</li>
<li>chore: rm unused res/License.tex</li>
<li>chore: rm unused res/License.rtf</li>
<li>refactor: mv res/gui/win/app.rc => src/gui/src/app.rc</li>
<li>refactor: mv res/app.ico src/gui/src/app.ico</li>
<li>refactor: mv src/lib/gui/TrayIcon => src/gui/src/TrayIcon</li>
<li>feat: use platform native styles when possible</li>
<li>refactor: use theme icon for document open fallback to the folder icon</li>
<li>refactor mv: res/gui => src/gui/res</li>
<li>chore: alphabetize app.qrc resource file</li>
<li>chore rm: unused app.svg</li>
<li>refactor: mv res/app.png and res/app.svg => deploy</li>
<li>refactor: mv res/dist/linux/app.desktop.in => deploy/org.deskflow.desktop</li>
<li>refactor: mv res/dist/arch => deploy/dist/arch</li>
<li>chore: rm unneeded res/dist/flatpak/flatpak-desktop.patch</li>
<li>refactor: mv res/dist/flatpak => deploy/res/flatpak</li>
<li>refactor: mv res/dist/mac => deploy/dist/mac</li>
<li>refactor: mv res/dist/wix => deploy/dist/wix</li>
<li>build: add metainfo</li>
<li>ci: rename ci.yml to => continuous-integration.yml</li>
<li>Rename CI badge to match new .yml filename</li>
<li>chore: update the deskflow shipped icon to have proper padding</li>
<li>chore: adjust branding light / dark colors to dddddd / 555555</li>
<li>fix: SettingsDialog ui generating nonsence alignment tags when edited</li>
<li>feat: SettingsDialog, Allow user to toggle the check for updates settings</li>
<li>fix: MainWindow not saving initial update flag</li>
<li>build: rm DESKFLOW_APP_ID define</li>
<li>build: rm DESKFLOW_DOMAIN define</li>
<li>build: rm DESKFLOW_APP_NAME define</li>
<li>build: rm DESKFLOW_AUTHOR_NAME define</li>
<li>build: rm DESKFLOW_MAINTAINER define</li>
<li>build: rm DESKFLOW_WEBSITE_URL define</li>
<li>build: rm DESKFLOW_VERSION_URL define</li>
<li>build: rm DESKFLOW_HELP_TEXT define</li>
<li>build: rm DESKFLOW_RES_DIR define</li>
<li>build: rm DESKFLOW_MAC_BUNDLE_CODE</li>
<li>build: rm GUI_BINARY_NAME define</li>
<li>build: rm SERVER_BINARY_NAME define</li>
<li>build:rm CLIENT_BINARY_NAME define</li>
<li>build: rm CORE_BINARY_NAME define</li>
<li>build: rm DAEMON_BINARY_NAME</li>
<li>build: remove DESKFLOW_SHOW_DEV_THANKS define</li>
<li>fix: single typo in README.md</li>
<li>feat: fix flatpak recipe</li>
<li>ci: build flatpaks</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.2</url>
</release>
<release version="1.17.1" date="2024-11-7" urgency="high">
<description>
<p>This stable Release Has a very long chagelog some notable ones are.</p>
<ul>
<li>Remove word 'beta' from Wayland message</li>
<li>docs: Update `README.md` with Matrix link</li>
<li>Make `README.md` more relevant to current repo state</li>
<li>Use #pragma once for headers</li>
<li>Remove Python `.venv` dir caching to reduce complexity</li>
<li>Add discussion value to project values in README.md</li>
<li>Use modern Qt connections in GUI</li>
<li>chore: rm unused string_utils file</li>
<li>build: findSSL via cmake</li>
<li>fix: Set correct QGuiApplication::desktopFileName</li>
<li>feat: Use native style on KDE Plasma</li>
<li>build: Don't force CMAKE_INSTALL_PREFIX</li>
<li>CI: Requires Lint to pass before running other jobs. Allow CI to be skipped for non code changes</li>
<li>Move res/config.h.in -> src/lib/config.h.in</li>
<li>build: Drop warnings_as_errors</li>
<li>chore: cmake user files to gitignore</li>
<li>chore: add basic .gitattributes</li>
<li>Use high res icons and remove unused</li>
<li>Coverage for `AboutDialog.cpp`</li>
<li>CI cleanup and consolidation</li>
<li>Remove dead `test-dist-upload.yml` file</li>
<li>fix: align --display explanation in help message</li>
<li>Use version from Git tags instead of `VERSION` file</li>
<li>Add leading edge philosophy to README.md</li>
<li>Fixed minor typos in the bug report template</li>
<li>Change TLS dir to same as Qt config</li>
<li>Restore `pull_request` trigger for `codeql-analysis.yml`</li>
<li>Fixed error count logic for test summary</li>
<li>Solve QCheckBox 6.7+ warning and exclude GUI from coverage</li>
<li>build: set project description</li>
<li>fix: Check for errors before reading version string</li>
<li>ci: clearer and cleaner steps</li>
<li>Arch package fixup</li>
<li>Force LF in gitattributes</li>
<li>docs: Add other build type to bug report template</li>
<li>Fixed code style in `ci.yml` workflow</li>
<li>Remove `cmake-format` linter (more harm than good)</li>
<li>Ignore paths for CodeQL Analysis</li>
<li>Always run PR comments job</li>
<li>docs: Add .editorconfig file</li>
<li>Remove Wayland experimental pop</li>
<li>build: linux packages with proper names using cpack</li>
<li>ci: vcpkg cache working</li>
<li>fix: Use `OPENSSL_EXE_DIR` instead of `OPENSSL_ROOT_DIR` on Windows</li>
<li>build: Add `gtest-args` for VS Code users</li>
<li>chore: Replace assert with warning for screen boundary issue</li>
<li>chore: resolve cmake cap nits</li>
<li>fix: Let users select version number and build in About Dialog</li>
<li>Adjust Clang-format linter rules</li>
<li>chore: Update feature request template</li>
<li>build: update required ssl to 3.0+</li>
<li>ci: Use `cmake` instead of `make` directly for Arch package</li>
<li>build: Require cmake 3.24</li>
<li>ci: use vcpkg action on ci to cache</li>
<li>ci: Remove CMake presets</li>
<li>build: get CLI11 via file download if not on system</li>
<li>ci: remove unused cache step</li>
<li>build: arch package won't install /bin</li>
<li>build: use File to dl toml++ if not on system</li>
<li>ci: Catch std::exception on toml::parse_file</li>
<li>Optional FreeBSD integtests and reduce CMake arg dupe</li>
<li>fix: server config dialog show event</li>
<li>docs: Checkbox for continuous build on bug template</li>
<li>build: use vcpkg for all depends, vcpkg action on ci to cache</li>
<li>Remove `.ui` files from being the base class</li>
<li>Protocol interoperability for Input Leap (Barrier) and Synergy</li>
<li>build: arch package requires tomlplusplus and cli11</li>
<li>build: Use Fetch Content for Gtest</li>
<li>fix:#7760 use a proper fedora package name</li>
<li>Static cast screen column count for scan alert 559</li>
<li>build: remove stale meson parts for wintoast</li>
<li>ci: Normalize CI step names, descriptions, etc</li>
<li>ci: New macOS CI with Qt action</li>
<li>Drop `.ui` file for setup wizard</li>
<li>Clazy nits</li>
<li>ci: Bump containers for analyze workflows</li>
<li>ci: use fancy checkout action</li>
<li>Fix the windows installer</li>
<li>build: Require libei and libportal on linux</li>
<li>Unify Jobs into one matrix</li>
<li>docs: Update Readme</li>
<li>ci: remove unused libportal check from Librarires.cmake</li>
<li>docs: Remove confusing value line in readme</li>
<li>Simplify build by using Docker containers directly</li>
<li>docs: Remote build containers badge</li>
<li>Elaborate on settings dialog help (what's this)</li>
<li>Mosty glob free</li>
<li>build: update package names for linux to be more unified</li>
<li>chore: add link to wayland discussion</li>
<li>docs: readme add mac os xattr note</li>
<li>Update README.md to restore sponsor link</li>
<li>docs: Fixed sponsor link in README</li>
<li>User docs</li>
<li>chore: settingsDialog rm unused CoreTool include</li>
<li>Do not build deskflow legacy</li>
<li>build: add deskflow devs to binaries copyright</li>
<li>doc: correct target for documents</li>
<li>docs: Improve error messages around Doxygen</li>
<li>fix: crash on --help arg</li>
<li>docs: contributors on readme</li>
<li>Clean up scripts directory</li>
<li>No UI about dialog</li>
<li>chore: add homebrew tap info to readme</li>
<li>chore: Replace screen leave/enter asserts with warnings</li>
<li>CI: added updated winget package submission</li>
<li>ci: Use GITHUB_TOKEN in place of PAT</li>
<li>ci: use pre-release for continuous to stop it from grabbing latest tag</li>
<li>ci: git-version-action: Always report described version</li>
<li>ci: adjust pacakge script to use the names we would like when in cpack</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.1</url>
</release>
<release version="1.17.0" date="2024-10-02" urgency="low">
<description>
<p>This is the first Deskflow Release.</p>
<ul>
<li>Use Deskflow Name</li>
<li>fix: windows build typos</li>
<li>Fix broken CI caused by renaming project to Deskflow</li>
<li>fix: protocol compatibility with Synergy</li>
<li>Remove Google Drive upload and always upload to GitHub</li>
<li>fix: stuck keys on leave</li>
<li>ci: always upgrade packages on arch</li>
<li>ci: option to skip changelog lint in PR</li>
<li>docs: fixed link to config.yaml in README.md</li>
<li>docs: add sponsor badge and blurb to readme</li>
<li>ci: lint and add comment to PR on fail</li>
<li>docs: add build type to bug report form</li>
<li>docs: add extra badges and fix sponsor link</li>
<li>build: default to system tomlplusplus and CLI11</li>
<li>ci: give write permission for PR comments</li>
<li>build: fixed option name for SYSTEM_TOMLPLUSPLUS</li>
<li>build: script to create Python virtual env</li>
<li>build: set BUILD_DATE instead of using __DATE__</li>
<li>ci: delete ChangeLog because it's redundant</li>
<li>feat: use new Deskflow graphics</li>
<li>fix: various typos found by unit193</li>
<li>docs: add new logo to readme and update screenshot</li>
<li>ci: use workflow_run to comment on PRs</li>
<li>feat: change most domains to Deskflow</li>
<li>feat: ask for permission before update check</li>
<li>ci: remove restore-keys for vcpkg and use local bootstrap</li>
<li>ci: add pr comment based on ci result</li>
<li>ci: add link back to workflow summary in pr comment</li>
<li>ci: use github.event.workflow_run.id for CI summary comment</li>
<li>ci: check for summaries dir before building message</li>
<li>ci: handle files with same name in ci comment workflow</li>
<li>ci: fixed syntax error in ci comment workflow</li>
<li>ci: use braces block for formatting in ci comment</li>
<li>ci: use job summary instead of pr comment</li>
<li>ci: lookup pr number by head sha for ci comment</li>
<li>fix: Update onMouseMoveSecondary to allow offset adjustments</li>
<li>ci: lock qt version to 6.7.2 on win/mac</li>
<li>docs: Fixed broken URL in README.md</li>
<li>fix: Use library config for Windows OpenSSL</li>
<li>Relocate commercial code downstream</li>
<li>build: Bump min libei and libportal versions</li>
<li>Use sonarsource/sonarcloud-github-c-cpp</li>
</ul>
</description>
<url>https://github.com/deskflow/deskflow/releases/tag/v1.17.0</url>
</release>
</releases>
</component>

View File

@ -1,54 +0,0 @@
/*
Based on example from:
https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource?redirectedfrom=MSDN
*/
#include <windows.h>
#include <verrsrc.h>
#define VER_FILEVERSION @DESKFLOW_VERSION_MS_CSV@
#define VER_FILEVERSION_STR "@DESKFLOW_VERSION_MS@\0"
#define VER_PRODUCTVERSION @DESKFLOW_VERSION_MS_CSV@
#define VER_PRODUCTVERSION_STR "@DESKFLOW_VERSION@\0"
#define VER_COMPANYNAME_STR "Deskflow\0"
#define VER_FILEDESCRIPTION_STR "Deskflow\0"
#define VER_INTERNALNAME_STR "Deskflow\0"
#define VER_LEGALCOPYRIGHT_STR "© 2024 Deskflow Developers\0"
#define VER_LEGALTRADEMARKS1_STR "All Rights Reserved\0"
#define VER_LEGALTRADEMARKS2_STR "\0"
#define VER_ORIGINALFILENAME_STR "\0"
#define VER_PRODUCTNAME_STR "Deskflow\0"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0 // No flags
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", VER_COMPANYNAME_STR
VALUE "FileDescription", VER_FILEDESCRIPTION_STR
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", VER_INTERNALNAME_STR
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
VALUE "ProductName", VER_PRODUCTNAME_STR
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END

View File

@ -0,0 +1,6 @@
#SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
#SPDX-License-Identifier: MIT
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}-portable)
endif()

View File

@ -0,0 +1,72 @@
# 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(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
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)
set(CPACK_PRE_BUILD_SCRIPTS ${CMAKE_CURRENT_BINARY_DIR}/pre-cpack.cmake)
configure_file(${MY_DIR}/cpack-options.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cpack-options.cmake @ONLY)
set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR}/cpack-options.cmake)
set(OS_STRING "win-${BUILD_ARCHITECTURE}")
list(APPEND CPACK_GENERATOR "7Z")
# If Wix4+ is installed make a package
find_program(WIX_APP wix)
if (NOT "${WIX_APP}" STREQUAL "")
set(CPACK_WIX_VERSION 4)
set(CPACK_WIX_ARCHITECTURE ${BUILD_ARCHITECTURE})
list(APPEND CPACK_GENERATOR "WIX")
endif()
set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_PROPER_NAME}")
# Menu Entry
set(CPACK_WIX_PROGRAM_MENU_FOLDER "${CMAKE_PROJECT_PROPER_NAME}")
set(CPACK_PACKAGE_EXECUTABLES "deskflow" "${CMAKE_PROJECT_PROPER_NAME}")
# Default Install Path
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_PROJECT_PROPER_NAME}")
# Wix Specific Values
set(CPACK_WIX_UPGRADE_GUID "027D1C8A-E7A5-4754-BB93-B2D45BFDBDC8")
set(CPACK_WIX_UI_BANNER "${MY_DIR}/wix-banner.png")
set(CPACK_WIX_UI_DIALOG "${MY_DIR}/wix-dialog.png")
# Required Extra Extenstions
list(APPEND CPACK_WIX_EXTENSIONS "WixToolset.Util.wixext" "WixToolset.Firewall.wixext")
# Make sure to also put the xmlns for the ext into the wix block on generated files
list(APPEND CPACK_WIX_CUSTOM_XMLNS "util=http://wixtoolset.org/schemas/v4/wxs/util" "firewall=http://wixtoolset.org/schemas/v4/wxs/firewall")
# The patch has to know the full path of our msm file
configure_file(
${MY_DIR}/wix-patch.xml.in
${CMAKE_CURRENT_BINARY_DIR}/wix-patch.xml @ONLY
)
# This patch set ups filewall rules, the service and msm module
set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_BINARY_DIR}/wix-patch.xml")
# Creates a DLL that can be used by our MSI for custom actions.
configure_file(
${MY_DIR}/wix-custom.h.in
${CMAKE_CURRENT_BINARY_DIR}/wix-custom.h @ONLY
)
add_library(
wix-custom SHARED
${MY_DIR}/wix-custom.cpp
)
target_include_directories(wix-custom PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
set_target_properties(wix-custom PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)
target_link_libraries(wix-custom PRIVATE Msi)

View File

@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
string(REPLACE " " "*" _TEMP_LIST "@CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS@")
set(${PORTABLE_LIBS} "")
foreach(ITEM ${_TEMP_LIST})
string(REPLACE "*" " " _ITEM ${ITEM})
file(COPY ${_ITEM} DESTINATION ${CPACK_TEMPORARY_INSTALL_DIRECTORY})
endforeach()
file(WRITE ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/settings/Deskflow.conf " ")
file(REMOVE ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/deskflow-daemon.exe)
file(WRITE ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/README.txt
" Portable Deskflow: @CMAKE_PROJECT_VERSION@
The portable version must have the settings/Deskflow.conf file to save settings, or it will try to use the system settings location.
The portable version does not include the daemon, so the client will not work at UAC prompts or the login screen.
")
endif()

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,72 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "wix-custom.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// Include after Windows.h
#include <MsiQuery.h>
#include <stdio.h>
#include <string>
namespace {
// Warning: DLL will crash with error code 1603 if we exceed this.
const auto kLogLineMax = 1024;
// Prefixes log messages with the app name so they're easier to find/filter.
const std::string kLogPrefix = std::string(kAppId) + " installer: ";
// Note: Resized to log line max when used.
static std::string s_logMessageBuffer; // NOSONAR - Must be mutable.
} // namespace
// This log output can be viewed by using the DebugView program.
#define MS_LOG_DEBUG(message, ...) \
s_logMessageBuffer.resize(kLogLineMax); \
sprintf(s_logMessageBuffer.data(), message, __VA_ARGS__); \
OutputDebugStringA((kLogPrefix + s_logMessageBuffer + "\n").c_str())
extern "C" __declspec(dllexport) UINT __stdcall CheckVCRedist(MSIHANDLE hInstall)
{
const auto kKeyName = TEXT(kRegKey);
const auto kValueName = TEXT("Minor");
const auto kProperty = "VC_REDIST_VERSION_OK";
MS_LOG_DEBUG("checking for msvc redist v%d.%d", kWindowsRuntimeMajor, kWindowsRuntimeMinor);
HKEY hKey;
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, kKeyName, 0, KEY_READ, &hKey) != ERROR_SUCCESS) {
MS_LOG_DEBUG("msvc redist registry key not found");
return ERROR_FUNCTION_FAILED;
}
MS_LOG_DEBUG("msvc redist registry key found, querying minor version");
DWORD minorVersion = 0;
DWORD size = sizeof(DWORD);
RegQueryValueEx(hKey, kValueName, nullptr, nullptr, (LPBYTE)&minorVersion, &size);
RegCloseKey(hKey);
MS_LOG_DEBUG("msvc redist minor version: %lu", minorVersion);
if (minorVersion < kWindowsRuntimeMinor) {
MS_LOG_DEBUG("msvc redist minor version %lu too low, expected >= %d", minorVersion, kWindowsRuntimeMinor);
// Returning success allows the installer will show a friendly error message.
return ERROR_SUCCESS;
}
MS_LOG_DEBUG("msvc redist version ok, setting: %s", kProperty);
if (MsiSetProperty(hInstall, kProperty, "ok") != ERROR_SUCCESS) {
MS_LOG_DEBUG("failed to set property: %s", kProperty);
return ERROR_FUNCTION_FAILED;
}
MS_LOG_DEBUG("msvc redist version check successful");
return ERROR_SUCCESS;
}

View File

@ -0,0 +1,15 @@
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
const auto kAppId = "@CMAKE_PROJECT_NAME@";
const auto kRegKey = "SOFTWARE\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\@BUILD_ARCHITECTURE@";
// clang-format off
const auto kWindowsRuntimeMajor = @REQUIRED_MSVC_RUNTIME_MAJOR@;
const auto kWindowsRuntimeMinor = @REQUIRED_MSVC_RUNTIME_MINOR@;
// clang-format on

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,78 @@
<CPackWiXPatch>
<CPackWiXFragment Id="CM_CP_deskflow_daemon.exe">
<ServiceInstall
Id="ServiceInstall"
Name="Deskflow"
DisplayName="Deskflow"
Description="Runs the Core process on secure desktops (UAC prompts, login screen, etc)."
ErrorControl="normal"
Start="auto"
Type="ownProcess">
<util:ServiceConfig
ResetPeriodInDays="1"
RestartServiceDelayInSeconds="1"
FirstFailureActionType="restart"
SecondFailureActionType="restart"
ThirdFailureActionType="none"
/>
</ServiceInstall>
<ServiceControl Id="ServiceControl" Name="Deskflow" Remove="uninstall" Start="install" Stop="both"/>
<RemoveFile Id="RmOldLog" On="install" Name="deskflow-daemon.log"/>
</CPackWiXFragment>
<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">
<Property Id="VC_REDIST_INSTALLED">
<RegistrySearch
Id="FindVCRedist"
Root="HKLM"
Key="SOFTWARE\Microsoft\VisualStudio\@REQUIRED_MSVC_RUNTIME_MAJOR@.0\VC\Runtimes\@BUILD_ARCHITECTURE@"
Name="Installed"
Type="raw" />
</Property>
<Binary Id="CustomDLL" SourceFile="@CMAKE_CURRENT_BINARY_DIR@/wix-custom.dll" />
<UI>
<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="RunDeskflow"
Condition= "WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run Deskflow when finished" />
</UI>
<CustomAction
Id="CheckVCRedist"
BinaryRef="CustomDLL"
DllEntry="CheckVCRedist"
Execute="immediate" />
<CustomAction
Id="ShowVCRedistError"
Error="Microsoft Visual C++ Redistributable v@REQUIRED_MSVC_RUNTIME_MAJOR@.@REQUIRED_MSVC_RUNTIME_MINOR@ or later is required. Please download and install the latest version and then restart the installation. See our documentation for instructions." />
<CustomAction
Id="RunDeskflow"
ExeCommand="[INSTALL_ROOT]deskflow.exe"
Directory="INSTALL_ROOT"
Execute="immediate"
Impersonate="yes"
Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom
Action="CheckVCRedist"
Before="InstallInitialize"
Condition="NOT Installed AND VC_REDIST_INSTALLED" />
<Custom
Action="ShowVCRedistError"
Before="InstallInitialize"
Condition="NOT Installed AND (NOT VC_REDIST_INSTALLED OR NOT VC_REDIST_VERSION_OK)" />
</InstallExecuteSequence>
</CPackWiXFragment>
</CPackWiXPatch>

View File

@ -1,31 +1,26 @@
# SPDX-FileCopyrightText: 2019 - 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-FileCopyrightText: (C) 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
find_package(Doxygen QUIET)
option(BUILD_DOCS "Build and install documents" ${DOXYGEN_FOUND})
if (BUILD_DOCS AND DOXYGEN_FOUND)
option(BUILD_USER_DOCS "Build and install user documentation" ${DOXYGEN_FOUND})
option(BUILD_DEV_DOCS "Build and install developer documentation" OFF)
if (DOXYGEN_FOUND)
# Generic Doxygen options
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_EXTRACT_STATIC YES)
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
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")
# Files used to make our documents
# User facing documents will not include doxy comments in source code
doxygen_add_docs(user-docs ${CMAKE_SOURCE_DIR}/doc COMMENT "Generating user documentation" ALL)
# HACK Only these will show in your IDE
target_sources(user-docs PRIVATE
mainpage.md
configuration.md
)
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT deskflow_docs)
if (BUILD_USER_DOCS)
add_subdirectory(user)
endif()
if (BUILD_DEV_DOCS)
add_subdirectory(dev)
endif()
else()
message(STATUS "Doxygen not found, skipping docs build")
endif()

View File

@ -1,168 +0,0 @@
# 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
# Reset all settings and delete all data on startup
# DESKFLOW_RESET_ALL=true
```

BIN
doc/deskflow-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

22
doc/dev/CMakeLists.txt Normal file
View File

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
set(DOXYGEN_EXCLUDE_PATTERNS "*unittests/*")
set(DOXYGEN_DOT_GRAPH_MAX_NODES 100)
# Files used to make our documents
doxygen_add_docs(dev-docs
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src
COMMENT "Generating developer documentation" ALL)
# HACK Only these will show in your IDE
target_sources(dev-docs PRIVATE
mainpage.md
contributing.md
build.md
protocol_reference.md
)
# missing install target is intended generate a local copy

110
doc/dev/build.md Normal file
View File

@ -0,0 +1,110 @@
# Building Deskflow
To build Deskflow you will a minimum of:
- [cmake] 3.24+
- [Qt] 6.7.0+
- [openssl] 3.0+
- [libportal] 0.8+ (linux, bsd)
- [libei] 1.3+ (linux, bsd)
- [google_test] ^
> ^ Will be fetched if not found on the host system.
By default a build of Deskflow will:
- 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
## Configuration
Deskflow supports the following CMake options:
| Option | Description | Default Value | Additional requirements |
:-------------------------:|:---------------------------------------:|:------------------:|:-----------------------:|
| 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_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 | |
| CLEAN_TRS | Remove obsolete strings from tr files | OFF | |
| APPLE_CODESIGN_DEV | Apple codesign cert ID for development | Not set | |
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`
3. Add the path of Qt's binary tools to your system path.
- Often: `C:\Qt\<version>\<msvcinfo>\bin`
##### 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>`
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.
[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
[libei]:https://gitlab.freedesktop.org/libinput/libei
[libportal]:https://github.com/flatpak/libportal

13
doc/dev/contributing.md Normal file
View File

@ -0,0 +1,13 @@
# Contributing to Deskflow {#contributing_guide}
Thanks for your interest in contributing to Deskflow! We welcome all kinds of contributions — bug reports, feature suggestions, documentation improvements, and code.
## Read the Full Guidelines
To keep this repository clean and contribution-friendly, we've outlined our full contributing guidelines on the Deskflow Wiki:
👉 [How to Contribute to Deskflow](https://github.com/deskflow/deskflow/wiki/Contributing)
Please take a moment to read through the page before opening an issue or submitting a pull request.
Thanks again for helping make Deskflow better!

55
doc/dev/mainpage.md Normal file
View File

@ -0,0 +1,55 @@
**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.
Deskflow acts as a software KVM (without video) that allows you to:
- Share keyboard and mouse input across multiple computers
- Synchronize clipboard content between machines
- Work seamlessly across different operating systems (Windows, macOS, Linux, BSD)
Deskflow software consists of a **server** (primary computer) that shares its input devices and **clients** (secondary computers) that receive and execute the input commands over a TCP network connection.
### Architecture Overview
Deskflow is built with a modular, cross-platform architecture:
```
┌─────────────────┐ Network Protocol ┌─────────────────┐
│ Server App │◄──────────────────────►│ Client App │
│ │ (Port 24800) │ (Windows) │
│ ┌─────────────┐ │ │ ┌─────────────┐ │
│ │ Screen │ │ │ │ Screen │ │
│ │ Platform │ │ │ │ Platform │ │
│ │ Layer │ │ │ │ Layer │ │
│ └─────────────┘ │ │ └─────────────┘ │
└─────────────────┘ └─────────────────┘
┌───────┐ ┌───────┐
│ Keyb. │ │ Mouse │
└───────┘ └───────┘
┌─────────────────┐
│ Client App │
│ (macOS) │
│ ┌─────────────┐ │
│ │ Screen │ │
│ │ Platform │ │
│ │ Layer │ │
│ └─────────────┘ │
└─────────────────┘
┌─────────────────┐
│ Client App │
│ (Custom) │
│ ┌─────────────┐ │
│ │ Screen │ │
│ │ Platform │ │
│ │ Layer │ │
│ └─────────────┘ │
└─────────────────┘
```
### More info
For more info, see our [Wiki](https://github.com/deskflow/deskflow/wiki).
Check out our [Building guide](build.md) or our general @ref contributing_guide "Contributing section". We also have a detailed [Protocol Reference](protocol_reference.md).

View File

@ -0,0 +1,532 @@
# Protocol Reference {#protocol_reference}
This document provides a comprehensive reference for the Deskflow network protocol. It is the primary source of information for developers implementing Deskflow clients or extending the protocol.
## Protocol Overview
The Deskflow protocol enables keyboard and mouse sharing between multiple computers over a TCP network connection. The protocol uses two distinct sets of terminology to describe the roles of the computers involved:
- **Network Role (Client/Server)**: This describes the connection architecture.
- **Server**: The machine that listens for incoming TCP connections.
- **Client**: The machine that initiates the TCP connection to the server.
- **Input Control Role (Primary/Secondary)**: This describes the flow of keyboard and mouse events.
- **Primary**: The computer whose keyboard and mouse are currently being used to control other computers.
- **Secondary**: A computer that is being controlled by the Primary's keyboard and mouse.
In a typical setup, the Primary computer (the one whose keyboard and mouse are shared) also acts as the Server. However, the protocol is flexible and allows these roles to be separate. For example, a Primary machine can act as a Client to connect to a Secondary machine that is configured as a Server. This can be useful for navigating restrictive network environments like firewalls.
Throughout the documentation, message direction is often described using the Primary/Secondary roles to clarify the input control flow, while Client/Server roles are used when discussing the underlying network connection.
### Key Implementation Files
- **[ProtocolTypes.h](@ref ProtocolTypes.h)** Complete protocol specification
- **[ProtocolUtil.h](@ref ProtocolUtil.h)** Message formatting utilities
- **[ClientInfo](@ref ClientInfo)** Screen information structure
The protocol is designed to be:
- Lightweight and efficient
- Cross-platform compatible
- Extensible for new features
- Backward compatible with older versions
## Protocol Architecture
```
┌─────────────────┐ TCP/IP Network ┌─────────────────┐
│ Primary │◄────────────────────►│ Secondary │
│ (Server) │ Port 24800 │ (Client) │
│ │ │ │
│ • Shares input │ │ • Receives input│
│ • Manages layout│ │ • Reports info │
│ • Coordinates │ │ • Executes cmds │
└─────────────────┘ └─────────────────┘
```
The protocol operates over a standard TCP connection on port 24800. In protocol versions 1.4 and later, TLS encryption is supported for secure communications.
## Protocol State Machine
The client's connection lifecycle is defined by five primary states:
```
┌──────────────────┐
│ START │
└────────┬─────────┘
┌────────┴─────────┐
│ DISCONNECTED │
│ (Initial & │◄───────────────────┐
│ Final State) │ │
└────────┬─────────┘ │
│ │
▼ │
┌──────────────────┐ │
│ CONNECTING │ TCP Failure │
│ (TCP handshake) ├───────────────────►┤
└────────┬─────────┘ │
│ │
TCP Success │ │
│ │
▼ │
┌──────────────────┐ │
│ HANDSHAKE │ Version Mismatch │
│ (Hello/HelloBk) ├───────────────────►┤
└────────┬─────────┘ │
│ │
OK │ │
│ │
▼ │
┌──────────────────┐ │
│ CONNECTED │ CCLOSE (close) │
┌───►│ (Authenticated ├───────────────────►┤
│ │ but inactive) │ │
│ └────────┬─────────┘ │
│ │ │
COUT │ CINN │ │
(Leave) │ (Enter)│ │
│ ▼ │
│ ┌──────────────────┐ │
└────┤ ACTIVE │ CCLOSE (close) │
│ (Receiving all ├───────────────────►┘
┌───►│ input events) │
│ └────────┬─────────┘
│ │
│ ▼
│ ┌──────────────────┐
└────┤ PROCESS EVENT │
└──────────────────┘
```
### State Descriptions
1. **Disconnected**: Initial and final state. No connection to @ref Server.
2. **Connecting**: @ref TCPSocket connection attempt in progress.
- Initiating @ref TCPSocket connection.
- On successful TCP connection, moves to the `Handshake` state.
- If TCP connection fails (timeout, RST packet), returns to `Disconnected`.
3. **Handshake**: Protocol version negotiation and authentication.
- @ref Server sends @ref kMsgHello with protocol version information.
- @ref Client responds with @ref kMsgHelloBack including version and screen name.
- @ref Server validates the client's message.
- Success transitions to `Connected`, failure sends @ref kMsgEIncompatible error.
4. **Connected**: Authenticated but not receiving input events.
- @ref Client must respond to @ref kMsgCKeepAlive messages from the @ref Server.
- Receiving @ref kMsgCEnter message transitions to `Active`.
5. **Active**: Receiving and processing input events from @ref Server.
- Receiving @ref kMsgCLeave message transitions back to `Connected`.
- Receiving @ref kMsgCClose message transitions to `Disconnected`.
## Message Categories
The protocol organizes messages into logical categories:
| Category | Prefix | Purpose | Examples |
|----------|---------|----------|-----------|
| **[Handshake](@ref protocol_handshake)** | None | Connection setup | @ref kMsgHello, @ref kMsgHelloBack |
| **[Commands](@ref protocol_commands)** | `C` | Screen control | @ref kMsgCEnter, @ref kMsgCLeave, @ref kMsgCKeepAlive |
| **[Data](@ref protocol_data)** | `D` | Input events | @ref kMsgDKeyDown, @ref kMsgDMouseMove, @ref kMsgCClipboard, @ref kMsgDClipboard |
| **[Queries](@ref protocol_queries)** | `Q` | Information requests | @ref kMsgQInfo |
| **[Errors](@ref protocol_errors)** | `E` | Error notifications | @ref kMsgEIncompatible, @ref kMsgEBusy |
## Message Reference Table
This table lists all protocol messages in alphabetical order. For a typical sequence of messages, see the [Typical Control Flow](#typical-control-flow) section.
| Message | Constant | Category | Direction | Purpose | Constraints | Protocol Version |
|---|---|---|---|---|---|---|
| [**CALV**](@ref kMsgCKeepAlive) | @ref kMsgCKeepAlive | Command | Both | Keep-alive | [MsgSize](#constraint-protocol-max-message-length), [KeepAlive](#constraint-keep-alive) | 1.3+ |
| [**CBYE**](@ref kMsgCClose) | @ref kMsgCClose | Command | Server→Client | Close connection | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**CCLP**](@ref kMsgCClipboard) | @ref kMsgCClipboard | Command | Both | Clipboard ownership notification | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**CIAK**](@ref kMsgCInfoAck) | @ref kMsgCInfoAck | Command | Server→Client | Acknowledge info message | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**CINN**](@ref kMsgCEnter) | @ref kMsgCEnter | Command | Server→Client | Enter screen | [MsgSize](#constraint-protocol-max-message-length), [ScreenEntrySync](#constraint-screen-entry-sync) | 1.0+ |
| [**CNOP**](@ref kMsgCNoop) | @ref kMsgCNoop | Command | Both | No operation | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**COUT**](@ref kMsgCLeave) | @ref kMsgCLeave | Command | Server→Client | Leave screen | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**CROP**](@ref kMsgCResetOptions) | @ref kMsgCResetOptions | Command | Server→Client | Reset options to defaults | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**CSEC**](@ref kMsgCScreenSaver) | @ref kMsgCScreenSaver | Command | Server→Client | Screen saver control | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DCLP**](@ref kMsgDClipboard) | @ref kMsgDClipboard | Data | Both | Clipboard data | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DDRG**](@ref kMsgDDragInfo) | @ref kMsgDDragInfo | Data | Server→Client | Drag file info | [MsgSize](#constraint-protocol-max-message-length), [ListSize](#constraint-max-list) | 1.5+ |
| [**DFTR**](@ref kMsgDFileTransfer) | @ref kMsgDFileTransfer | Data | Both | File transfer data | [MsgSize](#constraint-protocol-max-message-length) | 1.5+ |
| [**DINF**](@ref kMsgDInfo) | @ref kMsgDInfo | Data | Client→Server | Screen information | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DKDL**](@ref kMsgDKeyDownLang) | @ref kMsgDKeyDownLang | Data | Server→Client | Key down with language | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.8+ |
| [**DKDN**](@ref kMsgDKeyDown) | @ref kMsgDKeyDown | Data | Server→Client | Key down | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.1+ |
| [**DKDN**](@ref kMsgDKeyDown1_0) | @ref kMsgDKeyDown1_0 | Data | Server→Client | Key down (legacy) | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.0 |
| [**DKRP**](@ref kMsgDKeyRepeat) | @ref kMsgDKeyRepeat | Data | Server→Client | Key repeat | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.1+ |
| [**DKRP**](@ref kMsgDKeyRepeat1_0) | @ref kMsgDKeyRepeat1_0 | Data | Server→Client | Key repeat (legacy) | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.0 |
| [**DKUP**](@ref kMsgDKeyUp) | @ref kMsgDKeyUp | Data | Server→Client | Key up | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.1+ |
| [**DKUP**](@ref kMsgDKeyUp1_0) | @ref kMsgDKeyUp1_0 | Data | Server→Client | Key up (legacy) | [MsgSize](#constraint-protocol-max-message-length), [KeyMap](#constraint-keymap) | 1.0 |
| [**DMDN**](@ref kMsgDMouseDown) | @ref kMsgDMouseDown | Data | Server→Client | Mouse down | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DMMV**](@ref kMsgDMouseMove) | @ref kMsgDMouseMove | Data | Server→Client | Mouse move (absolute) | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DMRM**](@ref kMsgDMouseRelMove) | @ref kMsgDMouseRelMove | Data | Server→Client | Mouse move (relative) | [MsgSize](#constraint-protocol-max-message-length) | 1.2+ |
| [**DMUP**](@ref kMsgDMouseUp) | @ref kMsgDMouseUp | Data | Server→Client | Mouse up | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**DMWM**](@ref kMsgDMouseWheel) | @ref kMsgDMouseWheel | Data | Server→Client | Mouse wheel | [MsgSize](#constraint-protocol-max-message-length) | 1.3+ |
| [**DMWM**](@ref kMsgDMouseWheel1_0) | @ref kMsgDMouseWheel1_0 | Data | Server→Client | Mouse wheel (legacy) | [MsgSize](#constraint-protocol-max-message-length) | 1.0-1.2 |
| [**DSOP**](@ref kMsgDSetOptions) | @ref kMsgDSetOptions | Data | Server→Client | Set options | [MsgSize](#constraint-protocol-max-message-length), [ListSize](#constraint-max-list) | 1.0+ |
| [**EBAD**](@ref kMsgEBad) | @ref kMsgEBad | Error | Server→Client | Protocol violation | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**EBSY**](@ref kMsgEBusy) | @ref kMsgEBusy | Error | Server→Client | Server busy | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**EICV**](@ref kMsgEIncompatible) | @ref kMsgEIncompatible | Error | Server→Client | Incompatible version | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**EUNK**](@ref kMsgEUnknown) | @ref kMsgEUnknown | Error | Server→Client | Unknown client | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**Hello**](@ref kMsgHello) | @ref kMsgHello | Handshake | Server→Client | Protocol identification | [HelloSize](#constraint-max-hello), [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**HelloArgs**](@ref kMsgHelloArgs) | @ref kMsgHelloArgs | Handshake | Internal | Hello message construction | [HelloSize](#constraint-max-hello), [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**HelloBack**](@ref kMsgHelloBack) | @ref kMsgHelloBack | Handshake | Client→Server | Client identification | [HelloSize](#constraint-max-hello), [MsgSize](#constraint-protocol-max-message-length), [HandshakeTimeout](#constraint-handshake-timeout) | 1.0+ |
| [**HelloBackArgs**](@ref kMsgHelloBackArgs) | @ref kMsgHelloBackArgs | Handshake | Internal | HelloBack message construction | [HelloSize](#constraint-max-hello), [MsgSize](#constraint-protocol-max-message-length), [HandshakeTimeout](#constraint-handshake-timeout) | 1.0+ |
| [**LSYN**](@ref kMsgDLanguageSynchronisation) | @ref kMsgDLanguageSynchronisation | Data | Server→Client | Language synchronization | [MsgSize](#constraint-protocol-max-message-length) | 1.8+ |
| [**QINF**](@ref kMsgQInfo) | @ref kMsgQInfo | Query | Server→Client | Request screen info | [MsgSize](#constraint-protocol-max-message-length) | 1.0+ |
| [**SECN**](@ref kMsgDSecureInputNotification) | @ref kMsgDSecureInputNotification | Data | Server→Client | Secure input notification | [MsgSize](#constraint-protocol-max-message-length) | 1.7+ |
## Typical Control Flow
<a id="typical-control-flow"></a>
A typical control flow is as follows:
1. **Handshake**: The server and client exchange `Hello` and `HelloBack` messages to agree on a protocol version.
2. **Information Exchange**: The server requests client information with `QINF`, and the client responds with `DINF`.
3. **Options**: The server sends `DSOP` to configure client options.
4. **Keep-Alive**: The server and client periodically exchange `CALV` messages to maintain the connection.
5. **Screen Entry**: The server sends `CINN` to grant control to the client.
6. **Input Events**: The server sends a stream of input event messages (e.g., `DMMV`, `DMDN`, `DKDN`).
7. **Screen Leave**: The server sends `COUT` to revoke control from the client.
8. **Connection Close**: The server sends `CCLOSE` to terminate the connection.
## Protocol Constraints
To ensure security, stability, and compatibility, the protocol enforces strict constraints:
<a id="constraint-max-msg"></a>
### Message and Data Size Limits
**Maximum Message Size:**
<a id="constraint-protocol-max-message-length"></a>**4,194,304 bytes (4 MB)** — @ref PROTOCOL_MAX_MESSAGE_LENGTH
Maximum total size of any single, length-prefixed data packet
Defined in Protocol Limits
**Maximum List Size:**
<a id="constraint-max-list"></a>**1,048,576 elements** — @ref PROTOCOL_MAX_LIST_LENGTH
Maximum number of items in a list/vector within a message
Defined in Protocol Limits
**Maximum Hello Size:**
<a id="constraint-max-hello"></a>**1,024 bytes** — @ref kMaxHelloLength
Maximum size of the initial Connection Handshake message
Defined in Protocol Limits
<a id="constraint-tls"></a>
### TLS Handshake and Security (Protocol v1.4+)
When encryption is enabled, the protocol follows this sequence:
1. Standard TCP connection established
2. TLS handshake performed over TCP socket
3. Protocol handshake begins only after TLS session is established
- **Implementation Details**:
- The client initiates a standard TCP connection, then the (private) SecureSocket::handleTCPConnected method is called, which begins the TLS handshake
- **Certificate Validation**:
- Client implementations **must** validate the server's certificate
- The reference implementation checks that the public key is RSA or DSA and that the key length is at least 2048 bits
### Key Code and Modifier Mapping
A modifier (modifier mask) represents the state of modifier keys (like Shift, Control, Alt, and Command) on a keyboard. It is a binary code (like 0000 0110) where each bit corresponds to a specific modifier key.
**Key-Up/Key-Down Strategy:**
- <a id="constraint-keymap"></a>Client must use the @ref KeyButton (physical key) to track pressed keys, as the @ref KeyID (virtual key) can change based on modifier state
- This strategy is described in the documentation for @ref kMsgDKeyDown
**Modifier Remapping:**
- The server can command clients to remap modifier keys via the @ref kMsgDSetOptions message
- The client processes the @ref kMsgDSetOptions message and updates the modifier translation table accordingly
## Timing and Synchronization
<a id="constraint-keep-alive"></a>
### Keep-Alive Mechanism (Protocol v1.3+)
**Server-Side Behavior:**
- The server sends kMsgCKeepAlive messages every 3.0 seconds (defined by @ref kKeepAliveRate)
- This timer is implemented in @ref ClientProxy1_3::addHeartbeatTimer in the @ref ClientProxy1_3 class
**Client-Side Behavior:**
- Upon receiving a kMsgCKeepAlive message, the client must immediately send a kMsgCKeepAlive message back
- The client maintains a timeout that is reset each time any message is received
- If no message is received for 9.0 seconds (3 × @ref kKeepAliveRate), client must disconnect
- This is handled by the (private) ServerProxy::handleKeepAliveAlarm method
<a id="constraint-screen-entry-sync"></a>
### Synchronization on Screen Entry
- The @ref kMsgCEnter (Enter Screen) message includes the current modifier state
- Client must synchronize their local modifier state with this mask
<a id="constraint-handshake-timeout"></a>
### Handshake Timeout
- Server allows **30 seconds** for handshake completion
- If client fails to send valid @ref kMsgHelloBack within this time, connection is closed
- When a new client connects, the server creates a temporary @ref ClientProxyUnknown to handle the version handshake
- A one-shot timer is started for 30 seconds
- If the client fails to respond in time, the @ref protocol_errors function is triggered, the connection is logged as unresponsive, and the socket is closed
## Version Compatibility
| Version | Release Date | Project | Features | Compatibility |
|---------|----------|---------------|----------|---------------|
| **1.0** | May 2001 | Synergy | Basic keyboard/mouse sharing (@ref kMsgDKeyDown, @ref kMsgDMouseMove) | All versions |
| **1.1** | Apr 2002 | Synergy | Physical key codes (@ref KeyButton) | 1.1+ |
| **1.2** | Jan 2006 | Synergy | Relative mouse movement | 1.2+ |
| **1.3** | May 2006 | Synergy | Keep-alive (@ref kMsgCKeepAlive), horizontal scroll (@ref kMsgDMouseWheel) | 1.3+ |
| **1.4** | Nov 2012 | Synergy | Encryption support (@ref SecureSocket) | 1.4+ |
| **1.5** | Sep 2013 | Synergy | File transfer | 1.5+ |
| **1.6** | Jan 2014 | Synergy | Clipboard streaming | 1.6+ |
| **1.7** | Nov 2021 | Synergy | Secure input notifications | 1.7+ |
| **1.8** | Jun 2025 | Synergy | Language synchronization | 1.8+ |
### Version Migration Guide
When implementing a client that supports multiple protocol versions:
1. **Version Negotiation**: During handshake, client should advertise highest supported version
2. **Feature Detection**: Check server's version in `Hello` message before using version-specific features
3. **Fallback Mechanism**: Be prepared to operate with only features available in the negotiated version
4. **Graceful Degradation**: If server supports a lower version than client's minimum, handle `EIncompatible` error gracefully
## Implementation Examples
### Connection Lifecycle
```cpp
// 1. Connect to server
std::string server_ip = "192.168.1.100";
connect(server_ip, 24800);
// 2. Receive Hello from server
auto hello = receive_message();
std::string server_version, server_name;
parse_hello(hello, &server_version, &server_name);
// 3. Send HelloBack to server
std::string client_version = "1.8";
std::string client_name = "MyClient";
send_hello_back(client_version, client_name);
// 4. Enter main message loop
bool connected = true;
while (connected) {
auto message = receive_message();
handle_message(message);
}
```
### Message Handling
```cpp
void handle_message(const Message& msg) {
switch (msg.type) {
case "CINN": // Enter screen
handle_enter(msg.x, msg.y, msg.sequence, msg.modifiers);
break;
case "DKDN": // Key down
handle_key_down(msg.key_id, msg.modifiers, msg.key_button);
break;
case "DMMV": // Mouse move
handle_mouse_move(msg.x, msg.y);
break;
// ... handle other message types
}
}
```
### Complete Message Exchange Sequence
Below is a typical message exchange sequence for a client connecting to a server:
```
Client Server
| |
| | Server starts listening on port 24800
| |
| TCP SYN |
| ───────────────────────────────────► |
| |
| ◄─────────────────────────────────── |
| TCP SYN+ACK |
| |
| TCP ACK |
| ───────────────────────────────────► |
| | TCP connection established
| |
| ◄─────────────────────────────────── |
| "Deskflow" + version (1.8) | Hello message
| |
| "Deskflow" + version + name |
| ───────────────────────────────────► | HelloBack message
| |
| ◄─────────────────────────────────── |
| "QINF" | Query screen info
| |
| "DINF" + screen dimensions |
| ───────────────────────────────────► | Report screen info
| |
| ◄─────────────────────────────────── |
| "DSOP" + options | Set options
| |
| ◄─────────────────────────────────── |
| "CALV" | Keep-alive
| |
| "CALV" |
| ───────────────────────────────────► | Keep-alive response
| |
| ◄─────────────────────────────────── |
| "CINN" + x + y + seq + mask | Enter screen
| |
| ◄─────────────────────────────────── |
| "DMMV" + x + y | Mouse move
| |
| ◄─────────────────────────────────── |
| "DMDN" + button | Mouse down
| |
| ◄─────────────────────────────────── |
| "DMUP" + button | Mouse up
| |
| ◄─────────────────────────────────── |
| "DKDN" + key + mask + button | Key down
| |
| ◄─────────────────────────────────── |
| "DKUP" + key + mask + button | Key up
| |
| ◄─────────────────────────────────── |
| "COUT" | Leave screen
| |
| ◄─────────────────────────────────── |
| "CCLOSE" | Close connection
| |
| TCP FIN |
| ◄─────────────────────────────────── |
| |
| TCP FIN+ACK |
| ───────────────────────────────────► |
| | Connection closed
```
**Legend:**
- Hello message: @ref kMsgHello
- HelloBack message: @ref kMsgHelloBack
- Query screen info: @ref kMsgQInfo
- Report screen info: @ref kMsgDInfo
- Set options: @ref kMsgDSetOptions
- Keep-alive: @ref kMsgCKeepAlive
- Enter screen: @ref kMsgCEnter
- Mouse move: @ref kMsgDMouseMove
- Mouse down: @ref kMsgDMouseDown
- Mouse up: @ref kMsgDMouseUp
- Key down: @ref kMsgDKeyDown
- Key up: @ref kMsgDKeyUp
- Leave screen: @ref kMsgCLeave
- Close connection: @ref kMsgCClose
## Debugging and Troubleshooting
### Common Issues
1. **Version Mismatch**: Check protocol version negotiation
2. **Message Format**: Validate message structure and parameters
3. **Byte Order**: Ensure network byte order for multi-byte integers
4. **Keep-Alive**: Implement proper keep-alive response
5. **Screen Info**: Send accurate screen dimensions and mouse position
### Debug Tools
- **Wireshark**: Capture and analyze network traffic
- **Protocol Logs**: Enable verbose logging in Deskflow
- **Message Validation**: Check message format against specification
## Platform-Specific Implementations
For platform-specific implementation details, refer to:
- @ref ProtocolTypes.h Complete protocol specification
- @ref ProtocolUtil.h Message formatting utilities
## Implementation Checklist
### Basic Client Implementation
- **Connection Management**
- TCP connection to server port 24800
- Protocol handshake (Hello/HelloBack)
- Version negotiation
- Keep-alive handling
- **Message Processing**
- Message parsing and validation
- Command message handling (Enter/Leave)
- Input event processing (keyboard/mouse)
- Error handling and recovery
- **Screen Management**
- Screen information reporting (DINF)
- Resolution change detection
- Mouse cursor positioning
- **Input Synthesis**
- Keyboard event injection
- Mouse event injection
- Modifier key synchronization
### Advanced Features
- **Clipboard Synchronization**
- Clipboard grab notifications
- Data transfer (@ref kMsgDClipboard - text, images, HTML)
- Streaming for large data (v1.6+)
- **File Transfer** (v1.5+)
- Drag-and-drop initiation
- Chunked file transfer
- Progress tracking
- **Security Features**
- TLS/SSL encryption (v1.4+)
- Secure input notifications (v1.7+)
- Input validation and limits
## Reference Implementation
The @ref ServerProxy class provides a reference implementation demonstrating:
- Basic protocol handling
- Message parsing and generation
- Connection management
- Input event processing
## Contributing
When extending the protocol:
1. **Maintain Compatibility**: New features should be backward compatible
2. **Update Documentation**: Document new messages and parameters
3. **Version Increment**: Bump minor version for new features
4. **Test Thoroughly**: Verify with existing clients and servers
## Support and Resources
- @ref ProtocolTypes.h Complete protocol specification
- @ref ProtocolUtil.h Message formatting utilities
---
*This documentation is generated from the source code and is always up-to-date with the latest protocol implementation.*

20
doc/user/CMakeLists.txt Normal file
View File

@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
# Files used to make our documents
# User facing documents will not include doxy comments in source code
doxygen_add_docs(user-docs ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Generating user documentation" ALL)
# HACK Only these will show in your IDE
target_sources(user-docs PRIVATE
mainpage.md
configuration.md
)
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT deskflow_user_docs
)

813
doc/user/configuration.md Normal file
View File

@ -0,0 +1,813 @@
# 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 |
|:----------------------|:------------------:|:-----------|
| binary | Filename | The filename of the binary to call for client mode. This binary exists in the same path as the GUI |
| invertScrollDirection | `true` or `false` | Invert scroll on this client [default: false] |
| languageSync | `true` or `false` | Sync to server language [default: true] |
| remoteHost | `IP` or `hostname` | The remote host(s) to connect to. Use a comma seperated list when you want to try severial hosts |
| yScrollScale | Double 0.1 - 10.0 | Mouse scrolling will be scaled by this amount on the client [default: 1.0] |
| 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] |
### 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

@ -1,76 +0,0 @@
#!/usr/bin/env python3
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2024 Symless Ltd.
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import lib.env as env
env.ensure_in_venv(__file__)
import os, sys, argparse
import lib.windows as windows
import lib.colors as colors
DEFAULT_SERVICE_ID = "deskflow"
DEFAULT_BIN_NAME = "deskflow-daemon"
DEFAULT_SOURCE_DIR = os.path.join("build", "temp", "bin")
DEFAULT_TARGET_DIR = os.path.join("build", "bin")
IGNORE_PROCESSES = ["deskflow.exe"]
def main():
"""Entry point for the script."""
parser = argparse.ArgumentParser()
parser.add_argument("--reinstall", action="store_true")
parser.add_argument("--stop", action="store_true")
parser.add_argument("--restart", action="store_true")
parser.add_argument("--pause-on-exit", action="store_true")
parser.add_argument("--source-dir", default=DEFAULT_SOURCE_DIR)
parser.add_argument("--target-dir", default=DEFAULT_TARGET_DIR)
parser.add_argument("--bin-name", default=DEFAULT_BIN_NAME)
parser.add_argument("--ignore-processes", nargs="+", default=IGNORE_PROCESSES)
parser.add_argument("--service-id", default=DEFAULT_SERVICE_ID)
parser.add_argument("--verbose", action="store_true")
args = parser.parse_args()
if not env.is_windows():
print(
f"{colors.ERROR_TEXT} This script is only supported on Windows",
file=sys.stderr,
)
sys.exit(1)
service = windows.WindowsService(__file__, args)
try:
if args.reinstall:
service.reinstall()
elif args.stop:
service.stop()
elif args.restart:
service.restart()
else:
print("No action specified", file=sys.stderr)
exit(1)
except Exception as e:
print(f"{colors.ERROR_TEXT} {e}", file=sys.stderr)
if args.pause_on_exit:
input("Press enter to continue...")
if __name__ == "__main__":
main()

View File

@ -1,57 +0,0 @@
#!/usr/bin/env python3
# Deskflow -- mouse and keyboard sharing utility
# Copyright (C) 2024 Symless Ltd.
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import lib.env as env
env.ensure_in_venv(__file__)
import argparse
import lib.file_utils as file_utils
import lib.colors as colors
def main():
"""
Cross platform script to copy files and directories.
This script was mostly created beause the default `copy` command on Windows is too noisy.
If this becomes complex it must be replaced with a library.
"""
parser = argparse.ArgumentParser()
parser.add_argument("source", help="Source pattern to copy from")
parser.add_argument("target", help="Destination pattern to copy to")
parser.add_argument(
"--ignore-errors", action="store_true", help="Ignore errors when copying"
)
parser.add_argument(
"--verbose", action="store_true", help="Print more information to the console"
)
args = parser.parse_args()
options = file_utils.CopyOptions(args.ignore_errors, args.verbose)
try:
file_utils.copy(args.source, args.target, options)
except Exception as e:
if not args.ignore_errors:
raise e
else:
print(f"{colors.ERROR_TEXT} {e}")
if __name__ == "__main__":
main()

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