Compare commits
349 Commits
v1.25.0
...
continuous
| Author | SHA1 | Date | |
|---|---|---|---|
| abaf233a07 | |||
| b251c98a4e | |||
| 23c8496e24 | |||
| 18220a7847 | |||
| a26698c377 | |||
| ac8cc42b7a | |||
| 7126f31d3f | |||
| 44db410dad | |||
| bc7b1082e7 | |||
| ea0bf9d56d | |||
| 6657bdd9b1 | |||
| 11871d343d | |||
| 12cf55d4fc | |||
| e4cf1392c9 | |||
| f2a54f4af0 | |||
| fce1a37e97 | |||
| 90e79dad75 | |||
| 8f8874370e | |||
| 3d67865ffc | |||
| 22a303842e | |||
| c20671f1db | |||
| 844dac439a | |||
| 5e781e6095 | |||
| 2b379b31cd | |||
| 8bb23179c4 | |||
| a8588ab507 | |||
| c80cd56f27 | |||
| 7743d9008d | |||
| 2ecf91e50a | |||
| d8c7367900 | |||
| 8a53b4bc8e | |||
| fc1f3b0142 | |||
| 814d63af28 | |||
| a9bfcf3c81 | |||
| fb8104ff86 | |||
| a0a28e7a94 | |||
| 9188d4b1c1 | |||
| d392547fd8 | |||
| 220bf3178c | |||
| c0692b6fc7 | |||
| 47ed13868f | |||
| 09d4b1a27a | |||
| 4e641adae9 | |||
| 568f5c7fc5 | |||
| a0ac24a42c | |||
| f69bd5601c | |||
| 37728cc7a3 | |||
| b4dbce385c | |||
| 9aeb04b4a6 | |||
| 3db4c60155 | |||
| c37c7e2354 | |||
| 4314159a0b | |||
| 7f4b942817 | |||
| c2342d5124 | |||
| dd55247380 | |||
| fe9407ca33 | |||
| 9376c68739 | |||
| 439541fac1 | |||
| dfae2aaf20 | |||
| 5ea8874583 | |||
| 07de9efe7c | |||
| c791135160 | |||
| 79fdf3a1f6 | |||
| 76353eceb3 | |||
| fb60189078 | |||
| 3c140ed479 | |||
| 5b4dfefcf7 | |||
| 033e5530c3 | |||
| 727d6ff166 | |||
| aa54bd329f | |||
| 692f43d8af | |||
| 263a23fcaa | |||
| bde89d4026 | |||
| b3cecdde7f | |||
| 5534232a1d | |||
| 4c7f546c60 | |||
| 1ca8695659 | |||
| e7363aaf8e | |||
| 6ccef50b7c | |||
| d7fb9bc6d2 | |||
| 41197334f0 | |||
| 74c25fdff6 | |||
| f6348736e8 | |||
| 208556b5aa | |||
| 58963de10f | |||
| 457c31fbaf | |||
| 690d6a67ef | |||
| 094cbadf91 | |||
| 760e3b99b0 | |||
| 042abd699d | |||
| f6b1546f8b | |||
| 2cc19c9f1e | |||
| 329cf07275 | |||
| 99da66dbf7 | |||
| 3c6aa9999b | |||
| 19724e3b69 | |||
| b96619d726 | |||
| c9aaeaee2a | |||
| 1b6def23d8 | |||
| c1172ab8b5 | |||
| 12860646d2 | |||
| 869bd0e2aa | |||
| 71929e8332 | |||
| fe285dc192 | |||
| 67066c339e | |||
| 759ed684e3 | |||
| 611a3300ba | |||
| 64c104a5c2 | |||
| f9857e102a | |||
| 9dc76c1caf | |||
| 68f867b914 | |||
| dd77f79b17 | |||
| e555b63931 | |||
| b33eb0135d | |||
| f9d7c75492 | |||
| a532f655c1 | |||
| 82588a7fc9 | |||
| 1f2d169b0d | |||
| 1c99736c16 | |||
| 050cb649c2 | |||
| 5612e99f1d | |||
| a520e3b2e9 | |||
| 380f65954d | |||
| 0f6ec6c196 | |||
| 857326b274 | |||
| 5e8a6f0bcb | |||
| a960f2ff30 | |||
| 5c3e1f182c | |||
| 84e1e722c0 | |||
| 4200de66ee | |||
| be4e861604 | |||
| 8f5a4106d3 | |||
| 145e9ec926 | |||
| 05c050b81e | |||
| 403c4ad9b9 | |||
| f065979b3f | |||
| 933617d5b1 | |||
| adbaef7dfb | |||
| fdf6a5b8f3 | |||
| 028b71a833 | |||
| b2b2951fb7 | |||
| dbed37e9ba | |||
| 0d3768d838 | |||
| be2546c27b | |||
| 6459eb40df | |||
| 555cb6888f | |||
| a00230829c | |||
| 1df5ab0851 | |||
| 26cb66c1e5 | |||
| 348e26564f | |||
| 1ed394e3ef | |||
| 2cf4fc8d0a | |||
| d6ffcd37d7 | |||
| 046c15736b | |||
| 6980e86d6a | |||
| 973cc76927 | |||
| 86c8c66b6e | |||
| a5b2a4fab9 | |||
| e7eb324f16 | |||
| 1157bff34b | |||
| 3a242e7fc1 | |||
| fe179556ad | |||
| c7a427a94c | |||
| ed114252e2 | |||
| 34f949dc72 | |||
| 1763c82ccc | |||
| 6d8804f08f | |||
| ed7e29589b | |||
| 7641fe7549 | |||
| c63fd21c8e | |||
| 281b3b8d07 | |||
| d6fe8fa2d5 | |||
| ffa887838f | |||
| 49f38c6a8b | |||
| 7a2ceeedf4 | |||
| b25f083433 | |||
| c45d586bbf | |||
| d193af8cc8 | |||
| bb88bd8695 | |||
| 73dbe62e48 | |||
| 1163cb842c | |||
| 15db716f04 | |||
| 9f8f805888 | |||
| 119f23a085 | |||
| aca274e9ee | |||
| 50e7b3aadf | |||
| e5e53c02b5 | |||
| 938db301f0 | |||
| d8dfba6372 | |||
| 7f57d53494 | |||
| 5e61a2b5ce | |||
| 2da14c3da3 | |||
| cab33df72d | |||
| 35ee17f959 | |||
| 7fdb26f2ea | |||
| 3993449594 | |||
| f8ae8c5781 | |||
| 22dad7ac06 | |||
| db10f1c5a4 | |||
| 0c368f402b | |||
| 0e04364d17 | |||
| 3ff06b7d9a | |||
| c7da833f07 | |||
| 09c1bd1582 | |||
| d324dd1a93 | |||
| 889689bd8e | |||
| 844ebf5216 | |||
| ae9ca35448 | |||
| dac9539ad9 | |||
| b8e0415632 | |||
| 3598eb6a47 | |||
| 38722f7308 | |||
| 8d52facc0b | |||
| 61fcad2c14 | |||
| a84e91a3f2 | |||
| c2314ad893 | |||
| 1973005e98 | |||
| 00235ba189 | |||
| 495277c7c9 | |||
| a73057f3a7 | |||
| a0f06d907f | |||
| 3d8cf17d57 | |||
| ca418b3ba5 | |||
| 189053697b | |||
| e674d8b27c | |||
| 7682e17afe | |||
| 163ec18730 | |||
| d27fd22d8f | |||
| cbebaad3b8 | |||
| 16d35349d3 | |||
| f8d9de1f2e | |||
| 53d2c5e399 | |||
| 89ee932db3 | |||
| fb63b70e8d | |||
| 4a62e51d1d | |||
| 2dd0360dec | |||
| 9976caafab | |||
| 530bcad8a6 | |||
| 949913cd6e | |||
| 1855d33e1f | |||
| ccd40c2927 | |||
| 6851046c5a | |||
| 1a9316150d | |||
| b56dd3f387 | |||
| 2cbe2c65e8 | |||
| b8b7799a47 | |||
| 2b8e7fa6b2 | |||
| fdb5405e2c | |||
| 0c440843b0 | |||
| caf77fe342 | |||
| b432cbc145 | |||
| ce97817d45 | |||
| 2b4b6a8470 | |||
| 5c34d0edc5 | |||
| 049f8d718a | |||
| c693d258fd | |||
| b23e9f9b04 | |||
| a5bb310e94 | |||
| 7f3d661e31 | |||
| 6982ce824f | |||
| 0c5b7de554 | |||
| 2a54f57532 | |||
| f0e77c499b | |||
| fa78b957b5 | |||
| 60d5bb8378 | |||
| d8e2537d47 | |||
| 425d427fce | |||
| 8f972bf15e | |||
| c36074df9f | |||
| 5e347d8725 | |||
| ef734a869c | |||
| c942de81e7 | |||
| dfe6c82a5c | |||
| 97b11bf2da | |||
| 023c9509e0 | |||
| b1bac23dcb | |||
| 13750f4175 | |||
| 27579e4fae | |||
| cb4621cad7 | |||
| 2d682d9151 | |||
| 26417a2543 | |||
| 87e6521f65 | |||
| b151666f6b | |||
| d1e2865319 | |||
| 70c54d6cf7 | |||
| 62a73996b9 | |||
| 75a1ab9719 | |||
| 6174043c7f | |||
| bfc65ebf6b | |||
| 53441821e0 | |||
| f012cf2e4b | |||
| c73923947a | |||
| a6daff59f6 | |||
| dc76366a48 | |||
| 9b40bf2f9b | |||
| ea0222b1e6 | |||
| 78234f60c4 | |||
| 7d07222832 | |||
| e5513101a6 | |||
| df78f0757e | |||
| 8e8ab25fd0 | |||
| b4e4277e08 | |||
| 13219ca49c | |||
| 0446db93e6 | |||
| a37d30c6ab | |||
| a78702d68f | |||
| 7831ba293a | |||
| a01a6b0b89 | |||
| c1b5e125b0 | |||
| accb9d9c59 | |||
| 11fa5d636e | |||
| cca6f80cb5 | |||
| 1ebcab60e2 | |||
| 2485916ad1 | |||
| 5287c51957 | |||
| 695dc04c00 | |||
| fd94403a73 | |||
| d35716f574 | |||
| b6bc9202db | |||
| 4cb184989c | |||
| ff02285a6a | |||
| 1a6f81a34b | |||
| 2dfba73cfb | |||
| 52e0daba0f | |||
| 2f5166fafa | |||
| 274fae1e31 | |||
| 7e278b6210 | |||
| 5736566a79 | |||
| bd4db268f1 | |||
| c13421c20a | |||
| 0d5d66b880 | |||
| ad01e296dc | |||
| 4698326717 | |||
| 2087097415 | |||
| 94eaa79768 | |||
| 6f10cd269e | |||
| c4a2dfd300 | |||
| 393c2fa9bc | |||
| 91b9680643 | |||
| 4216acdb3a | |||
| bc857a7cb4 | |||
| 2039106be2 | |||
| 18ed5faf99 | |||
| cdf9a5606d | |||
| 2166de2114 | |||
| 15b6da097c | |||
| 3b2d687bfd | |||
| dc4947af5c | |||
| 1e4d15c4b6 |
7
.github/CODEOWNERS
vendored
@ -1,2 +1,9 @@
|
|||||||
# Apply to all files
|
# Apply to all files
|
||||||
* @nbolton @sithlord48
|
* @nbolton @sithlord48
|
||||||
|
|
||||||
|
# Translators
|
||||||
|
translations/deskflow_es.ts @sithlord48
|
||||||
|
translations/deskflow_it.ts @sithlord48
|
||||||
|
translations/deskflow_ja.ts @ykasap
|
||||||
|
translations/deskflow_ru.ts @levpr1c
|
||||||
|
translations/deskflow_zh_CN.ts @sailordiary
|
||||||
|
|||||||
18
.github/CODE_OF_CONDUCT.md
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Deskflow Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
We want the Deskflow community to be one where everyone can work together. We pledge to keep our community focused on the project and the code around the project.
|
||||||
|
|
||||||
|
## Community Standards
|
||||||
|
|
||||||
|
* Keep interactions respectful and focused on the project
|
||||||
|
* Contributions are expected to follow the [contribution guide](https://github.com/deskflow/deskflow/wiki/Contributing).
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Enforcement will be done at the descression of the Deskflow Moderators.
|
||||||
|
|
||||||
|
1. Warning
|
||||||
|
2. Temporary ban
|
||||||
|
3. Permanent banning
|
||||||
17
README.md → .github/README.md
vendored
@ -25,10 +25,11 @@ TLS encryption is enabled by default. Wayland is supported. Clipboard sharing is
|
|||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> On Windows, you will need to install the
|
> 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).
|
> [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version).
|
||||||
> Download latest: [`vc_redist.x64.exe`](https://aka.ms/vs/17/release/vc_redist.x64.exe) [`vc_redist.arm64.exe`](https://aka.ms/vs/17/release/vc_redist.arm64.exe)
|
> 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]
|
> [!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).
|
> 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.
|
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.
|
||||||
|
|
||||||
@ -50,7 +51,7 @@ To use Deskflow, download one of our [packages](https://github.com/deskflow/desk
|
|||||||
|
|
||||||
## Contribute
|
## Contribute
|
||||||
|
|
||||||
[](https://github.com/deskflow/deskflow/labels/good%20first%20issue) [](https://github.com/deskflow/deskflow/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22%F0%9F%92%8E%20bounty%22) [](https://github.com/deskflow/deskflow/issues?q=label%3A%22%F0%9F%92%B0%20rewarded%22%20sort%3Aupdated-desc)
|
[](https://github.com/deskflow/deskflow/labels/good%20first%20issue)
|
||||||
|
|
||||||
There are many ways to contribute to the Deskflow project.
|
There are many ways to contribute to the Deskflow project.
|
||||||
|
|
||||||
@ -64,9 +65,9 @@ For instructions on building Deskflow, use the wiki page: [Building](https://git
|
|||||||
|
|
||||||
We support all major operating systems, including Windows, macOS, Linux, and Unix-like BSD-derived.
|
We support all major operating systems, including Windows, macOS, Linux, and Unix-like BSD-derived.
|
||||||
|
|
||||||
Windows 10 or higher is required.
|
Windows 10 v1809 or higher is required.
|
||||||
|
|
||||||
macOS 12 or higher is required.
|
macOS 13 or higher is required to use our CI builds for Apple Silicon machines. macOS 12 or higher is required for Intel macs or local builds.
|
||||||
|
|
||||||
Linux requires libei 1.3+ and libportal 0.8+ for the server/client. Additionally, Qt 6.7+ is required for the GUI.
|
Linux 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.
|
Linux users with systems not meeting these requirements should use flatpak in place of a native package.
|
||||||
@ -80,8 +81,6 @@ versions across them and gathering other information.
|
|||||||
|
|
||||||
[](https://repology.org/project/deskflow/versions)
|
[](https://repology.org/project/deskflow/versions)
|
||||||
|
|
||||||
**Note:** We are working with package maintainers to have our new package name adopted.
|
|
||||||
|
|
||||||
## Installing on macOS
|
## 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.
|
When you install Deskflow on macOS, you need to allow accessibility access (Privacy & Security) to both the `Deskflow` app and the `deskflow` process.
|
||||||
@ -94,12 +93,12 @@ on the allowed list you will need to manually remove them before accessibility a
|
|||||||
|
|
||||||
macOS users who download directly from releases may need to run `xattr -c /Applications/Deskflow.app` after copying the app to the `Applications` dir.
|
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:
|
To add our tap, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
brew tap deskflow/homebrew-tap
|
brew tap deskflow/tap
|
||||||
```
|
```
|
||||||
|
|
||||||
Then install either:
|
Then install either:
|
||||||
@ -185,4 +184,4 @@ Deskflow is made by possible by these contributors.
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under [GPL-2.0](LICENSE) with an [OpenSSL exception](LICENSES/LicenseRef-OpenSSL-Exception.txt).
|
This project is licensed under [GPL-2.0](LICENSE) with an [OpenSSL exception](../LICENSES/LicenseRef-OpenSSL-Exception.txt).
|
||||||
34
.github/actions/add-kitware-repo/action.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
name: "Add Kitware repo"
|
|
||||||
description: "Add Kitware repo for Debian-like distros"
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
distro:
|
|
||||||
description: "Ubuntu codename, Kitware uses: noble, jammy, focal"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
# This mirrors instructions at https://apt.kitware.com
|
|
||||||
- name: Add repo
|
|
||||||
run: |
|
|
||||||
apt update -y -qqq
|
|
||||||
apt install ca-certificates gpg wget -y -qqq
|
|
||||||
|
|
||||||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
|
|
||||||
| gpg --dearmor - \
|
|
||||||
> /usr/share/keyrings/kitware-archive-keyring.gpg
|
|
||||||
|
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ ${{ inputs.distro }} main' \
|
|
||||||
> /etc/apt/sources.list.d/kitware.list
|
|
||||||
|
|
||||||
apt update -y -qqq
|
|
||||||
env:
|
|
||||||
# Prevent apt prompting for input.
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
shell: bash
|
|
||||||
25
.github/actions/install-dependencies/action.yml
vendored
@ -30,7 +30,7 @@ runs:
|
|||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" == "macOS" ]; then
|
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
brew install googletest openssl --quiet
|
brew install googletest openssl doxygen --quiet
|
||||||
elif [ "$RUNNER_OS" == "Linux" ]; then
|
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
if [ ${{inputs.like}} == "debian" ]; then
|
if [ ${{inputs.like}} == "debian" ]; then
|
||||||
apt update -qqq > /dev/null
|
apt update -qqq > /dev/null
|
||||||
@ -38,17 +38,17 @@ runs:
|
|||||||
xorg-dev libx11-dev libxtst-dev libssl-dev \
|
xorg-dev libx11-dev libxtst-dev libssl-dev \
|
||||||
libglib2.0-dev libxkbfile-dev qt6-base-dev qt6-tools-dev \
|
libglib2.0-dev libxkbfile-dev qt6-base-dev qt6-tools-dev \
|
||||||
libgtk-3-dev libgtest-dev libgmock-dev \
|
libgtk-3-dev libgtest-dev libgmock-dev \
|
||||||
libei-dev libportal-dev help2man -y >/dev/null
|
libei-dev libportal-dev help2man doxygen -y >/dev/null
|
||||||
elif [ ${{inputs.like}} == "fedora" ]; then
|
elif [ ${{inputs.like}} == "fedora" ]; then
|
||||||
dnf install -y cmake make ninja-build gcc-c++ rpm-build openssl-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 \
|
glib2-devel libXtst-devel libxkbfile-devel qt6-qtbase-devel qt6-qttools-devel \
|
||||||
gtk3-devel gtest-devel gmock-devel libei-devel libportal-devel help2man
|
gtk3-devel gtest-devel gmock-devel libei-devel libportal-devel help2man doxygen
|
||||||
elif [ ${{inputs.like}} == "suse" ]; then
|
elif [ ${{inputs.like}} == "suse" ]; then
|
||||||
zypper refresh
|
zypper refresh
|
||||||
zypper install -y --force-resolution \
|
zypper install -y --force-resolution \
|
||||||
cmake make ninja gcc-c++ rpm-build libopenssl-devel \
|
cmake make ninja gcc-c++ rpm-build libopenssl-devel \
|
||||||
glib2-devel libXtst-devel libxkbfile-devel qt6-base-devel qt6-tools-devel \
|
glib2-devel libXtst-devel libxkbfile-devel qt6-base-devel qt6-tools-devel \
|
||||||
qt6-linguist-devel gtk3-devel \
|
qt6-linguist-devel gtk3-devel doxygen \
|
||||||
googletest-devel googlemock-devel libei-devel libportal-devel help2man
|
googletest-devel googlemock-devel libei-devel libportal-devel help2man
|
||||||
elif [ ${{ inputs.like }} == "arch" ]; then
|
elif [ ${{ inputs.like }} == "arch" ]; then
|
||||||
pacman -Syu --noconfirm base-devel cmake ninja \
|
pacman -Syu --noconfirm base-devel cmake ninja \
|
||||||
@ -83,6 +83,22 @@ runs:
|
|||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
revision: master
|
revision: master
|
||||||
|
|
||||||
|
- name: Cache Chocolatey
|
||||||
|
id: cache-choco
|
||||||
|
if: (runner.os == 'Windows')
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
C:/ProgramData/chocolatey/bin/
|
||||||
|
C:/ProgramData/chocolatey/lib/doxygen.install
|
||||||
|
C:/Program*/doxygen/
|
||||||
|
key: cache-chocolatey${{ matrix.config.arch }}-doxygen
|
||||||
|
|
||||||
|
- name: Install doxygen (windows)
|
||||||
|
if: ((runner.os == 'Windows') && (steps.cache-choco.outputs.cache-hit != 'true'))
|
||||||
|
shell: bash
|
||||||
|
run: choco install doxygen.install
|
||||||
|
|
||||||
- name: Install Wix
|
- name: Install Wix
|
||||||
if: ${{ runner.os == 'Windows' }}
|
if: ${{ runner.os == 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
@ -91,3 +107,4 @@ runs:
|
|||||||
wix extension add --global WixToolset.Util.wixext/5.0.2
|
wix extension add --global WixToolset.Util.wixext/5.0.2
|
||||||
wix extension add --global WixToolset.Firewall.wixext/5.0.2
|
wix extension add --global WixToolset.Firewall.wixext/5.0.2
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
|||||||
49
.github/actions/test-package/action.yml
vendored
Normal 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
|
||||||
2
.github/actions/test-summary/action.yml
vendored
@ -60,7 +60,7 @@ runs:
|
|||||||
|
|
||||||
echo "$table" > $GITHUB_STEP_SUMMARY
|
echo "$table" > $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
count=$(echo "$table" | awk -v RS='' '{gsub(/[^❌]/, ""); print length}')
|
count=$(echo "$table" | { grep -o '❌' || true; } | wc -l)
|
||||||
|
|
||||||
# Keep at this indentation level for heredoc.
|
# Keep at this indentation level for heredoc.
|
||||||
fail_summary=$(cat <<EOF
|
fail_summary=$(cat <<EOF
|
||||||
|
|||||||
33
.github/actions/winget-publish/action.yaml
vendored
@ -1,33 +0,0 @@
|
|||||||
name: Winget Publish
|
|
||||||
description: A composite action to publish packages to the Windows Package Manager (Winget) repository
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
release-version:
|
|
||||||
description: "Version to publish to Winget package manager (without 'v' prefix)"
|
|
||||||
required: true
|
|
||||||
token:
|
|
||||||
description: "GitHub token with public read permissions on the source repo"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- name: Submit package to Windows Package Manager Community Repository
|
|
||||||
if: ${{ runner.os == 'Windows' }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ inputs.token }}
|
|
||||||
run: |
|
|
||||||
# Download latest wingetcreate
|
|
||||||
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
|
||||||
|
|
||||||
$packageId = "Deskflow.Deskflow"
|
|
||||||
$x64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-x64.msi"
|
|
||||||
$arm64Url = "https://github.com/deskflow/deskflow/releases/download/v${{ inputs.release-version }}/deskflow-${{ inputs.release-version }}-win-arm64.msi"
|
|
||||||
|
|
||||||
# Submit package update
|
|
||||||
.\wingetcreate.exe update "$packageId" `
|
|
||||||
--version "${{ inputs.release-version }}" `
|
|
||||||
--urls "$x64Url|x64" "$arm64Url|arm64"`
|
|
||||||
--submit `
|
|
||||||
--token "${{ inputs.token }}"
|
|
||||||
shell: pwsh
|
|
||||||
15
.github/pull_request_template.md
vendored
Normal file
@ -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 -->
|
||||||
14
.github/workflows/ci-comment.yml
vendored
@ -18,12 +18,15 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
summary:
|
summary:
|
||||||
if: github.event.workflow_run.event == 'pull_request'
|
if: github.event.workflow_run.event == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
|
|
||||||
steps:
|
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
|
- name: Download summaries
|
||||||
id: download
|
id: download
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
run-id: ${{ github.event.workflow_run.id }}
|
run-id: ${{ github.event.workflow_run.id }}
|
||||||
pattern: summary-*
|
pattern: summary-*
|
||||||
@ -54,15 +57,16 @@ jobs:
|
|||||||
console.log("Found PR:", pr.number);
|
console.log("Found PR:", pr.number);
|
||||||
return pr.number;
|
return pr.number;
|
||||||
} else {
|
} else {
|
||||||
core.setFailed("PR not found");
|
core.warning("PR not found for SHA (maybe removed by force push)");
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Merge summaries
|
- name: Merge summaries
|
||||||
|
if: steps.get-pr-number.outputs.result
|
||||||
id: summary
|
id: summary
|
||||||
run: |
|
run: |
|
||||||
ls -R
|
ls -R
|
||||||
|
|
||||||
files=$(find $dir -type f)
|
files=$(find summaries -type f 2>/dev/null || true)
|
||||||
if [ -z "$files" ]; then
|
if [ -z "$files" ]; then
|
||||||
echo "No files found in dir: $dir"
|
echo "No files found in dir: $dir"
|
||||||
exit 0
|
exit 0
|
||||||
@ -85,7 +89,7 @@ jobs:
|
|||||||
} >> $GITHUB_OUTPUT
|
} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set PR comment
|
- 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
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
number: ${{ steps.get-pr-number.outputs.result }}
|
number: ${{ steps.get-pr-number.outputs.result }}
|
||||||
@ -93,7 +97,7 @@ jobs:
|
|||||||
message: ${{ steps.summary.outputs.message }}
|
message: ${{ steps.summary.outputs.message }}
|
||||||
|
|
||||||
- name: Delete PR comment
|
- 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
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
number: ${{ steps.get-pr-number.outputs.result }}
|
number: ${{ steps.get-pr-number.outputs.result }}
|
||||||
|
|||||||
12
.github/workflows/codeql-analysis.yml
vendored
@ -22,6 +22,10 @@ on:
|
|||||||
- '!src/res/**'
|
- '!src/res/**'
|
||||||
- '!src/unittests/**'
|
- '!src/unittests/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codeql:
|
codeql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -35,7 +39,7 @@ jobs:
|
|||||||
apt install -qqq git > /dev/null
|
apt install -qqq git > /dev/null
|
||||||
|
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/actions/install-dependencies
|
uses: ./.github/actions/install-dependencies
|
||||||
@ -43,12 +47,12 @@ jobs:
|
|||||||
like: "debian"
|
like: "debian"
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v4
|
||||||
with:
|
with:
|
||||||
languages: cpp
|
languages: cpp
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v3
|
uses: github/codeql-action/autobuild@v4
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v4
|
||||||
|
|||||||
156
.github/workflows/continuous-integration.yml
vendored
@ -11,6 +11,10 @@ on:
|
|||||||
- "v*"
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
PACKAGE_PREFIX: "deskflow"
|
PACKAGE_PREFIX: "deskflow"
|
||||||
@ -21,10 +25,17 @@ jobs:
|
|||||||
# Quality gate to allow PR merge, used in the branch protection rules.
|
# Quality gate to allow PR merge, used in the branch protection rules.
|
||||||
ci-passed:
|
ci-passed:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test-results, unix, flatpak]
|
needs: [main-build, test-results, unix, flatpak]
|
||||||
|
if: always()
|
||||||
|
|
||||||
steps:
|
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.
|
# Summary of test results, combined from test result artifacts.
|
||||||
# Runs even if the tests fail to provide a summary of the failures.
|
# Runs even if the tests fail to provide a summary of the failures.
|
||||||
@ -32,7 +43,7 @@ jobs:
|
|||||||
needs: main-build
|
needs: main-build
|
||||||
if: always() && needs.main-build.result != 'skipped'
|
if: always() && needs.main-build.result != 'skipped'
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -54,7 +65,7 @@ jobs:
|
|||||||
|
|
||||||
lint-clang:
|
lint-clang:
|
||||||
needs: [lint-reuse]
|
needs: [lint-reuse]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -88,6 +99,7 @@ jobs:
|
|||||||
config-args: "-G Ninja"
|
config-args: "-G Ninja"
|
||||||
vcpkg-triplet: x64-windows-release
|
vcpkg-triplet: x64-windows-release
|
||||||
arch: "amd64"
|
arch: "amd64"
|
||||||
|
qt-version: 6.10.2
|
||||||
|
|
||||||
- name: "windows-2022-arm64"
|
- name: "windows-2022-arm64"
|
||||||
runs-on: "windows-11-arm"
|
runs-on: "windows-11-arm"
|
||||||
@ -95,42 +107,45 @@ jobs:
|
|||||||
config-args: "-G Ninja"
|
config-args: "-G Ninja"
|
||||||
vcpkg-triplet: arm64-windows
|
vcpkg-triplet: arm64-windows
|
||||||
arch: "arm64"
|
arch: "arm64"
|
||||||
|
qt-version: 6.10.2
|
||||||
|
|
||||||
- name: "macos-arm64"
|
- name: "macos-arm64"
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
timeout: 10
|
timeout: 10
|
||||||
|
qt-version: 6.10.2
|
||||||
config-args: '-DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=14 -DCMAKE_OSX_SYSROOT=/Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
|
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-x64"
|
- name: "macos-x64"
|
||||||
runs-on: macos-15-intel
|
runs-on: macos-15-intel
|
||||||
timeout: 20
|
timeout: 20
|
||||||
|
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'
|
config-args: '-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=12 -DCMAKE_OSX_SYSROOT=/Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
|
||||||
|
|
||||||
- name: "debian-13-x86_64"
|
- name: "debian-x86_64"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: debian:trixie-slim
|
container: debian:stable-slim
|
||||||
like: "debian"
|
like: "debian"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
- name: "debian-13-arm64"
|
- name: "debian-arm64"
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
container: debian:trixie-slim
|
container: debian:stable-slim
|
||||||
like: "debian"
|
like: "debian"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
- name: "fedora-43-x86_64"
|
- name: "debian-testing-x86_64"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: fedora:43
|
container: debian:testing-slim
|
||||||
like: "fedora"
|
like: "debian"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
- name: "fedora-43-arm64"
|
- name: "debian-testing-arm64"
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
container: fedora:43
|
container: debian:testing-slim
|
||||||
like: "fedora"
|
like: "debian"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
@ -148,16 +163,16 @@ jobs:
|
|||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
- name: "fedora-41-x86_64"
|
- name: "fedora-43-x86_64"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: fedora:41
|
container: fedora:43
|
||||||
like: "fedora"
|
like: "fedora"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
|
|
||||||
- name: "fedora-41-arm64"
|
- name: "fedora-43-arm64"
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
container: fedora:41
|
container: fedora:43
|
||||||
like: "fedora"
|
like: "fedora"
|
||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
@ -183,20 +198,6 @@ jobs:
|
|||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DEV_DOCS=ON"
|
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DEV_DOCS=ON"
|
||||||
|
|
||||||
- name: "ubuntu-25.04-x86_64"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: ubuntu:25.04
|
|
||||||
like: "debian"
|
|
||||||
timeout: 20
|
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
|
||||||
|
|
||||||
- name: "ubuntu-25.04-arm64"
|
|
||||||
runs-on: ubuntu-24.04-arm
|
|
||||||
container: ubuntu:25.04
|
|
||||||
like: "debian"
|
|
||||||
timeout: 20
|
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
|
||||||
|
|
||||||
- name: "ubuntu-25.10-x86_64"
|
- name: "ubuntu-25.10-x86_64"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ubuntu:25.10
|
container: ubuntu:25.10
|
||||||
@ -211,6 +212,20 @@ jobs:
|
|||||||
timeout: 20
|
timeout: 20
|
||||||
config-args: "-G Ninja -DCMAKE_INSTALL_PREFIX=/usr"
|
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:
|
steps:
|
||||||
# Make sure the container has git before we do anything else
|
# Make sure the container has git before we do anything else
|
||||||
- name: Install Git on Container
|
- name: Install Git on Container
|
||||||
@ -232,7 +247,7 @@ jobs:
|
|||||||
# Fancy checkout gets all the tags
|
# Fancy checkout gets all the tags
|
||||||
# it also makes sure we can use git --describe correctly
|
# it also makes sure we can use git --describe correctly
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
# This effectively runs `vcvarsall.bat`, etc. It's not actually installing
|
# This effectively runs `vcvarsall.bat`, etc. It's not actually installing
|
||||||
# VC++ as that's already pre-installed on the Windows runner.
|
# VC++ as that's already pre-installed on the Windows runner.
|
||||||
@ -246,13 +261,18 @@ jobs:
|
|||||||
id: get-deps
|
id: get-deps
|
||||||
uses: ./.github/actions/install-dependencies
|
uses: ./.github/actions/install-dependencies
|
||||||
with:
|
with:
|
||||||
qt-version: 6.10.0
|
qt-version: ${{matrix.target.qt-version}}
|
||||||
vcpkg-triplet: ${{matrix.target.vcpkg-triplet}}
|
vcpkg-triplet: ${{matrix.target.vcpkg-triplet}}
|
||||||
like: ${{ matrix.target.like }}
|
like: ${{ matrix.target.like }}
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
uses: ./.github/actions/get-version
|
uses: ./.github/actions/get-version
|
||||||
|
|
||||||
|
- name: Update Windows Paths
|
||||||
|
if: (runner.os == 'Windows')
|
||||||
|
shell: pwsh
|
||||||
|
run: echo "C:\Program Files\doxygen\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Configure
|
- 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}}"
|
||||||
|
|
||||||
@ -260,7 +280,21 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{matrix.target.like}}" != "arch" ]]; then
|
if [[ "${{matrix.target.like}}" != "arch" ]]; then
|
||||||
cmake --build build --config Release -j8 --target package
|
if [ "$RUNNER_OS" != "macOS" ]; then
|
||||||
|
cmake --build build --config Release -j8 --target package
|
||||||
|
else
|
||||||
|
cmake --build build --config Release -j8
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
cmake --build build --config Release -j8 --target package 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Package successful"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
echo "Package attempt $i failed"
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
cmake --build build --config Release -j8
|
cmake --build build --config Release -j8
|
||||||
useradd -m build
|
useradd -m build
|
||||||
@ -273,18 +307,31 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
fi
|
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
|
- name: Tests
|
||||||
uses: ./.github/actions/run-tests
|
uses: ./.github/actions/run-tests
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
with:
|
with:
|
||||||
job: ${{ matrix.target.name }}
|
job: ${{ matrix.target.name }}
|
||||||
|
|
||||||
|
- name: Test package
|
||||||
|
uses: ./.github/actions/test-package
|
||||||
|
with:
|
||||||
|
like: ${{ matrix.target.like }}
|
||||||
|
|
||||||
- name: Update Development Documentation
|
- name: Update Development Documentation
|
||||||
if: matrix.target.like == 'arch' && github.ref == 'refs/heads/master'
|
if: matrix.target.like == 'arch' && github.ref == 'refs/heads/master'
|
||||||
uses: JamesIves/github-pages-deploy-action@v4.7.3
|
uses: JamesIves/github-pages-deploy-action@v4.7.3
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: build/doc/dev/html
|
folder: build/docs/dev/html
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@ -310,7 +357,7 @@ jobs:
|
|||||||
# Fancy checkout gets all the tags
|
# Fancy checkout gets all the tags
|
||||||
# it also makes sure we can use git --describe correctly
|
# it also makes sure we can use git --describe correctly
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
- name: Build on FreeBSD
|
- name: Build on FreeBSD
|
||||||
if: ${{ matrix.distro.name == 'freebsd' }}
|
if: ${{ matrix.distro.name == 'freebsd' }}
|
||||||
uses: vmactions/freebsd-vm@v1
|
uses: vmactions/freebsd-vm@v1
|
||||||
@ -318,8 +365,8 @@ jobs:
|
|||||||
usesh: true
|
usesh: true
|
||||||
run: |
|
run: |
|
||||||
pkg install -y cmake ninja gmake gcc12 openssl glib \
|
pkg install -y cmake ninja gmake gcc12 openssl glib \
|
||||||
libX11 libXtst libxkbfile qt6-base qt6-tools gtk3 googletest \
|
libX11 libXtst libxkbfile qt6-base qt6-tools gtk3 \
|
||||||
tomlplusplus cli11 pkgconf libei libportal
|
googletest pkgconf libei libportal doxygen
|
||||||
${{env.CMAKE_CONFIGURE}} -G Ninja
|
${{env.CMAKE_CONFIGURE}} -G Ninja
|
||||||
cmake --build build -j16
|
cmake --build build -j16
|
||||||
# Integration tests are flakey by nature, make them optional.
|
# Integration tests are flakey by nature, make them optional.
|
||||||
@ -331,7 +378,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.flatpak.runs-on}}
|
runs-on: ${{matrix.flatpak.runs-on}}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
|
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
|
||||||
options: --privileged
|
options: --privileged
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -343,7 +390,7 @@ jobs:
|
|||||||
arch: aarch64
|
arch: aarch64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
- run: git config --global protocol.file.allow always
|
- run: git config --global protocol.file.allow always
|
||||||
|
|
||||||
@ -381,7 +428,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
uses: ./.github/actions/get-version
|
uses: ./.github/actions/get-version
|
||||||
@ -420,19 +467,12 @@ jobs:
|
|||||||
deskflow-*
|
deskflow-*
|
||||||
sums.txt
|
sums.txt
|
||||||
|
|
||||||
winget-publish:
|
- name: Update Homebrewtap
|
||||||
needs: release
|
shell: bash
|
||||||
if: contains(github.ref, 'tags/v')
|
run: |
|
||||||
runs-on: windows-latest
|
curl -L -X POST \
|
||||||
steps:
|
-H "Accept: application/vnd.github+json" \
|
||||||
- name: Fancy Checkout
|
-H "Authorization: Bearer ${{ secrets.DF_TAP_TOKEN }}" \
|
||||||
uses: sithlord48/fancy-checkout@v1
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
https://api.github.com/repos/deskflow/homebrew-tap/dispatches \
|
||||||
- name: Get version
|
-d '{"event_type":"update_tap"}'
|
||||||
uses: ./.github/actions/get-version
|
|
||||||
|
|
||||||
- name: Submit
|
|
||||||
uses: ./.github/actions/winget-publish
|
|
||||||
with:
|
|
||||||
release-version: ${{env.DESKFLOW_PACKAGE_VERSION}}
|
|
||||||
token: ${{ secrets.WINGET_DEPLOY_TOKEN }}
|
|
||||||
|
|||||||
2
.github/workflows/issue-check-stale.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale-issues:
|
stale-issues:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
6
.github/workflows/sonarcloud-analysis.yml
vendored
@ -23,6 +23,10 @@ on:
|
|||||||
- '!src/res/**'
|
- '!src/res/**'
|
||||||
- '!src/unittests/**'
|
- '!src/unittests/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonar:
|
sonar:
|
||||||
# This job would fail for contributors who open PRs as the workflow runs outside of our repo
|
# This job would fail for contributors who open PRs as the workflow runs outside of our repo
|
||||||
@ -43,7 +47,7 @@ jobs:
|
|||||||
apt install -qqq git curl unzip gcovr > /dev/null
|
apt install -qqq git curl unzip gcovr > /dev/null
|
||||||
|
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
uses: ./.github/actions/install-dependencies
|
uses: ./.github/actions/install-dependencies
|
||||||
|
|||||||
2
.github/workflows/valgrind-analysis.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
apt install -qqq git valgrind > /dev/null
|
apt install -qqq git valgrind > /dev/null
|
||||||
|
|
||||||
- name: Fancy Checkout
|
- name: Fancy Checkout
|
||||||
uses: sithlord48/fancy-checkout@v1
|
uses: sithlord48/fancy-checkout@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/actions/install-dependencies
|
uses: ./.github/actions/install-dependencies
|
||||||
|
|||||||
4
.gitignore
vendored
@ -45,3 +45,7 @@ CMakeFiles/*
|
|||||||
|
|
||||||
# scripts folder
|
# scripts folder
|
||||||
/scripts
|
/scripts
|
||||||
|
|
||||||
|
# Ai helperfilers
|
||||||
|
**/[cC]laude.[mM][dD]
|
||||||
|
**/CLAUDE.[mM][dD]
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 - 2025 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 - 2026 Deskflow Developers
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.24)
|
cmake_minimum_required(VERSION 3.24)
|
||||||
@ -11,6 +11,11 @@ cmake_policy(SET CMP0003 NEW)
|
|||||||
# Fix define escaping
|
# Fix define escaping
|
||||||
cmake_policy(SET CMP0005 NEW)
|
cmake_policy(SET CMP0005 NEW)
|
||||||
|
|
||||||
|
# De-duplicate libraries on linker calls
|
||||||
|
if(POLICY CMP0156)
|
||||||
|
cmake_policy(SET CMP0156 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Set CXX Requirements
|
# Set CXX Requirements
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
@ -18,7 +23,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
|
|
||||||
# Fallback for when git can not be found
|
# Fallback for when git can not be found
|
||||||
set(DESKFLOW_VERSION_MAJOR 1)
|
set(DESKFLOW_VERSION_MAJOR 1)
|
||||||
set(DESKFLOW_VERSION_MINOR 25)
|
set(DESKFLOW_VERSION_MINOR 26)
|
||||||
set(DESKFLOW_VERSION_PATCH 0)
|
set(DESKFLOW_VERSION_PATCH 0)
|
||||||
set(DESKFLOW_VERSION_TWEAK 0)
|
set(DESKFLOW_VERSION_TWEAK 0)
|
||||||
|
|
||||||
@ -33,38 +38,28 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
|
|||||||
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${GIT_EXECUTABLE} rev-list --tags --count
|
COMMAND ${GIT_EXECUTABLE} describe --long --match v* --always
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
OUTPUT_VARIABLE GIT_TAG_COUNT
|
OUTPUT_VARIABLE GITREV
|
||||||
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
|
string(FIND "${GITREV}" "v" isRev)
|
||||||
if(${GIT_TAG_COUNT} EQUAL 0)
|
if(NOT ${isRev} EQUAL -1)
|
||||||
set(DESKFLOW_VERSION_TWEAK "9999")
|
string(REGEX MATCH [0-9]+ MAJOR ${GITREV})
|
||||||
|
string(REGEX MATCH \\.[0-9]+ MINOR ${GITREV})
|
||||||
|
string(REPLACE "." "" MINOR "${MINOR}")
|
||||||
|
string(REGEX MATCH [0-9]+\- PATCH ${GITREV})
|
||||||
|
string(REPLACE "-" "" PATCH "${PATCH}")
|
||||||
|
string(REGEX MATCH \-[0-9]+\- TWEAK ${GITREV})
|
||||||
|
string(REPLACE "-" "" TWEAK "${TWEAK}")
|
||||||
|
set(DESKFLOW_VERSION_MAJOR ${MAJOR})
|
||||||
|
set(DESKFLOW_VERSION_MINOR ${MINOR})
|
||||||
|
set(DESKFLOW_VERSION_PATCH ${PATCH})
|
||||||
|
set(DESKFLOW_VERSION_TWEAK ${TWEAK})
|
||||||
else()
|
else()
|
||||||
execute_process(
|
set(DESKFLOW_VERSION_TWEAK "9999")
|
||||||
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 ${isRev} EQUAL -1)
|
|
||||||
string(REGEX MATCH [0-9]+ MAJOR ${GITREV})
|
|
||||||
string(REGEX MATCH \\.[0-9]+ MINOR ${GITREV})
|
|
||||||
string(REPLACE "." "" MINOR "${MINOR}")
|
|
||||||
string(REGEX MATCH [0-9]+\- PATCH ${GITREV})
|
|
||||||
string(REPLACE "-" "" PATCH "${PATCH}")
|
|
||||||
string(REGEX MATCH \-[0-9]+\- TWEAK ${GITREV})
|
|
||||||
string(REPLACE "-" "" TWEAK "${TWEAK}")
|
|
||||||
set(DESKFLOW_VERSION_MAJOR ${MAJOR})
|
|
||||||
set(DESKFLOW_VERSION_MINOR ${MINOR})
|
|
||||||
set(DESKFLOW_VERSION_PATCH ${PATCH})
|
|
||||||
set(DESKFLOW_VERSION_TWEAK ${TWEAK})
|
|
||||||
elseif(NOT ${GITREV} STREQUAL "")
|
|
||||||
set(DESKFLOW_VERSION_TWEAK ${GITREV})
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
unset(GITREV)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -89,7 +84,7 @@ project(
|
|||||||
# Define Additional "PROJECT" vars for packaging and metadata
|
# Define Additional "PROJECT" vars for packaging and metadata
|
||||||
set(CMAKE_PROJECT_PROPER_NAME "Deskflow")
|
set(CMAKE_PROJECT_PROPER_NAME "Deskflow")
|
||||||
set(CMAKE_PROJECT_VENDOR "${CMAKE_PROJECT_PROPER_NAME} Devs")
|
set(CMAKE_PROJECT_VENDOR "${CMAKE_PROJECT_PROPER_NAME} Devs")
|
||||||
set(CMAKE_PROJECT_COPYRIGHT "(C) 2024-2025 ${CMAKE_PROJECT_VENDOR}")
|
set(CMAKE_PROJECT_COPYRIGHT "(C) 2024-2026 ${CMAKE_PROJECT_VENDOR}")
|
||||||
set(CMAKE_PROJECT_CONTACT "${CMAKE_PROJECT_PROPER_NAME} <maintainers@deskflow.org>")
|
set(CMAKE_PROJECT_CONTACT "${CMAKE_PROJECT_PROPER_NAME} <maintainers@deskflow.org>")
|
||||||
set(CMAKE_PROJECT_REV_FQDN "org.deskflow.deskflow")
|
set(CMAKE_PROJECT_REV_FQDN "org.deskflow.deskflow")
|
||||||
|
|
||||||
@ -104,11 +99,10 @@ message(STATUS "Building ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
|
|||||||
# Set lib versions
|
# Set lib versions
|
||||||
set(REQUIRED_OPENSSL_VERSION 3.0)
|
set(REQUIRED_OPENSSL_VERSION 3.0)
|
||||||
set(REQUIRED_LIBEI_VERSION 1.3)
|
set(REQUIRED_LIBEI_VERSION 1.3)
|
||||||
set(REQUIRED_LIBPORTAL_VERSION 0.8)
|
set(REQUIRED_LIBPORTAL_VERSION 0.9.1)
|
||||||
set(REQUIRED_QT_VERSION 6.7.0)
|
set(REQUIRED_QT_VERSION 6.7.0)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_definitions(-DSYSAPI_WIN32 -DWINAPI_MSWINDOWS)
|
|
||||||
# VSCMD_ARG_TGT_ARCH is set on CI
|
# VSCMD_ARG_TGT_ARCH is set on CI
|
||||||
if ("$ENV{VSCMD_ARG_TGT_ARCH}" STREQUAL "")
|
if ("$ENV{VSCMD_ARG_TGT_ARCH}" STREQUAL "")
|
||||||
# NOT on CI
|
# NOT on CI
|
||||||
@ -167,11 +161,16 @@ endif()
|
|||||||
include(cmake/Libraries.cmake)
|
include(cmake/Libraries.cmake)
|
||||||
configure_libs()
|
configure_libs()
|
||||||
|
|
||||||
|
if(BUILD_OSX_BUNDLE AND APPLE_CODESIGN_DEV)
|
||||||
|
include(cmake/MacCodesign.cmake)
|
||||||
|
endif()
|
||||||
|
|
||||||
# setup install paths
|
# setup install paths
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(CMAKE_INSTALL_BINDIR .)
|
set(CMAKE_INSTALL_BINDIR .)
|
||||||
set(CMAKE_INSTALL_LIBDIR .)
|
set(CMAKE_INSTALL_LIBDIR .)
|
||||||
|
set(CMAKE_INSTALL_DOCDIR docs)
|
||||||
set(CMAKE_INSTALL_LICENSE_DIR .)
|
set(CMAKE_INSTALL_LICENSE_DIR .)
|
||||||
set(CMAKE_INSTALL_I18N_DIR translations)
|
set(CMAKE_INSTALL_I18N_DIR translations)
|
||||||
elseif(BUILD_OSX_BUNDLE)
|
elseif(BUILD_OSX_BUNDLE)
|
||||||
@ -182,10 +181,13 @@ else()
|
|||||||
set(CMAKE_INSTALL_I18N_DIR ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/translations)
|
set(CMAKE_INSTALL_I18N_DIR ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/translations)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(docs)
|
||||||
add_subdirectory(src)
|
|
||||||
|
# build translations before source, I18N unit tests fail if they are missing
|
||||||
add_subdirectory(translations)
|
add_subdirectory(translations)
|
||||||
|
|
||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
option(BUILD_INSTALLER "Build installer" ON)
|
option(BUILD_INSTALLER "Build installer" ON)
|
||||||
if(BUILD_INSTALLER)
|
if(BUILD_INSTALLER)
|
||||||
add_subdirectory(deploy)
|
add_subdirectory(deploy)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ path = [
|
|||||||
, "sonar-project.properties"
|
, "sonar-project.properties"
|
||||||
, "cmake/vcpkg.json.in"
|
, "cmake/vcpkg.json.in"
|
||||||
, "**/*.md"
|
, "**/*.md"
|
||||||
, "doc/**"
|
, "docs/**"
|
||||||
, "deploy/linux/flatpak/**"
|
, "deploy/linux/flatpak/**"
|
||||||
, "deploy/linux/org.deskflow.deskflow.metainfo.xml"
|
, "deploy/linux/org.deskflow.deskflow.metainfo.xml"
|
||||||
, "deploy/windows/wix-patch.xml.in"
|
, "deploy/windows/wix-patch.xml.in"
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
# SOURCE https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake
|
# SOURCE https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake
|
||||||
# SPDX-FileCopyrightText: 2020 Bob Apthrope
|
# SPDX-FileCopyrightText: (C) 2020 Bob Apthrope
|
||||||
# SPDX-FileCopyrightText: 2019 Anatolii Kurotych
|
# SPDX-FileCopyrightText: (C) 2019 Anatolii Kurotych
|
||||||
# SPDX-FileCopyrightText: 2019 - 2020 Frank Dana
|
# SPDX-FileCopyrightText: (C) 2019 - 2020 Frank Dana
|
||||||
# SPDX-FileCopyrightText: 2013 Joakim Söderberg
|
# SPDX-FileCopyrightText: (C) 2013 Joakim Söderberg
|
||||||
# SPDX-FileCopyrightText: 2012 - 2017 Lars Bilke
|
# SPDX-FileCopyrightText: (C) 2012 - 2017 Lars Bilke
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# USAGE:
|
# USAGE:
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 - 2025 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 - 2025 Deskflow Developers
|
||||||
# SPDX-FileCopyrightText: 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2024 Symless Ltd
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
macro(configure_libs)
|
macro(configure_libs)
|
||||||
@ -141,8 +141,6 @@ macro(configure_unix_libs)
|
|||||||
${lib_ScreenSaver} ${lib_IOKit} ${lib_ApplicationServices}
|
${lib_ScreenSaver} ${lib_IOKit} ${lib_ApplicationServices}
|
||||||
${lib_Foundation} ${lib_Carbon} ${lib_UserNotifications}
|
${lib_Foundation} ${lib_Carbon} ${lib_UserNotifications}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(-DWINAPI_CARBON=1)
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
if (BUILD_X11_SUPPORT)
|
if (BUILD_X11_SUPPORT)
|
||||||
@ -163,15 +161,6 @@ macro(configure_unix_libs)
|
|||||||
message(WARNING "pkg-config not found, skipping wayland libraries")
|
message(WARNING "pkg-config not found, skipping wayland libraries")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Unix only: For config.h, save the results based on a template (config.h.in).
|
|
||||||
# Note that this won't work on Windows because filenames are not case sensitive,
|
|
||||||
# and we have header files named "Config.h" (upper case 'C').
|
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/src/lib/Config.h.in
|
|
||||||
${CMAKE_BINARY_DIR}/src/lib/Config.h @ONLY)
|
|
||||||
|
|
||||||
add_definitions(-DSYSAPI_UNIX=1 -DHAVE_CONFIG_H)
|
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
51
cmake/MacCodesign.cmake
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# SPDX-FileCopyrightText: (C) 2025-2026 Deskflow Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Warning: Do not use for CI/production, as the `entitlements-dev.plist` file adds special
|
||||||
|
# entitlements that are only appropriate for local development.
|
||||||
|
#
|
||||||
|
# macOS made TCC stricter so that if you don't sign your local dev builds properly, macOS will
|
||||||
|
# nag you to remove and re-approve the app every time you make a change to the binary which is
|
||||||
|
# extremely annoying during development.
|
||||||
|
#
|
||||||
|
# If you were to use ad-hoc signing (i.e. not specify a certificate), TCC would still nag you
|
||||||
|
# because the binary identity is anchored not on the app ID, but on the CD hash (which changes
|
||||||
|
# based on the binary contents).
|
||||||
|
#
|
||||||
|
# To use, simply generate a personal certificate for free with Xcode and pass the ID to CMake.
|
||||||
|
# Full instructions are in the docs.
|
||||||
|
|
||||||
|
function(configure_mac_codesign target)
|
||||||
|
set_property(GLOBAL APPEND PROPERTY _MAC_CODESIGN_DEPENDS $<TARGET_FILE:${target}>)
|
||||||
|
|
||||||
|
get_property(deferred GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED)
|
||||||
|
|
||||||
|
if(NOT deferred)
|
||||||
|
set_property(GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED TRUE)
|
||||||
|
message(STATUS "Apple codesign ID for development only: ${APPLE_CODESIGN_DEV}")
|
||||||
|
cmake_language(DEFER DIRECTORY ${CMAKE_SOURCE_DIR} CALL _finalize_mac_codesign)
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(_finalize_mac_codesign)
|
||||||
|
get_property(depends GLOBAL PROPERTY _MAC_CODESIGN_DEPENDS)
|
||||||
|
|
||||||
|
set(stamp_file "${CMAKE_BINARY_DIR}/CMakeFiles/codesign-dev.stamp")
|
||||||
|
|
||||||
|
# Use a stamp file because codesign modifies the binaries it signs.
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${stamp_file}
|
||||||
|
COMMAND /usr/bin/codesign
|
||||||
|
--force
|
||||||
|
--options runtime
|
||||||
|
--entitlements "${CMAKE_SOURCE_DIR}/src/apps/res/entitlements-dev.plist"
|
||||||
|
--sign "${APPLE_CODESIGN_DEV}"
|
||||||
|
"$<TARGET_BUNDLE_DIR:${CMAKE_PROJECT_PROPER_NAME}>"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E touch ${stamp_file}
|
||||||
|
DEPENDS ${depends}
|
||||||
|
COMMENT "Codesigning ${CMAKE_PROJECT_PROPER_NAME}"
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(codesign-dev ALL DEPENDS ${stamp_file})
|
||||||
|
endfunction()
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# Copy License with txt ext for picky package creation tools
|
# Copy License with txt ext for picky package creation tools
|
||||||
@ -8,7 +8,6 @@ file(COPY_FILE
|
|||||||
ONLY_IF_DIFFERENT
|
ONLY_IF_DIFFERENT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Generic Package Items
|
# Generic Package Items
|
||||||
set(CPACK_STRIP_FILES TRUE)
|
set(CPACK_STRIP_FILES TRUE)
|
||||||
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
|
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
# Maintainer: Deskflow Developers
|
# Maintainer: Deskflow Developers
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# HACK This is set when the files is included so its the real path
|
# HACK This is set when the files is included so its the real path
|
||||||
@ -35,6 +35,7 @@ configure_file(
|
|||||||
|
|
||||||
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
|
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
|
||||||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "qt6-svg-plugins")
|
||||||
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
|
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
|
||||||
set(CPACK_RPM_PACKAGE_GROUP "Applications/System")
|
set(CPACK_RPM_PACKAGE_GROUP "Applications/System")
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
app-id: org.deskflow.deskflow
|
app-id: org.deskflow.deskflow
|
||||||
runtime: org.kde.Platform
|
runtime: org.kde.Platform
|
||||||
runtime-version: "6.9"
|
runtime-version: "6.10"
|
||||||
sdk: org.kde.Sdk
|
sdk: org.kde.Sdk
|
||||||
command: deskflow
|
command: deskflow
|
||||||
finish-args:
|
finish-args:
|
||||||
@ -29,8 +29,12 @@ modules:
|
|||||||
--prefix=${FLATPAK_DEST} --no-build-isolation Jinja2
|
--prefix=${FLATPAK_DEST} --no-build-isolation Jinja2
|
||||||
sources:
|
sources:
|
||||||
- type: file
|
- type: file
|
||||||
url: https://files.pythonhosted.org/packages/30/6d/6de6be2d02603ab56e72997708809e8a5b0fbfee080735109b40a3564843/Jinja2-3.1.3-py3-none-any.whl
|
url: https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl
|
||||||
sha256: 7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa
|
sha256: 85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
|
||||||
|
x-checker-data:
|
||||||
|
type: pypi
|
||||||
|
name: Jinja2
|
||||||
|
packagetype: bdist_wheel
|
||||||
- type: file
|
- type: file
|
||||||
url: https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz
|
url: https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz
|
||||||
sha256: d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b
|
sha256: d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b
|
||||||
@ -45,8 +49,11 @@ modules:
|
|||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://gitlab.freedesktop.org/libinput/libei
|
url: https://gitlab.freedesktop.org/libinput/libei
|
||||||
tag: 1.4.1
|
tag: 1.5.0
|
||||||
commit: 9e0413cbc7d3ae6656266890425f152589ddf74d
|
commit: 19b64535408aa47abbc8151bc2c925afd6583851
|
||||||
|
x-checker-data:
|
||||||
|
type: git
|
||||||
|
tag-pattern: ^([\\d.]+)$
|
||||||
- name: libportal
|
- name: libportal
|
||||||
buildsystem: meson
|
buildsystem: meson
|
||||||
config-opts:
|
config-opts:
|
||||||
@ -67,8 +74,11 @@ modules:
|
|||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/google/googletest.git
|
url: https://github.com/google/googletest.git
|
||||||
tag: v1.15.2
|
tag: v1.17.0
|
||||||
commit: b514bdc898e2951020cbdca1304b75f5950d1f59
|
commit: 52eb8108c5bdec04579160ae17225d66034bd723
|
||||||
|
x-checker-data:
|
||||||
|
type: git
|
||||||
|
tag-pattern: ^([\\d.]+)$
|
||||||
cleanup:
|
cleanup:
|
||||||
- '*'
|
- '*'
|
||||||
- name: deskflow
|
- name: deskflow
|
||||||
|
|||||||
@ -17,3 +17,6 @@ Keywords[zh_CN]=键盘;鼠标;网络;共享;
|
|||||||
Name[ru]=Deskflow
|
Name[ru]=Deskflow
|
||||||
Comment[ru]=Приложения чтобы использовать одну мышку и клавиатуру с разными устройствами
|
Comment[ru]=Приложения чтобы использовать одну мышку и клавиатуру с разными устройствами
|
||||||
Keywords[ru]=Передача;Трансляция;barrier;input-leap;
|
Keywords[ru]=Передача;Трансляция;barrier;input-leap;
|
||||||
|
Name[ko]=Deskflow
|
||||||
|
Comment[ko]=마우스 및 키보드 공유 유틸리티
|
||||||
|
Keywords[ko]=키보드;마우스;공유;네트워크;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
</developer>
|
</developer>
|
||||||
<summary>Software Keyboard and mouse sharing</summary>
|
<summary>Software Keyboard and mouse sharing</summary>
|
||||||
<summary xml:lang="zh_CN">用软件共享键鼠</summary>
|
<summary xml:lang="zh_CN">用软件共享键鼠</summary>
|
||||||
|
<summary xml:lang="ko">키보드 및 마우스 공유 소프트웨어</summary>
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
Use the keyboard, mouse, or trackpad of one computer to control nearby computers, and work seamlessly between them.
|
Use the keyboard, mouse, or trackpad of one computer to control nearby computers, and work seamlessly between them.
|
||||||
@ -16,6 +17,9 @@
|
|||||||
<p xml:lang="zh_CN">
|
<p xml:lang="zh_CN">
|
||||||
使用一台计算机的键盘、鼠标或触控板来控制附近的其它计算机,并在它们之间无缝工作。
|
使用一台计算机的键盘、鼠标或触控板来控制附近的其它计算机,并在它们之间无缝工作。
|
||||||
</p>
|
</p>
|
||||||
|
<p xml:lang="ko">
|
||||||
|
한 대의 컴퓨터에 연결된 키보드, 마우스 또는 트랙패드로 주변의 다른 컴퓨터를 제어하고, 컴퓨터 사이를 끊김 없이 오가며 작업할 수 있습니다.
|
||||||
|
</p>
|
||||||
</description>
|
</description>
|
||||||
<launchable type="desktop-id">org.deskflow.deskflow.desktop</launchable>
|
<launchable type="desktop-id">org.deskflow.deskflow.desktop</launchable>
|
||||||
<url type="homepage">https://deskflow.org</url>
|
<url type="homepage">https://deskflow.org</url>
|
||||||
@ -57,8 +61,10 @@
|
|||||||
<keywords>
|
<keywords>
|
||||||
<keyword>Input</keyword>
|
<keyword>Input</keyword>
|
||||||
<keyword xml:lang="zh_CN">输入</keyword>
|
<keyword xml:lang="zh_CN">输入</keyword>
|
||||||
|
<keyword xml:lang="ko">입력</keyword>
|
||||||
<keyword>Sharing</keyword>
|
<keyword>Sharing</keyword>
|
||||||
<keyword xml:lang="zh_CN">共享</keyword>
|
<keyword xml:lang="zh_CN">共享</keyword>
|
||||||
|
<keyword xml:lang="ko">공유</keyword>
|
||||||
<keyword translate="no">KVM</keyword>
|
<keyword translate="no">KVM</keyword>
|
||||||
<keyword translate="no">Synergy</keyword>
|
<keyword translate="no">Synergy</keyword>
|
||||||
</keywords>
|
</keywords>
|
||||||
@ -68,6 +74,45 @@
|
|||||||
</branding>
|
</branding>
|
||||||
<content_rating type="oars-1.0" />
|
<content_rating type="oars-1.0" />
|
||||||
<releases>
|
<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">
|
<release version="1.25.0" date="2025-11-21" urgency="high">
|
||||||
<description>
|
<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>
|
<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>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# HACK This is set when the files is included so its the real path
|
# HACK This is set when the files is included so its the real path
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
|
#SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
#SPDX-License-Identifier: MIT
|
#SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
|
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# HACK This is set when the files is included so its the real path
|
# HACK This is set when the files is included so its the real path
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
|
if(CPACK_GENERATOR MATCHES 7Z|ZIP)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
find_package(Doxygen QUIET)
|
find_package(Doxygen QUIET)
|
||||||
@ -24,3 +24,12 @@ if (DOXYGEN_FOUND)
|
|||||||
else()
|
else()
|
||||||
message(STATUS "Doxygen not found, skipping docs build")
|
message(STATUS "Doxygen not found, skipping docs build")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Show our documents in the IDE
|
||||||
|
add_custom_target(docs
|
||||||
|
SOURCES
|
||||||
|
Readme.md
|
||||||
|
Security.md
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES Security.md Readme.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
||||||
18
docs/Readme.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Deskflow
|
||||||
|
|
||||||
|
Deskflow is a free and open source keyboard and mouse sharing app. Use the keyboard, mouse, or trackpad of one computer to control nearby computers, and work seamlessly between them.
|
||||||
|
|
||||||
|
[Homepage](https://deskflow.org) [Code](https://github.com/deskflow/deskflo)
|
||||||
|
|
||||||
|
## Getting help online
|
||||||
|
|
||||||
|
- View the [wiki](https://github.com/deskflow/deskflow/wiki) Online resource
|
||||||
|
|
||||||
|
### Chat with us
|
||||||
|
- Main discussion on Matrix: [`#deskflow:matrix.org`](https://matrix.to/#/#deskflow:matrix.org) ([Matrix clients](https://matrix.org/ecosystem/clients/))
|
||||||
|
- Discussion also happens on IRC: `#deskflow` or `#deskflow-dev` on [Libera Chat](https://libera.chat/)
|
||||||
|
- Start a [new discussion](https://github.com/deskflow/deskflow/discussions) on our GitHub project.
|
||||||
|
|
||||||
|
## Reporting security issues
|
||||||
|
|
||||||
|
Check [Security](Security.md) to find out how to report security issues.
|
||||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
||||||
@ -4,7 +4,7 @@ To build Deskflow you will a minimum of:
|
|||||||
- [cmake] 3.24+
|
- [cmake] 3.24+
|
||||||
- [Qt] 6.7.0+
|
- [Qt] 6.7.0+
|
||||||
- [openssl] 3.0+
|
- [openssl] 3.0+
|
||||||
- [libportal] 0.8+ (linux, bsd)
|
- [libportal] 0.9.1+ (linux, bsd)
|
||||||
- [libei] 1.3+ (linux, bsd)
|
- [libei] 1.3+ (linux, bsd)
|
||||||
- [google_test] ^
|
- [google_test] ^
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
||||||
@ -16,5 +16,4 @@ target_sources(user-docs PRIVATE
|
|||||||
install(
|
install(
|
||||||
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
|
||||||
DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||||
COMPONENT deskflow_user_docs
|
|
||||||
)
|
)
|
||||||
@ -50,30 +50,37 @@ option=value
|
|||||||
This section contains options used when in client mode.
|
This section contains options used when in client mode.
|
||||||
It will begin with `[client]`
|
It will begin with `[client]`
|
||||||
|
|
||||||
|
| Option | Valid Values | Description |
|
||||||
| Option | Valid Values | Description |
|
|:------------------|:------------------:|:-----------|
|
||||||
|:----------------------|:------------------:|:-----------|
|
| languageSync | `true` or `false` | Sync to server language [default: true] |
|
||||||
| binary | Filename | The filename of the binary to call for client mode. This binary exists in the same path as the GUI |
|
| remoteHost | `IP` or `hostname` | The remote host(s) to connect to. Use a comma separated list when you want to try several hosts |
|
||||||
| invertScrollDirection | `true` or `false` | Invert scroll on this client [default: false] |
|
| yScrollScale | Double 0.1 - 10.0 | Vertical mouse scrolling will be scaled by this amount on the client [default: 1.0] |
|
||||||
| languageSync | `true` or `false` | Sync to server language [default: true] |
|
| xScrollScale | Double 0.1 - 10.0 | Horizontal mouse scrolling will be scaled by this amount on the client [default: 1.0] |
|
||||||
| remoteHost | `IP` or `hostname` | The remote host last connected to |
|
| invertYScroll | `true` or `false` | Invert vertical scroll on this client [default: false] |
|
||||||
| xdpRestoreToken | UUID | Restore token provided by XDG portals |
|
| invertXScroll | `true` or `false` | Invert horizontal scroll on this client [default: false] |
|
||||||
|
| xdpRestoreToken | UUID | Restore token provided by XDG portals |
|
||||||
|
|
||||||
### Core
|
### Core
|
||||||
|
|
||||||
This section contains general options it will begin with `[core]`
|
This section contains general options it will begin with `[core]`
|
||||||
|
|
||||||
|Option | Valid Values|Description|
|
|Option | Valid Values|Description|
|
||||||
|:--------------|:-----------:|:-----------|
|
|:--------------|:-----------:|:-----------|
|
||||||
| coreMode | `0` or `1` or `2` | The mode to start in 0: None, 1: Client, 2: Server [default: 0]|
|
| 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 |
|
| 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 |
|
| lastVersion | M.m.p.t | The version last run used for checking for updates |
|
||||||
| port | port # | Port to use when connecting [default: 24800 |
|
| port | port # | Port to use when connecting [default: 24800 |
|
||||||
| preventSleep | `true` or `false` | Prevent sleep when Deskflow is active [default: false] |
|
| 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 |
|
| processMode | `1` or `0` | The mode we use to start the process Service or Desktop |
|
||||||
| screenName | string | Name used to identify the screen [default: machine's hostname] |
|
| computerName | string | Name used to identify the computer [default: machine's hostname] |
|
||||||
| startedBefore | `true` or `false `| Have we started client or server before. Used in logic when deciding to show some dialogs.
|
| useHooks | `true` or `false` | If Windows uses hooks or not [default: true] |
|
||||||
| updateUrl | URL | The URL to use when checking for a new version number, it should return a version [default: https://api.deskflow.org/version]|
|
| language | 639 language | The language to display the GUI in [default: en] |
|
||||||
|
| wlClipboard | `true` or `false` | When true the wl-clipboard backend will be enabled [default: false] |
|
||||||
|
| enableEnterCommand | `true` or `false` | Should the enter command be triggered when the screen is entered [defaut: false] |
|
||||||
|
| enterCommand | command | A command to run when the screen is entered. |
|
||||||
|
| enableExitCommand | `true` or `false` | Should the exit command be triggered when the screen is exited [defaut: false] |
|
||||||
|
| exitCommand | command | A command to run when the screen is exited. |
|
||||||
|
|
||||||
### Daemon
|
### Daemon
|
||||||
|
|
||||||
@ -90,25 +97,32 @@ This section contains options used by the daemon on windows it will begin with `
|
|||||||
|
|
||||||
This section contains options used by the GUI it will begin with `[gui]`
|
This section contains options used by the GUI it will begin with `[gui]`
|
||||||
|
|
||||||
|Option | Valid Values |Description|
|
|Option | Valid Values |Description|
|
||||||
|:------------------|:-----------------:|:-----------|
|
|:-------------------------------|:-----------------:|:-----------|
|
||||||
| autoHide | `true` or `false` | When true the app will hide itself on start up [default: false] |
|
| 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] |
|
| 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]|
|
| 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]|
|
||||||
| logExpanded | `true` or `false` | Should the log section of the GUI be opened [default: false] |
|
| closeToTray | `true` or `false` | When `true` the gui will run in the systemTray when its closed [default: true] |
|
||||||
| symbolicTrayIcon | `true` or `false` | When true use the monocolor (symbolic) icon false uses a colorful icon for the tray |
|
| logExpanded | `true` or `false` | Should the log section of the GUI be opened [default: false] |
|
||||||
| windowGeometry | QRect | Geometry of the window used to restore the window geometry after exiting the app |
|
| 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
|
### Log
|
||||||
|
|
||||||
This section contains options used by the application logging it will begin with `[log]`
|
This section contains options used by the application logging it will begin with `[log]`
|
||||||
|
|
||||||
|Option | Valid Values |Description|
|
|Option | Valid Values |Description|
|
||||||
|:------|:-----------------:|:-----------|
|
|:---------|:-----------------:|:-----------|
|
||||||
| file | Filepath | The file to write the log into |
|
| file | Filepath | The file to write the log into |
|
||||||
| level | Valid log level | Log level to use |
|
| 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 |
|
| 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
|
### Security
|
||||||
|
|
||||||
@ -127,8 +141,6 @@ This section contains options used when in server mode it will begin with `[serv
|
|||||||
|
|
||||||
|Option | Valid Values |Description|
|
|Option | Valid Values |Description|
|
||||||
|:-------------------|:-----------------:|:-----------|
|
|:-------------------|:-----------------:|:-----------|
|
||||||
| binary | Filename | The name of the binary to call for client mode. This binary exists in same path as the Deskflow GUI |
|
|
||||||
| configVisible | `true` or `false` | Used internally to track when the severs has a configuration dialog showing.|
|
|
||||||
| externalConfig | `true` or `false` | When true use the external config path |
|
| 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.|
|
| externalConfigFile | Filepath | Path the server config file if it does not exist the GUI will it generated based on the `internalConfig` section.|
|
||||||
|
|
||||||
@ -141,6 +153,7 @@ block of a server config file as seen below. This section is used by the GUI to
|
|||||||
[internalConfig]
|
[internalConfig]
|
||||||
clipboardSharing=true
|
clipboardSharing=true
|
||||||
clipboardSharingSize=@Variant(\0\0\0\x84\0\0\0\0\0\0<\0)
|
clipboardSharingSize=@Variant(\0\0\0\x84\0\0\0\0\0\0<\0)
|
||||||
|
defaultLockToScreenState=false
|
||||||
disableLockToScreen=false
|
disableLockToScreen=false
|
||||||
hasHeartbeat=false
|
hasHeartbeat=false
|
||||||
hasSwitchDelay=false
|
hasSwitchDelay=false
|
||||||
@ -290,7 +303,7 @@ The file is parsed top to bottom and names cannot be used before they've been de
|
|||||||
|
|
||||||
### The screens section
|
### The screens section
|
||||||
|
|
||||||
''args'' is a list of screen 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 screen name for the server and each client. Each screen can specify a number of options. Options have the form name = value and are listed one per line after the screen name.
|
''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
|
section: screens
|
||||||
@ -303,29 +316,29 @@ section: screens
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
This declares three screens named ''moe'', ''larry'', and ''curly''. Screen ''larry'' has half-duplex ''Caps Lock'' and ''Num Lock'' keys (see below) and screen ''curly'' converts the ''Meta'' modifier key to the ''Alt'' modifier key.
|
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
|
#### screen options
|
||||||
|
|
||||||
A screen can have the following options:
|
A computer can have the following options:
|
||||||
|Option | Valid Values| Description|
|
|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 screens then you may need to set this option to true on the server screen. If it acts strangely on one screen then that screen may need the option set to true.|
|
|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 screens then you may need to set this option to true on the server screen. If it acts strangely on one screen then that screen 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 screens then you may need to set this option to true on the server screen. If it acts strangely on one screen then that screen 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''.|
|
|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 screens
|
|preserveFocus| `true` or `false` | When true don't drop focus when switching computers
|
||||||
|switchCorners| corners |See <a href="#switch-corners">switchCorners</a> below.|
|
|switchCorners| corners |See <a href="#switch-corners">switchCorners</a> below.|
|
||||||
|switchCornerSize | integer | see switchCornerSize 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 screen|
|
|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 screen|
|
|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 screen|
|
|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 screen|
|
|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 screen|
|
|super| shift ctrl alt meta super none | Map the server's super modifer to different key on a client computer|
|
||||||
|
|
||||||
### aliases section
|
### aliases section
|
||||||
|
|
||||||
''args'' is a list of screen names just like in the ''screens'' section except each screen is followed by a list of aliases, one per line, not followed by a colon. An ''alias'' is a screen name and must be unique. During screen name lookup each alias is equivalent to the screen name it aliases. So a client can connect using its canonical screen name or any of its aliases.
|
''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
|
section: aliases
|
||||||
@ -336,20 +349,20 @@ section: aliases
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Screen ''larry'' is also known as ''larry.stooges.com'' and can connect as either name. Screen ''curly'' is also known as ''shemp'' (hey, it's just an example).
|
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
|
### links secion
|
||||||
|
|
||||||
''args'' is a list of screen names just like in the ''screens'' section except each screen is followed by a list of links, one per line. Each link has the form:
|
''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>]
|
{left|right|up|down}[<range>] = name[<range>]
|
||||||
```
|
```
|
||||||
|
|
||||||
A link indicates which screen is adjacent in the given direction.
|
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 screen 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 screen must not overlap.
|
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.
|
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
|
section: links
|
||||||
@ -365,9 +378,9 @@ section: links
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
This indicates that screen ''larry'' is to the right of screen ''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''.
|
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 screen with no outgoing links; the cursor will get stuck on that screen unless you have a hot key configured to switch off of that screen.
|
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
|
### options section
|
||||||
|
|
||||||
@ -387,17 +400,17 @@ end
|
|||||||
|:--------|:-----------:|:-----------|
|
|:--------|:-----------:|:-----------|
|
||||||
|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 |
|
|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. |
|
|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 screens when the mouse reaches the edge of the screen 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.|
|
|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.|
|
|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 screens when the mouse reaches the edge of a screen unless it stays on the edge for `N` milliseconds. This helps prevent unintentional switching when working near the edge of a screen.|
|
|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 screens when the mouse reaches the edge of a screen 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 of a screen.|
|
|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 screen.|
|
|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 screens move the mouse using relative rather than absolute mouse moves when and only when the cursor is locked to the screen (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.|
|
|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.|
|
|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.|
|
|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. |
|
|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 is on the primary screen and secondary screens. Separate actions can be assigned to press and release.|
|
|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 primary screen. You cannot use these to perform an action while on the primary screen. 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.
|
You can use both the ''switchDelay'' and ''switchDoubleTap'' options at the same time. Deskflow will switch when either requirement is satisfied.
|
||||||
@ -406,16 +419,16 @@ You can use both the ''switchDelay'' and ''switchDoubleTap'' options at the same
|
|||||||
|
|
||||||
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:
|
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[,screens])`
|
* `keystroke(key[,computers])`
|
||||||
|
|
||||||
* `keyDown(key[,screens])`
|
* `keyDown(key[,computers])`
|
||||||
|
|
||||||
* `keyUp(key[,screens])`
|
* `keyUp(key[,computers])`
|
||||||
|
|
||||||
|
|
||||||
: Synthesizes the modifiers and key given in ''key'' which has the same form as described in the ''keystroke'' option. If given, ''screens'' lists the screen or screens to direct the event to, regardless of the active screen. If not given then the event is directed to the active screen only.
|
: 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.
|
: ''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.
|
||||||
: ''screens'' is either ''*'' (asterisk) to indicate all screens or a '':'' (colon) separated list of screen names. (Note that the screen name must have already been encountered in the configuration file so you'll probably want to put ''actions'' at the bottom of the file.)
|
: ''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)`
|
* `mousebutton(button)`
|
||||||
* `mouseDown(button)`
|
* `mouseDown(button)`
|
||||||
@ -424,16 +437,16 @@ Actions are two lists of individual actions separated by commas. The two lists a
|
|||||||
: ''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.
|
: ''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)`
|
* `lockCursorToScreen(mode)`
|
||||||
: Locks the cursor to or unlocks the cursor from the active screen. ''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.
|
: 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(screen)`
|
* `switchToScreen(computerName)`
|
||||||
: Jump to screen with name or alias ''screen''.
|
: Jump to computer with name or alias ''computerName''.
|
||||||
|
|
||||||
* `switchInDirection(dir)`
|
* `switchInDirection(dir)`
|
||||||
: Switch to the screen in the direction ''dir'', which may be one of ''left'', ''right'', ''up'' or ''down''.
|
: Switch to the computer in the direction ''dir'', which may be one of ''left'', ''right'', ''up'' or ''down''.
|
||||||
|
|
||||||
* `switchToNextScreen()`
|
* `switchToNextScreen()`
|
||||||
: Cycle to the next screen in the configuration order. If at the last screen, cycles back to the first screen.
|
: Cycle to the next computer in the configuration order. If at the last computer, cycles back to the first computer.
|
||||||
|
|
||||||
##### Keynames
|
##### Keynames
|
||||||
Valid key names are:
|
Valid key names are:
|
||||||
@ -627,7 +640,7 @@ section: links
|
|||||||
# iMac is to the right of Desktop1
|
# iMac is to the right of Desktop1
|
||||||
# Laptop is to the left of Desktop1
|
# Laptop is to the left of Desktop1
|
||||||
Desktop1:
|
Desktop1:
|
||||||
right(0,100) = iMac # the numbers in parentheses indicate the percentage of the screen's edge to be considered active for switching)
|
right(0,100) = iMac # the numbers in parentheses indicate the percentage of the computer's edge to be considered active for switching)
|
||||||
left = Laptop
|
left = Laptop
|
||||||
shift = shift (shift, alt, super, meta can be mapped to any of the others)
|
shift = shift (shift, alt, super, meta can be mapped to any of the others)
|
||||||
# Desktop1 is to the right of Laptop
|
# Desktop1 is to the right of Laptop
|
||||||
@ -648,7 +661,7 @@ end
|
|||||||
|
|
||||||
#### Cursor Wrapping
|
#### Cursor Wrapping
|
||||||
|
|
||||||
The text config allows screens 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.
|
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.
|
# Physical monitor arrangement, with machine names as used by Deskflow.
|
||||||
@ -670,7 +683,7 @@ section: links
|
|||||||
right = syn-serv # "wrapping"
|
right = syn-serv # "wrapping"
|
||||||
end
|
end
|
||||||
section: options
|
section: options
|
||||||
keystroke(control+super+right) = switchInDirection(right) # Switch screens on keypress
|
keystroke(control+super+right) = switchInDirection(right) # Switch computers on keypress
|
||||||
<!-- keystroke(control+super+left) = switchInDirection(left) -->
|
<!-- keystroke(control+super+left) = switchInDirection(left) -->
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -689,7 +702,7 @@ See also: the man page for ''deskflow-core''.
|
|||||||
|
|
||||||
### Stacked Example
|
### Stacked Example
|
||||||
|
|
||||||
Stack one computer's screen on top of another's.
|
Stack one computer on top of another's.
|
||||||
|
|
||||||
```
|
```
|
||||||
# +-------+
|
# +-------+
|
||||||
@ -733,7 +746,7 @@ end
|
|||||||
|
|
||||||
### Horizontal Example
|
### Horizontal Example
|
||||||
|
|
||||||
Align all screens horizontally.
|
Align all computers horizontally.
|
||||||
|
|
||||||
```
|
```
|
||||||
# +-------+ +-------+ +-------+
|
# +-------+ +-------+ +-------+
|
||||||
@ -767,7 +780,7 @@ end
|
|||||||
|
|
||||||
### Span Example
|
### Span Example
|
||||||
|
|
||||||
Span two screens on one computer across the screens of two computers.
|
Span one computer across the two other computers.
|
||||||
|
|
||||||
```
|
```
|
||||||
# +-------+ +-------+
|
# +-------+ +-------+
|
||||||
@ -1,10 +1,9 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
include_directories(./lib)
|
include_directories(./lib "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/lib)
|
|
||||||
|
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(apps)
|
add_subdirectory(apps)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
@ -28,6 +28,15 @@ function(generate_app_man TARGET NAME)
|
|||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
set(WIN32_PRE_EXCLUDE_REGEXES
|
||||||
|
"api-ms-win-.*"
|
||||||
|
"ext-ms-.*"
|
||||||
|
"^hvsifiletrust\\.dll$"
|
||||||
|
"^icu.*\\.dll$"
|
||||||
|
)
|
||||||
|
|
||||||
|
set(WIN32_POST_EXCLUDE_REGEXES ".*system32.*")
|
||||||
|
|
||||||
add_subdirectory(deskflow-core)
|
add_subdirectory(deskflow-core)
|
||||||
add_subdirectory(deskflow-daemon) #Only used on windows
|
add_subdirectory(deskflow-daemon) #Only used on windows
|
||||||
add_subdirectory(deskflow-gui)
|
add_subdirectory(deskflow-gui)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
set(target ${CMAKE_PROJECT_NAME}-core)
|
set(target ${CMAKE_PROJECT_NAME}-core)
|
||||||
@ -50,14 +50,13 @@ if(BUILD_OSX_BUNDLE)
|
|||||||
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
|
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
|
||||||
RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:${CMAKE_PROJECT_PROPER_NAME}>/MacOS
|
RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:${CMAKE_PROJECT_PROPER_NAME}>/MacOS
|
||||||
)
|
)
|
||||||
|
if (APPLE_CODESIGN_DEV)
|
||||||
|
configure_mac_codesign(${target})
|
||||||
|
endif()
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
install(RUNTIME_DEPENDENCY_SET coreDeps
|
install(RUNTIME_DEPENDENCY_SET coreDeps
|
||||||
PRE_EXCLUDE_REGEXES
|
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
|
||||||
"api-ms-win-.*"
|
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
|
||||||
"ext-ms-.*"
|
|
||||||
"^hvsifiletrust\\.dll$"
|
|
||||||
POST_EXCLUDE_REGEXES
|
|
||||||
".*system32.*"
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
#include "CoreArgParser.h"
|
#include "CoreArgParser.h"
|
||||||
#include "CoreArgs.h"
|
#include "CoreArgs.h"
|
||||||
#include "VersionInfo.h"
|
|
||||||
|
|
||||||
#include "common/Constants.h"
|
#include "common/Constants.h"
|
||||||
#include "common/ExitCodes.h"
|
#include "common/ExitCodes.h"
|
||||||
#include "common/Settings.h"
|
#include "common/Settings.h"
|
||||||
|
#include "common/VersionInfo.h"
|
||||||
#include "deskflow/ProtocolTypes.h"
|
#include "deskflow/ProtocolTypes.h"
|
||||||
|
|
||||||
const QString CoreArgParser::s_headerText = QStringLiteral("%1: %2\n").arg(kCoreBinName, kDisplayVersion);
|
const QString CoreArgParser::s_headerText = QStringLiteral("%1: %2\n").arg(kCoreBinName, kDisplayVersion);
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include "deskflow/ClientApp.h"
|
#include "deskflow/ClientApp.h"
|
||||||
#include "deskflow/ServerApp.h"
|
#include "deskflow/ServerApp.h"
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
#include "arch/win32/ArchMiscWindows.h"
|
#include "arch/win32/ArchMiscWindows.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#endif
|
#endif
|
||||||
@ -32,7 +32,7 @@ void showHelp(const CoreArgParser &parser)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// HACK to make sure settings gets the correct qApp path
|
// HACK to make sure settings gets the correct qApp path
|
||||||
QCoreApplication m(argc, argv);
|
QCoreApplication m(argc, argv);
|
||||||
m.deleteLater();
|
m.deleteLater();
|
||||||
@ -66,22 +66,19 @@ int main(int argc, char **argv)
|
|||||||
return s_exitSuccess;
|
return s_exitSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parser.singleInstanceOnly()) {
|
// Before we check any more args we need to check for a duplicate process.
|
||||||
// Before we check any more args we need to check for a duplicate process.
|
// Create a shared memory segment with a unique key
|
||||||
// Create a shared memory segment with a unique key
|
// This is to prevent a new instance from running if one is already running
|
||||||
// This is to prevent a new instance from running if one is already running
|
QSharedMemory sharedMemory(kCoreBinName);
|
||||||
QSharedMemory sharedMemory(kCoreBinName);
|
|
||||||
|
|
||||||
// Attempt to attach first and detach in order to clean up stale shm chunks
|
// Attempt to attach first and detach in order to clean up stale shm chunks
|
||||||
// This can happen if the previous instance was killed or crashed
|
// This can happen if the previous instance was killed or crashed
|
||||||
if (sharedMemory.attach())
|
if (sharedMemory.attach())
|
||||||
sharedMemory.detach();
|
sharedMemory.detach();
|
||||||
|
|
||||||
// If we can create 1 byte of SHM we are the only instance
|
if (!sharedMemory.create(1) && parser.singleInstanceOnly()) {
|
||||||
if (!sharedMemory.create(1)) {
|
LOG_WARN("an instance of deskflow core is already running");
|
||||||
LOG_WARN("an instance of deskflow core is already running");
|
return s_exitDuplicate;
|
||||||
return s_exitDuplicate;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parser.parse();
|
parser.parse();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# Daemon is only needed on Windows for elevating processes to deal with UAC.
|
# Daemon is only needed on Windows for elevating processes to deal with UAC.
|
||||||
@ -12,7 +12,12 @@ if(WIN32)
|
|||||||
set(EXE_ICON "IDI_DESKFLOW ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\"")
|
set(EXE_ICON "IDI_DESKFLOW ICON DISCARDABLE \"${CMAKE_SOURCE_DIR}/src/apps/res/deskflow.ico\"")
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in ${target}.rc)
|
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/windows.rc.in ${target}.rc)
|
||||||
|
|
||||||
add_executable(${target} WIN32 ${target}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${target}.rc)
|
add_executable(
|
||||||
|
${target} WIN32
|
||||||
|
${target}.cpp
|
||||||
|
DaemonApp.cpp
|
||||||
|
DaemonApp.h
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/${target}.rc)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${target}
|
${target}
|
||||||
@ -29,16 +34,12 @@ if(WIN32)
|
|||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS ${target}
|
TARGETS ${target}
|
||||||
RUNTIME_DEPENDENCY_SET deamonDeps
|
RUNTIME_DEPENDENCY_SET daemonDeps
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
)
|
)
|
||||||
install(RUNTIME_DEPENDENCY_SET daemonDeps
|
install(RUNTIME_DEPENDENCY_SET daemonDeps
|
||||||
PRE_EXCLUDE_REGEXES
|
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
|
||||||
"api-ms-win-.*"
|
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
|
||||||
"ext-ms-.*"
|
|
||||||
"^hvsifiletrust\\.dll$"
|
|
||||||
POST_EXCLUDE_REGEXES
|
|
||||||
".*system32.*"
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2025 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2025 Symless Ltd.
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deskflow/DaemonApp.h"
|
#include "DaemonApp.h"
|
||||||
|
|
||||||
#include "arch/Arch.h"
|
#include "arch/Arch.h"
|
||||||
#include "base/IEventQueue.h"
|
#include "base/IEventQueue.h"
|
||||||
@ -12,12 +13,10 @@
|
|||||||
#include "base/LogOutputters.h"
|
#include "base/LogOutputters.h"
|
||||||
#include "common/ExitCodes.h"
|
#include "common/ExitCodes.h"
|
||||||
#include "common/Settings.h"
|
#include "common/Settings.h"
|
||||||
#include "deskflow/App.h"
|
|
||||||
#include "deskflow/ipc/DaemonIpcServer.h"
|
#include "deskflow/ipc/DaemonIpcServer.h"
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
|
#include "arch/win32/ArchDaemonWindows.h"
|
||||||
#include "arch/win32/ArchMiscWindows.h" // IWYU pragma: keep
|
|
||||||
#include "deskflow/Screen.h"
|
#include "deskflow/Screen.h"
|
||||||
#include "platform/MSWindowsDebugOutputter.h"
|
#include "platform/MSWindowsDebugOutputter.h"
|
||||||
#include "platform/MSWindowsEventQueueBuffer.h"
|
#include "platform/MSWindowsEventQueueBuffer.h"
|
||||||
@ -28,18 +27,10 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <filesystem>
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using namespace deskflow::core;
|
using namespace deskflow::core;
|
||||||
|
|
||||||
void showHelp(int argc, char **argv) // NOSONAR - CLI args
|
|
||||||
{
|
|
||||||
const auto binName = argc > 0 ? std::filesystem::path(argv[0]).filename().string() : kDaemonBinName;
|
|
||||||
std::cout << "Usage: " << binName << " [-f|--foreground] [--install] [--uninstall]" << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
DaemonApp::DaemonApp(IEventQueue &events) : m_events(events)
|
DaemonApp::DaemonApp(IEventQueue &events) : m_events(events)
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
@ -72,7 +63,7 @@ void DaemonApp::applyWatchdogCommand() const
|
|||||||
{
|
{
|
||||||
LOG_DEBUG("applying watchdog command");
|
LOG_DEBUG("applying watchdog command");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
m_pWatchdog->setProcessConfig(m_command, m_elevate);
|
m_pWatchdog->setProcessConfig(m_command, m_elevate);
|
||||||
#else
|
#else
|
||||||
LOG_ERR("applying watchdog command not implemented on this platform");
|
LOG_ERR("applying watchdog command not implemented on this platform");
|
||||||
@ -86,7 +77,7 @@ void DaemonApp::clearWatchdogCommand()
|
|||||||
// Clear the setting to prevent it from being next time the daemon starts.
|
// Clear the setting to prevent it from being next time the daemon starts.
|
||||||
setCommand("");
|
setCommand("");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
m_pWatchdog->setProcessConfig("", false);
|
m_pWatchdog->setProcessConfig("", false);
|
||||||
#else
|
#else
|
||||||
LOG_ERR("clearing watchdog command not implemented on this platform");
|
LOG_ERR("clearing watchdog command not implemented on this platform");
|
||||||
@ -96,10 +87,10 @@ void DaemonApp::clearWatchdogCommand()
|
|||||||
void DaemonApp::clearSettings() const
|
void DaemonApp::clearSettings() const
|
||||||
{
|
{
|
||||||
LOG_INFO("clearing daemon settings");
|
LOG_INFO("clearing daemon settings");
|
||||||
Settings::setValue(Settings::Daemon::Command, QVariant());
|
Settings::setValue(Settings::Daemon::Command);
|
||||||
Settings::setValue(Settings::Daemon::Elevate, QVariant());
|
Settings::setValue(Settings::Daemon::Elevate);
|
||||||
Settings::setValue(Settings::Daemon::LogFile, QVariant());
|
Settings::setValue(Settings::Daemon::LogFile);
|
||||||
Settings::setValue(Settings::Daemon::LogLevel, QVariant());
|
Settings::setValue(Settings::Daemon::LogLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DaemonApp::connectIpcServer(const ipc::DaemonIpcServer *ipcServer) const
|
void DaemonApp::connectIpcServer(const ipc::DaemonIpcServer *ipcServer) const
|
||||||
@ -145,7 +136,7 @@ void DaemonApp::run(QThread &daemonThread)
|
|||||||
LOG_DEBUG("daemon thread finished");
|
LOG_DEBUG("daemon thread finished");
|
||||||
});
|
});
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
m_pWatchdog = std::make_unique<MSWindowsWatchdog>(m_foreground, *m_pFileLogOutputter);
|
m_pWatchdog = std::make_unique<MSWindowsWatchdog>(m_foreground, *m_pFileLogOutputter);
|
||||||
|
|
||||||
auto command = Settings::value(Settings::Daemon::Command).toString().toStdString();
|
auto command = Settings::value(Settings::Daemon::Command).toString().toStdString();
|
||||||
@ -162,27 +153,26 @@ void DaemonApp::run(QThread &daemonThread)
|
|||||||
|
|
||||||
int DaemonApp::daemonLoop()
|
int DaemonApp::daemonLoop()
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// Runs the daemon through the Windows service controller, which controls the program lifecycle.
|
// Runs the daemon through the Windows service controller, which controls the program lifecycle.
|
||||||
return ArchMiscWindows::runDaemon([this]() { return mainLoop(); });
|
return ArchDaemonWindows::runDaemon([this]() { return mainLoop(); });
|
||||||
#elif SYSAPI_UNIX
|
#else
|
||||||
return mainLoop();
|
return mainLoop();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int DaemonApp::mainLoop()
|
int DaemonApp::mainLoop()
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
if (m_pWatchdog == nullptr) {
|
if (m_pWatchdog == nullptr) {
|
||||||
LOG_ERR("watchdog not initialized");
|
LOG_ERR("watchdog not initialized");
|
||||||
return s_exitFailed;
|
return s_exitFailed;
|
||||||
}
|
}
|
||||||
|
ArchDaemonWindows::daemonRunning(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DAEMON_RUNNING(true);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// Install the platform event queue to handle service stop events.
|
// Install the platform event queue to handle service stop events.
|
||||||
// This must be done on the same thread as the event loop, otherwise the service stop
|
// This must be done on the same thread as the event loop, otherwise the service stop
|
||||||
// request will not add the quit event to the event queue, and the service won't stop.
|
// request will not add the quit event to the event queue, and the service won't stop.
|
||||||
@ -202,7 +192,7 @@ int DaemonApp::mainLoop()
|
|||||||
|
|
||||||
LOG_INFO("daemon is stopping");
|
LOG_INFO("daemon is stopping");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
try {
|
try {
|
||||||
LOG_DEBUG("stopping process watchdog");
|
LOG_DEBUG("stopping process watchdog");
|
||||||
m_pWatchdog->stop();
|
m_pWatchdog->stop();
|
||||||
@ -211,9 +201,9 @@ int DaemonApp::mainLoop()
|
|||||||
} catch (...) { // NOSONAR - Catching remaining exceptions
|
} catch (...) { // NOSONAR - Catching remaining exceptions
|
||||||
LOG_CRIT("daemon stop watchdog unknown error");
|
LOG_CRIT("daemon stop watchdog unknown error");
|
||||||
}
|
}
|
||||||
|
ArchDaemonWindows::daemonRunning(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DAEMON_RUNNING(false);
|
|
||||||
return s_exitSuccess;
|
return s_exitSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -230,7 +220,7 @@ void DaemonApp::setForeground()
|
|||||||
|
|
||||||
void DaemonApp::initLogging()
|
void DaemonApp::initLogging()
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
if (!m_foreground) {
|
if (!m_foreground) {
|
||||||
// Only use MS debug outputter when the process is daemonized, since stdout won't be accessible
|
// Only use MS debug outputter when the process is daemonized, since stdout won't be accessible
|
||||||
// in that case, but is accessible when running in the foreground.
|
// in that case, but is accessible when running in the foreground.
|
||||||
@ -244,7 +234,7 @@ void DaemonApp::initLogging()
|
|||||||
|
|
||||||
void DaemonApp::showConsole()
|
void DaemonApp::showConsole()
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// The daemon bin is compiled using the Win32 subsystem which works best for Windows services,
|
// The daemon bin is compiled using the Win32 subsystem which works best for Windows services,
|
||||||
// so when running as a foreground process we need to allocate a console (or we won't see output).
|
// so when running as a foreground process we need to allocate a console (or we won't see output).
|
||||||
// It is important to do this inside the arg check loop so that we can attach console ahead
|
// It is important to do this inside the arg check loop so that we can attach console ahead
|
||||||
@ -21,7 +21,7 @@ namespace deskflow::core::ipc {
|
|||||||
class DaemonIpcServer;
|
class DaemonIpcServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
class MSWindowsWatchdog;
|
class MSWindowsWatchdog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -32,20 +32,9 @@ class DaemonApp : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class InitResult
|
|
||||||
{
|
|
||||||
Installed,
|
|
||||||
Uninstalled,
|
|
||||||
StartDaemon,
|
|
||||||
ShowHelp,
|
|
||||||
ArgsError,
|
|
||||||
FatalError,
|
|
||||||
};
|
|
||||||
|
|
||||||
explicit DaemonApp(IEventQueue &events);
|
explicit DaemonApp(IEventQueue &events);
|
||||||
~DaemonApp() override;
|
~DaemonApp() override;
|
||||||
|
|
||||||
InitResult init(int argc, char **argv);
|
|
||||||
void run(QThread &daemonThread);
|
void run(QThread &daemonThread);
|
||||||
void setForeground();
|
void setForeground();
|
||||||
void initLogging();
|
void initLogging();
|
||||||
@ -67,7 +56,7 @@ private:
|
|||||||
|
|
||||||
static void showConsole();
|
static void showConsole();
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
std::unique_ptr<MSWindowsWatchdog> m_pWatchdog;
|
std::unique_ptr<MSWindowsWatchdog> m_pWatchdog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -5,22 +5,21 @@
|
|||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "VersionInfo.h"
|
#include "DaemonApp.h"
|
||||||
|
|
||||||
#include "arch/Arch.h"
|
#include "arch/Arch.h"
|
||||||
#include "base/EventQueue.h"
|
#include "base/EventQueue.h"
|
||||||
#include "base/Log.h"
|
#include "base/Log.h"
|
||||||
#include "common/ExitCodes.h"
|
#include "common/ExitCodes.h"
|
||||||
#include "common/Settings.h"
|
#include "common/Settings.h"
|
||||||
#include "deskflow/DaemonApp.h"
|
#include "common/VersionInfo.h"
|
||||||
#include "deskflow/ipc/DaemonIpcServer.h"
|
#include "deskflow/ipc/DaemonIpcServer.h"
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
|
|
||||||
#include "arch/win32/ArchMiscWindows.h"
|
#include "arch/win32/ArchMiscWindows.h"
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
@ -33,7 +32,7 @@ void handleError(const char *message = "Unrecognized error.");
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
ArchMiscWindows::guardRuntimeVersion();
|
ArchMiscWindows::guardRuntimeVersion();
|
||||||
|
|
||||||
// Save window instance for later use, e.g. `GetModuleFileName` which is used when installing the daemon.
|
// Save window instance for later use, e.g. `GetModuleFileName` which is used when installing the daemon.
|
||||||
@ -84,7 +83,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// Show warning if not running as admin as daemon will behave differently.
|
// Show warning if not running as admin as daemon will behave differently.
|
||||||
if (!ArchMiscWindows::isProcessElevated()) {
|
if (!ArchMiscWindows::isProcessElevated()) {
|
||||||
LOG_WARN("not running as admin, some features may not work");
|
LOG_WARN("not running as admin, some features may not work");
|
||||||
@ -114,8 +113,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
|
|
||||||
// Win32 subsystem entry point (simply forwards to main).
|
// Win32 subsystem entry point (simply forwards to main).
|
||||||
// We need this because using regular main under the Win32 subsystem results in empty args.
|
// We need this because using regular main under the Win32 subsystem results in empty args.
|
||||||
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
||||||
@ -130,7 +128,7 @@ void handleError(const char *message)
|
|||||||
// Always print error to stdout in case run as CLI program.
|
// Always print error to stdout in case run as CLI program.
|
||||||
LOG_ERR("%s", message);
|
LOG_ERR("%s", message);
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
// Show a message box for when run from MSI in Win32 subsystem.
|
// Show a message box for when run from MSI in Win32 subsystem.
|
||||||
MessageBoxA(nullptr, message, "Deskflow daemon error", MB_OK | MB_ICONERROR);
|
MessageBoxA(nullptr, message, "Deskflow daemon error", MB_OK | MB_ICONERROR);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2024 Symless Ltd
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
@ -60,12 +60,8 @@ if(WIN32)
|
|||||||
set_target_properties(${target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
set_target_properties(${target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
||||||
|
|
||||||
install(RUNTIME_DEPENDENCY_SET guiDeps
|
install(RUNTIME_DEPENDENCY_SET guiDeps
|
||||||
PRE_EXCLUDE_REGEXES
|
PRE_EXCLUDE_REGEXES ${WIN32_PRE_EXCLUDE_REGEXES}
|
||||||
"api-ms-win-.*"
|
POST_EXCLUDE_REGEXES ${WIN32_POST_EXCLUDE_REGEXES}
|
||||||
"ext-ms-.*"
|
|
||||||
"^hvsifiletrust\\.dll$"
|
|
||||||
POST_EXCLUDE_REGEXES
|
|
||||||
".*system32.*"
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -90,6 +86,7 @@ if(WIN32)
|
|||||||
DIRECTORY ${QT_DEPENDS_DIR}/
|
DIRECTORY ${QT_DEPENDS_DIR}/
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
PATTERN "dx*.dll" EXCLUDE
|
PATTERN "dx*.dll" EXCLUDE
|
||||||
|
PATTERN "icu*.dll" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
@ -98,32 +95,8 @@ elseif(APPLE)
|
|||||||
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
|
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
|
||||||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/deskflow.plist"
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/deskflow.plist"
|
||||||
)
|
)
|
||||||
|
if (APPLE_CODESIGN_DEV)
|
||||||
# Warning: Do not use for CI/production, as the `entitlements-dev.plist` file adds special
|
configure_mac_codesign(${target})
|
||||||
# entitlements that are only appropriate for local development.
|
|
||||||
#
|
|
||||||
# macOS made TCC stricter so that if you don't sign your local dev builds properly, macOS will
|
|
||||||
# nag you to remove and re-approve the app every time you make a change to the binary which is
|
|
||||||
# extremely annoying during development.
|
|
||||||
#
|
|
||||||
# If you were to use ad-hoc signing (i.e. not specify a certificate), TCC would still nag you
|
|
||||||
# because the binary identity is anchored not on the app ID, but on the CD hash (which changes
|
|
||||||
# based on the binary contents).
|
|
||||||
#
|
|
||||||
# To use, simply generate a personal certificate for free with Xcode and pass the ID to CMake.
|
|
||||||
# Full instructions are in the docs.
|
|
||||||
if (NOT "${APPLE_CODESIGN_DEV}" STREQUAL "")
|
|
||||||
message(STATUS "Apple codesign ID for development only: ${APPLE_CODESIGN_DEV}")
|
|
||||||
add_custom_command(
|
|
||||||
TARGET ${target} POST_BUILD
|
|
||||||
COMMAND /usr/bin/codesign
|
|
||||||
--force
|
|
||||||
--options runtime
|
|
||||||
--entitlements "$<SHELL_PATH:${CMAKE_SOURCE_DIR}/src/apps/res/entitlements-dev.plist>"
|
|
||||||
--sign "${APPLE_CODESIGN_DEV}"
|
|
||||||
"$<TARGET_BUNDLE_DIR:${target}>"
|
|
||||||
VERBATIM
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set_target_properties(${target} PROPERTIES MACOSX_BUNDLE FALSE)
|
set_target_properties(${target} PROPERTIES MACOSX_BUNDLE FALSE)
|
||||||
|
|||||||
@ -6,12 +6,12 @@
|
|||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "VersionInfo.h"
|
|
||||||
#include "common/Constants.h"
|
#include "common/Constants.h"
|
||||||
#include "common/ExitCodes.h"
|
#include "common/ExitCodes.h"
|
||||||
#include "common/I18N.h"
|
#include "common/I18N.h"
|
||||||
#include "common/PlatformInfo.h"
|
#include "common/PlatformInfo.h"
|
||||||
#include "common/UrlConstants.h"
|
#include "common/UrlConstants.h"
|
||||||
|
#include "common/VersionInfo.h"
|
||||||
#include "gui/Diagnostic.h"
|
#include "gui/Diagnostic.h"
|
||||||
#include "gui/MainWindow.h"
|
#include "gui/MainWindow.h"
|
||||||
#include "gui/Messages.h"
|
#include "gui/Messages.h"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WINAPI_XWINDOWS) or defined(WINAPI_LIBEI)
|
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
|
||||||
#include "platform/XDGPortalRegistry.h"
|
#include "platform/XDGPortalRegistry.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
QLoggingCategory::setFilterRules(QStringLiteral("*.debug=true\nqt.*=false"));
|
QLoggingCategory::setFilterRules(QStringLiteral("*.debug=true\nqt.*=false"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WINAPI_XWINDOWS) or defined(WINAPI_LIBEI)
|
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
|
||||||
deskflow::platform::setAppId();
|
deskflow::platform::setAppId();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -30,8 +30,12 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>@BUNDLE_COPYRIGHT@</string>
|
<string>@BUNDLE_COPYRIGHT@</string>
|
||||||
|
<key>LSApplicationCategoryType</key>
|
||||||
|
<string>public.app-category.utilities</string>
|
||||||
|
|
||||||
<!-- Don't Allow Os to kill for memory -->
|
<!-- Prevent macOS from terminating during memory pressure -->
|
||||||
|
<key>NSSupportsAutomaticTermination</key>
|
||||||
|
<false/>
|
||||||
<key>NSSupportsSuddenTermination</key>
|
<key>NSSupportsSuddenTermination</key>
|
||||||
<false/>
|
<false/>
|
||||||
|
|
||||||
|
|||||||
@ -5,11 +5,14 @@
|
|||||||
<file>icons/deskflow-dark/actions/16/document-edit.svg</file>
|
<file>icons/deskflow-dark/actions/16/document-edit.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/document-open.svg</file>
|
<file>icons/deskflow-dark/actions/16/document-open.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/document-save-as.svg</file>
|
<file>icons/deskflow-dark/actions/16/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/16/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/16/go-up.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/help-about.svg</file>
|
<file>icons/deskflow-dark/actions/16/help-about.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/network-connect.svg</file>
|
<file>icons/deskflow-dark/actions/16/network-connect.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/network-disconnect.svg</file>
|
<file>icons/deskflow-dark/actions/16/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/process-stop.svg</file>
|
<file>icons/deskflow-dark/actions/16/process-stop.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/system-run.svg</file>
|
<file>icons/deskflow-dark/actions/16/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/16/system-search.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/tools-report-bug.svg</file>
|
<file>icons/deskflow-dark/actions/16/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/view-close.svg</file>
|
<file>icons/deskflow-dark/actions/16/view-close.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/16/view-refresh.svg</file>
|
<file>icons/deskflow-dark/actions/16/view-refresh.svg</file>
|
||||||
@ -21,11 +24,14 @@
|
|||||||
<file>icons/deskflow-dark/actions/22/document-open.svg</file>
|
<file>icons/deskflow-dark/actions/22/document-open.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/document-save-as.svg</file>
|
<file>icons/deskflow-dark/actions/22/document-save-as.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/fingerprint.svg</file>
|
<file>icons/deskflow-dark/actions/22/fingerprint.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/22/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/22/go-up.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/help-about.svg</file>
|
<file>icons/deskflow-dark/actions/22/help-about.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/network-connect.svg</file>
|
<file>icons/deskflow-dark/actions/22/network-connect.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/network-disconnect.svg</file>
|
<file>icons/deskflow-dark/actions/22/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/process-stop.svg</file>
|
<file>icons/deskflow-dark/actions/22/process-stop.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/system-run.svg</file>
|
<file>icons/deskflow-dark/actions/22/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/22/system-search.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/tools-report-bug.svg</file>
|
<file>icons/deskflow-dark/actions/22/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/view-close.svg</file>
|
<file>icons/deskflow-dark/actions/22/view-close.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/22/view-refresh.svg</file>
|
<file>icons/deskflow-dark/actions/22/view-refresh.svg</file>
|
||||||
@ -36,6 +42,8 @@
|
|||||||
<file>icons/deskflow-dark/actions/24/document-edit.svg</file>
|
<file>icons/deskflow-dark/actions/24/document-edit.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/document-open.svg</file>
|
<file>icons/deskflow-dark/actions/24/document-open.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/document-save-as.svg</file>
|
<file>icons/deskflow-dark/actions/24/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/24/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/24/go-up.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/edit-clear-all.svg</file>
|
<file>icons/deskflow-dark/actions/24/edit-clear-all.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/fingerprint.svg</file>
|
<file>icons/deskflow-dark/actions/24/fingerprint.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/help-about.svg</file>
|
<file>icons/deskflow-dark/actions/24/help-about.svg</file>
|
||||||
@ -43,6 +51,7 @@
|
|||||||
<file>icons/deskflow-dark/actions/24/network-disconnect.svg</file>
|
<file>icons/deskflow-dark/actions/24/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/process-stop.svg</file>
|
<file>icons/deskflow-dark/actions/24/process-stop.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/system-run.svg</file>
|
<file>icons/deskflow-dark/actions/24/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/24/system-search.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/tools-report-bug.svg</file>
|
<file>icons/deskflow-dark/actions/24/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/view-close.svg</file>
|
<file>icons/deskflow-dark/actions/24/view-close.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/24/view-refresh.svg</file>
|
<file>icons/deskflow-dark/actions/24/view-refresh.svg</file>
|
||||||
@ -55,8 +64,11 @@
|
|||||||
<file>icons/deskflow-dark/actions/32/dialog-ok-apply.svg</file>
|
<file>icons/deskflow-dark/actions/32/dialog-ok-apply.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/32/document-open.svg</file>
|
<file>icons/deskflow-dark/actions/32/document-open.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/32/document-save-as.svg</file>
|
<file>icons/deskflow-dark/actions/32/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/32/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/32/go-up.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/32/help-about.svg</file>
|
<file>icons/deskflow-dark/actions/32/help-about.svg</file>
|
||||||
<file>icons/deskflow-dark/actions/32/view-refresh.svg</file>
|
<file>icons/deskflow-dark/actions/32/view-refresh.svg</file>
|
||||||
|
<file>icons/deskflow-dark/actions/32/system-search.svg</file>
|
||||||
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow.svg</file>
|
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow.svg</file>
|
||||||
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow-symbolic.svg</file>
|
<file>icons/deskflow-dark/apps/64/org.deskflow.deskflow-symbolic.svg</file>
|
||||||
<file>icons/deskflow-dark/devices/64/video-display.svg</file>
|
<file>icons/deskflow-dark/devices/64/video-display.svg</file>
|
||||||
@ -77,11 +89,14 @@
|
|||||||
<file>icons/deskflow-light/actions/16/document-edit.svg</file>
|
<file>icons/deskflow-light/actions/16/document-edit.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/document-open.svg</file>
|
<file>icons/deskflow-light/actions/16/document-open.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/document-save-as.svg</file>
|
<file>icons/deskflow-light/actions/16/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/16/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/16/go-up.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/help-about.svg</file>
|
<file>icons/deskflow-light/actions/16/help-about.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/network-connect.svg</file>
|
<file>icons/deskflow-light/actions/16/network-connect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/network-disconnect.svg</file>
|
<file>icons/deskflow-light/actions/16/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/process-stop.svg</file>
|
<file>icons/deskflow-light/actions/16/process-stop.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/system-run.svg</file>
|
<file>icons/deskflow-light/actions/16/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/16/system-search.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/tools-report-bug.svg</file>
|
<file>icons/deskflow-light/actions/16/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/view-close.svg</file>
|
<file>icons/deskflow-light/actions/16/view-close.svg</file>
|
||||||
<file>icons/deskflow-light/actions/16/view-refresh.svg</file>
|
<file>icons/deskflow-light/actions/16/view-refresh.svg</file>
|
||||||
@ -94,11 +109,14 @@
|
|||||||
<file>icons/deskflow-light/actions/22/document-open.svg</file>
|
<file>icons/deskflow-light/actions/22/document-open.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/document-save-as.svg</file>
|
<file>icons/deskflow-light/actions/22/document-save-as.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/fingerprint.svg</file>
|
<file>icons/deskflow-light/actions/22/fingerprint.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/22/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/22/go-up.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/network-connect.svg</file>
|
<file>icons/deskflow-light/actions/22/network-connect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/network-disconnect.svg</file>
|
<file>icons/deskflow-light/actions/22/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/help-about.svg</file>
|
<file>icons/deskflow-light/actions/22/help-about.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/process-stop.svg</file>
|
<file>icons/deskflow-light/actions/22/process-stop.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/system-run.svg</file>
|
<file>icons/deskflow-light/actions/22/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/22/system-search.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/tools-report-bug.svg</file>
|
<file>icons/deskflow-light/actions/22/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/view-close.svg</file>
|
<file>icons/deskflow-light/actions/22/view-close.svg</file>
|
||||||
<file>icons/deskflow-light/actions/22/view-refresh.svg</file>
|
<file>icons/deskflow-light/actions/22/view-refresh.svg</file>
|
||||||
@ -111,11 +129,14 @@
|
|||||||
<file>icons/deskflow-light/actions/24/document-edit.svg</file>
|
<file>icons/deskflow-light/actions/24/document-edit.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/document-open.svg</file>
|
<file>icons/deskflow-light/actions/24/document-open.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/document-save-as.svg</file>
|
<file>icons/deskflow-light/actions/24/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/24/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/24/go-up.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/help-about.svg</file>
|
<file>icons/deskflow-light/actions/24/help-about.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/network-connect.svg</file>
|
<file>icons/deskflow-light/actions/24/network-connect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/network-disconnect.svg</file>
|
<file>icons/deskflow-light/actions/24/network-disconnect.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/process-stop.svg</file>
|
<file>icons/deskflow-light/actions/24/process-stop.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/system-run.svg</file>
|
<file>icons/deskflow-light/actions/24/system-run.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/24/system-search.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/tools-report-bug.svg</file>
|
<file>icons/deskflow-light/actions/24/tools-report-bug.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/view-close.svg</file>
|
<file>icons/deskflow-light/actions/24/view-close.svg</file>
|
||||||
<file>icons/deskflow-light/actions/24/view-refresh.svg</file>
|
<file>icons/deskflow-light/actions/24/view-refresh.svg</file>
|
||||||
@ -128,8 +149,11 @@
|
|||||||
<file>icons/deskflow-light/actions/32/dialog-ok-apply.svg</file>
|
<file>icons/deskflow-light/actions/32/dialog-ok-apply.svg</file>
|
||||||
<file>icons/deskflow-light/actions/32/document-open.svg</file>
|
<file>icons/deskflow-light/actions/32/document-open.svg</file>
|
||||||
<file>icons/deskflow-light/actions/32/document-save-as.svg</file>
|
<file>icons/deskflow-light/actions/32/document-save-as.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/32/go-down.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/32/go-up.svg</file>
|
||||||
<file>icons/deskflow-light/actions/32/help-about.svg</file>
|
<file>icons/deskflow-light/actions/32/help-about.svg</file>
|
||||||
<file>icons/deskflow-light/actions/32/view-refresh.svg</file>
|
<file>icons/deskflow-light/actions/32/view-refresh.svg</file>
|
||||||
|
<file>icons/deskflow-light/actions/32/system-search.svg</file>
|
||||||
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow.svg</file>
|
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow.svg</file>
|
||||||
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow-symbolic.svg</file>
|
<file>icons/deskflow-light/apps/64/org.deskflow.deskflow-symbolic.svg</file>
|
||||||
<file>icons/deskflow-light/devices/64/video-display.svg</file>
|
<file>icons/deskflow-light/devices/64/video-display.svg</file>
|
||||||
|
|||||||
5
src/apps/res/icons/deskflow-dark/actions/16/go-down.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<path d="M8 11.707l-6-6L2.707 5 8 10.293 13.293 5l.707.707-6 6z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 323 B |
5
src/apps/res/icons/deskflow-dark/actions/16/go-up.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<path d="M8 4.293l-6 6 .707.707L8 5.707 13.293 11l.707-.707-6-6z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 324 B |
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
</defs>
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 6.5 2 C 4.007 2 2 4.01 2 6.5 C 2 8.993 4.01 11 6.5 11 C 7.5636432 11 8.5263409 10.618801 9.2949219 10.005859 L 13.292969 14.003906 L 14 13.296875 L 10.001953 9.2988281 C 10.617604 8.529048 11 7.565338 11 6.5 C 11 4.007 8.99 2 6.5 2 z M 6.5 3 C 8.439 3 10 4.561 10 6.5 C 10 8.439 8.439 10 6.5 10 C 4.561 10 3 8.439 3 6.5 C 3 4.561 4.561 3 6.5 3 z " class="ColorScheme-Text"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 680 B |
7
src/apps/res/icons/deskflow-dark/actions/22/go-down.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
</defs>
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125" class="ColorScheme-Text"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 485 B |
5
src/apps/res/icons/deskflow-dark/actions/22/go-up.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 382 B |
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
</defs>
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z " class="ColorScheme-Text"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 710 B |
9
src/apps/res/icons/deskflow-dark/actions/24/go-down.svg
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
</defs>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125" class="ColorScheme-Text"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 549 B |
7
src/apps/res/icons/deskflow-dark/actions/24/go-up.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 443 B |
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
</defs>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z " class="ColorScheme-Text"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 774 B |
5
src/apps/res/icons/deskflow-dark/actions/32/go-down.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<path d="M16 23.707l-14-14L2.707 9 16 22.293 29.293 9l.707.707z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 323 B |
5
src/apps/res/icons/deskflow-dark/actions/32/go-up.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<path d="M16 8.293l-14 14 .707.707L16 9.707 29.293 23l.707-.707z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 324 B |
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" width="32" height="32">
|
||||||
|
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
|
||||||
|
<g id="system-search" transform="translate(0 -32) translate(-22,32)">
|
||||||
|
<path id="path66" class="ColorScheme-Text" d="m35 4a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 5.994141-2.298828l8.298828 8.298828 0.707031-0.707031-8.300781-8.300782a9 9 0 0 0 2.300781-5.992187 9 9 0 0 0-9-9zm0 1a8 8 0 0 1 8 8 8 8 0 0 1-8 8 8 8 0 0 1-8-8 8 8 0 0 1 8-8z" fill="currentColor"/>
|
||||||
|
<path id="path68" d="m22 0v32h32v-32z" fill="none"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 965 B |
10
src/apps/res/icons/deskflow-light/actions/16/go-down.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<path d="M8 11.707l-6-6L2.707 5 8 10.293 13.293 5l.707.707-6 6z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 332 B |
10
src/apps/res/icons/deskflow-light/actions/16/go-up.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<path d="M8 4.293l-6 6 .707.707L8 5.707 13.293 11l.707-.707-6-6z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 333 B |
@ -0,0 +1,13 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none"
|
||||||
|
d="M 6.5 2 C 4.007 2 2 4.01 2 6.5 C 2 8.993 4.01 11 6.5 11 C 7.5636432 11 8.5263409 10.618801 9.2949219 10.005859 L 13.292969 14.003906 L 14 13.296875 L 10.001953 9.2988281 C 10.617604 8.529048 11 7.565338 11 6.5 C 11 4.007 8.99 2 6.5 2 z M 6.5 3 C 8.439 3 10 4.561 10 6.5 C 10 8.439 8.439 10 6.5 10 C 4.561 10 3 8.439 3 6.5 C 3 4.561 4.561 3 6.5 3 z "
|
||||||
|
class="ColorScheme-Text"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 684 B |
14
src/apps/res/icons/deskflow-light/actions/22/go-down.svg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<path
|
||||||
|
style="fill:currentColor;fill-opacity:1;stroke:none"
|
||||||
|
d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125"
|
||||||
|
class="ColorScheme-Text"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 488 B |
10
src/apps/res/icons/deskflow-light/actions/22/go-up.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 391 B |
@ -0,0 +1,14 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<path
|
||||||
|
style="fill:currentColor;fill-opacity:1;stroke:none"
|
||||||
|
d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z "
|
||||||
|
class="ColorScheme-Text"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 716 B |
12
src/apps/res/icons/deskflow-light/actions/24/go-down.svg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="m3.707031 7l-.707031.707031 6.125 6.125 1.875 1.875 1.875-1.875 6.125-6.125-.707031-.707031-6.125 6.125-1.167969 1.167969-1.167969-1.167969-6.125-6.125" class="ColorScheme-Text"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 536 B |
10
src/apps/res/icons/deskflow-light/actions/24/go-up.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path d="M3.707 15L3 14.293l6.125-6.125L11 6.293l1.875 1.875L19 14.293l-.707.707-6.125-6.125L11 7.707 9.832 8.875 3.707 15" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 436 B |
@ -0,0 +1,12 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
|
<defs id="defs3051">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<g transform="translate(1,1)">
|
||||||
|
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 9 3 C 5.6759952 3 3 5.6759952 3 9 C 3 12.324005 5.6759952 15 9 15 C 10.481205 15 11.830584 14.465318 12.875 13.582031 L 18.292969 19 L 19 18.292969 L 13.582031 12.875 C 14.465318 11.830584 15 10.481205 15 9 C 15 5.6759952 12.324005 3 9 3 z M 9 4 C 11.770005 4 14 6.2299952 14 9 C 14 11.770005 11.770005 14 9 14 C 6.2299952 14 4 11.770005 4 9 C 4 6.2299952 6.2299952 4 9 4 z " class="ColorScheme-Text"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 761 B |
10
src/apps/res/icons/deskflow-light/actions/32/go-down.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<path d="M16 23.707l-14-14L2.707 9 16 22.293 29.293 9l.707.707z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 332 B |
10
src/apps/res/icons/deskflow-light/actions/32/go-up.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<path d="M16 8.293l-14 14 .707.707L16 9.707 29.293 23l.707-.707z" class="ColorScheme-Text" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 333 B |
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" width="32" height="32">
|
||||||
|
<style type="text/css" id="current-color-scheme">
|
||||||
|
.ColorScheme-Text {
|
||||||
|
color:#232629;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<g id="system-search" transform="translate(0 -32) translate(-22,32)">
|
||||||
|
<path id="path66" class="ColorScheme-Text" d="m35 4a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 5.994141-2.298828l8.298828 8.298828 0.707031-0.707031-8.300781-8.300782a9 9 0 0 0 2.300781-5.992187 9 9 0 0 0-9-9zm0 1a8 8 0 0 1 8 8 8 8 0 0 1-8 8 8 8 0 0 1-8-8 8 8 0 0 1 8-8z" fill="currentColor"/>
|
||||||
|
<path id="path68" d="m22 0v32h32v-32z" fill="none"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 997 B |
@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: 2025 Chris Rizzitello <sithlord48@gmail.com>
|
// SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
// Generic Template for rc files in deskflow
|
// Generic Template for rc files in deskflow
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|||||||
@ -1,10 +1,8 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Deskflow Developers
|
# SPDX-FileCopyrightText: (C) 2024 Deskflow Developers
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
configure_file(VersionInfo.h.in VersionInfo.h @ONLY)
|
|
||||||
|
|
||||||
add_subdirectory(arch)
|
add_subdirectory(arch)
|
||||||
add_subdirectory(base)
|
add_subdirectory(base)
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
#include "arch/win32/ArchMiscWindows.h"
|
#include "arch/win32/ArchMiscWindows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ Arch::Arch()
|
|||||||
s_instance = this;
|
s_instance = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
void Arch::init()
|
void Arch::init()
|
||||||
{
|
{
|
||||||
ARCH_NETWORK::init();
|
ARCH_NETWORK::init();
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
*/
|
*/
|
||||||
|
#include <QtSystemDetection>
|
||||||
// Consider whether or not to use either encapsulation (as below)
|
// Consider whether or not to use either encapsulation (as below)
|
||||||
// or inheritance (as it is now) for the ARCH stuff.
|
// or inheritance (as it is now) for the ARCH stuff.
|
||||||
//
|
//
|
||||||
@ -25,20 +25,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
|
|
||||||
#include "arch/win32/ArchDaemonWindows.h"
|
#include "arch/win32/ArchDaemonWindows.h"
|
||||||
#include "arch/win32/ArchLogWindows.h"
|
#include "arch/win32/ArchLogWindows.h"
|
||||||
#include "arch/win32/ArchMultithreadWindows.h"
|
#include "arch/win32/ArchMultithreadWindows.h"
|
||||||
#include "arch/win32/ArchNetworkWinsock.h"
|
#include "arch/win32/ArchNetworkWinsock.h"
|
||||||
|
#else
|
||||||
#elif SYSAPI_UNIX
|
|
||||||
|
|
||||||
#include "arch/ArchDaemonNone.h"
|
#include "arch/ArchDaemonNone.h"
|
||||||
#include "arch/unix/ArchLogUnix.h"
|
#include "arch/unix/ArchLogUnix.h"
|
||||||
#include "arch/unix/ArchMultithreadPosix.h"
|
#include "arch/unix/ArchMultithreadPosix.h"
|
||||||
#include "arch/unix/ArchNetworkBSD.h"
|
#include "arch/unix/ArchNetworkBSD.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -63,7 +59,7 @@ public:
|
|||||||
Arch();
|
Arch();
|
||||||
~Arch() override = default;
|
~Arch() override = default;
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if defined(Q_OS_WIN)
|
||||||
//! Call init on other arch classes.
|
//! Call init on other arch classes.
|
||||||
/*!
|
/*!
|
||||||
Some arch classes depend on others to exist first. When init is called
|
Some arch classes depend on others to exist first. When init is called
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# Platform Specific Code
|
# Platform Specific Code
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
* SPDX-FileCopyrightText: (C) 2025 - 2026 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
@ -41,16 +41,16 @@ public:
|
|||||||
Becomes a service. Argument 0 is the name of the service
|
Becomes a service. Argument 0 is the name of the service
|
||||||
and the rest are the arguments passed to StartService().
|
and the rest are the arguments passed to StartService().
|
||||||
\c func is only called when the service is actually started.
|
\c func is only called when the service is actually started.
|
||||||
\c func must call \c ArchMiscWindows::runDaemon() to finally
|
\c func must call \c ArchDaemonWindows::runDaemon() to finally
|
||||||
becoming a service. The \c runFunc function passed to \c runDaemon()
|
becoming a service. The \c runFunc function passed to \c runDaemon()
|
||||||
must call \c ArchMiscWindows::daemonRunning(true) when it
|
must call \c ArchDaemonWindows::daemonRunning(true) when it
|
||||||
enters the main loop (i.e. after initialization) and
|
enters the main loop (i.e. after initialization) and
|
||||||
\c ArchMiscWindows::daemonRunning(false) when it leaves
|
\c ArchDaemonWindows::daemonRunning(false) when it leaves
|
||||||
the main loop. The \c stopFunc function passed to \c runDaemon()
|
the main loop. The \c stopFunc function passed to \c runDaemon()
|
||||||
is called when the daemon must exit the main loop and it must cause
|
is called when the daemon must exit the main loop and it must cause
|
||||||
\c runFunc to return. \c func should return what \c runDaemon()
|
\c runFunc to return. \c func should return what \c runDaemon()
|
||||||
returns. \c func or \c runFunc can call
|
returns. \c func or \c runFunc can call
|
||||||
\c ArchMiscWindows::daemonFailed() to indicate startup failure.
|
\c ArchDaemonWindows::daemonFailed() to indicate startup failure.
|
||||||
</ul>
|
</ul>
|
||||||
*/
|
*/
|
||||||
virtual int daemonize(DaemonFunc const &func) = 0;
|
virtual int daemonize(DaemonFunc const &func) = 0;
|
||||||
|
|||||||
@ -79,6 +79,10 @@ ArchSocket ArchNetworkBSD::newSocket(AddressFamily family, SocketType type)
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
setBlockingOnSocket(fd, false);
|
setBlockingOnSocket(fd, false);
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
int on = 1;
|
||||||
|
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
|
||||||
|
#endif
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
close(fd);
|
close(fd);
|
||||||
throw;
|
throw;
|
||||||
@ -196,6 +200,10 @@ ArchSocket ArchNetworkBSD::acceptSocket(ArchSocket s, ArchNetAddress *addr)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
setBlockingOnSocket(fd, false);
|
setBlockingOnSocket(fd, false);
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
int on = 1;
|
||||||
|
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
|
||||||
|
#endif
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
close(fd);
|
close(fd);
|
||||||
delete newSocket;
|
delete newSocket;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016, 2024 - 2025 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016, 2024 - 2025 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
@ -7,7 +8,6 @@
|
|||||||
|
|
||||||
#include "arch/win32/ArchMiscWindows.h"
|
#include "arch/win32/ArchMiscWindows.h"
|
||||||
|
|
||||||
#include "arch/win32/ArchDaemonWindows.h"
|
|
||||||
#include "arch/win32/XArchWindows.h"
|
#include "arch/win32/XArchWindows.h"
|
||||||
#include "base/Log.h"
|
#include "base/Log.h"
|
||||||
#include "base/String.h"
|
#include "base/String.h"
|
||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
// Useful for debugging Windows specific bootstrapping code before the logging system is initialized.
|
// Useful for debugging Windows specific bootstrapping code before the logging system is initialized.
|
||||||
// This output can be viewed by attaching a Microsoft debugger or by using the DebugView program.
|
// This output can be viewed by attaching a Microsoft debugger or by using the DebugView program.
|
||||||
@ -64,26 +65,6 @@ void ArchMiscWindows::init()
|
|||||||
SetErrorMode(SEM_FAILCRITICALERRORS);
|
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ArchMiscWindows::runDaemon(RunFunc runFunc)
|
|
||||||
{
|
|
||||||
return ArchDaemonWindows::runDaemon(runFunc);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ArchMiscWindows::daemonRunning(bool running)
|
|
||||||
{
|
|
||||||
ArchDaemonWindows::daemonRunning(running);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ArchMiscWindows::daemonFailed(int result)
|
|
||||||
{
|
|
||||||
ArchDaemonWindows::daemonFailed(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
UINT ArchMiscWindows::getDaemonQuitMessage()
|
|
||||||
{
|
|
||||||
return ArchDaemonWindows::getDaemonQuitMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
HKEY ArchMiscWindows::openKey(HKEY key, const TCHAR *keyName)
|
HKEY ArchMiscWindows::openKey(HKEY key, const TCHAR *keyName)
|
||||||
{
|
{
|
||||||
return openKey(key, keyName, false);
|
return openKey(key, keyName, false);
|
||||||
@ -178,20 +159,16 @@ ArchMiscWindows::EValueType ArchMiscWindows::typeOfValue(HKEY key, const TCHAR *
|
|||||||
|
|
||||||
void ArchMiscWindows::setValue(HKEY key, const TCHAR *name, const std::string &value)
|
void ArchMiscWindows::setValue(HKEY key, const TCHAR *name, const std::string &value)
|
||||||
{
|
{
|
||||||
assert(key != nullptr);
|
|
||||||
if (key == nullptr) {
|
if (key == nullptr) {
|
||||||
// TODO: throw exception
|
throw std::invalid_argument("Registry key cannot be nullptr");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
RegSetValueEx(key, name, 0, REG_SZ, reinterpret_cast<const BYTE *>(value.c_str()), (DWORD)value.size() + 1);
|
RegSetValueEx(key, name, 0, REG_SZ, reinterpret_cast<const BYTE *>(value.c_str()), (DWORD)value.size() + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArchMiscWindows::setValue(HKEY key, const TCHAR *name, DWORD value)
|
void ArchMiscWindows::setValue(HKEY key, const TCHAR *name, DWORD value)
|
||||||
{
|
{
|
||||||
assert(key != nullptr);
|
|
||||||
if (key == nullptr) {
|
if (key == nullptr) {
|
||||||
// TODO: throw exception
|
throw std::invalid_argument("Registry key cannot be nullptr");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
RegSetValueEx(key, name, 0, REG_DWORD, reinterpret_cast<CONST BYTE *>(&value), sizeof(DWORD));
|
RegSetValueEx(key, name, 0, REG_DWORD, reinterpret_cast<CONST BYTE *>(&value), sizeof(DWORD));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
@ -40,30 +41,6 @@ public:
|
|||||||
//! Initialize
|
//! Initialize
|
||||||
static void init();
|
static void init();
|
||||||
|
|
||||||
//! Run the daemon
|
|
||||||
/*!
|
|
||||||
Delegates to ArchDaemonWindows.
|
|
||||||
*/
|
|
||||||
static int runDaemon(RunFunc runFunc);
|
|
||||||
|
|
||||||
//! Indicate daemon is in main loop
|
|
||||||
/*!
|
|
||||||
Delegates to ArchDaemonWindows.
|
|
||||||
*/
|
|
||||||
static void daemonRunning(bool running);
|
|
||||||
|
|
||||||
//! Indicate failure of running daemon
|
|
||||||
/*!
|
|
||||||
Delegates to ArchDaemonWindows.
|
|
||||||
*/
|
|
||||||
static void daemonFailed(int result);
|
|
||||||
|
|
||||||
//! Get daemon quit message
|
|
||||||
/*!
|
|
||||||
Delegates to ArchDaemonWindows.
|
|
||||||
*/
|
|
||||||
static UINT getDaemonQuitMessage();
|
|
||||||
|
|
||||||
//! Open and return a registry key, closing the parent key
|
//! Open and return a registry key, closing the parent key
|
||||||
static HKEY openKey(HKEY parent, const TCHAR *child);
|
static HKEY openKey(HKEY parent, const TCHAR *child);
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,7 @@ void ArchNetworkWinsock::initModule(HMODULE module)
|
|||||||
WSADATA data;
|
WSADATA data;
|
||||||
int err = startup(version, &data);
|
int err = startup(version, &data);
|
||||||
if (data.wVersion != version) {
|
if (data.wVersion != version) {
|
||||||
throw ArchNetworkSupportException(winsockErrorToString(err));
|
throw ArchNetworkSupportException(windowsErrorToString(err));
|
||||||
}
|
}
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
// some other initialization error
|
// some other initialization error
|
||||||
@ -819,12 +819,12 @@ bool ArchNetworkWinsock::isEqualAddr(ArchNetAddress a, ArchNetAddress b)
|
|||||||
{
|
{
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case WSAEACCES:
|
case WSAEACCES:
|
||||||
throw ArchNetworkAccessException(winsockErrorToString(err));
|
throw ArchNetworkAccessException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEMFILE:
|
case WSAEMFILE:
|
||||||
case WSAENOBUFS:
|
case WSAENOBUFS:
|
||||||
case WSAENETDOWN:
|
case WSAENETDOWN:
|
||||||
throw ArchNetworkResourceException(winsockErrorToString(err));
|
throw ArchNetworkResourceException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEPROTOTYPE:
|
case WSAEPROTOTYPE:
|
||||||
case WSAEPROTONOSUPPORT:
|
case WSAEPROTONOSUPPORT:
|
||||||
@ -838,50 +838,50 @@ bool ArchNetworkWinsock::isEqualAddr(ArchNetAddress a, ArchNetAddress b)
|
|||||||
case WSANOTINITIALISED:
|
case WSANOTINITIALISED:
|
||||||
case WSAVERNOTSUPPORTED:
|
case WSAVERNOTSUPPORTED:
|
||||||
case WSASYSNOTREADY:
|
case WSASYSNOTREADY:
|
||||||
throw ArchNetworkSupportException(winsockErrorToString(err));
|
throw ArchNetworkSupportException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEADDRNOTAVAIL:
|
case WSAEADDRNOTAVAIL:
|
||||||
throw ArchNetworkNoAddressException(winsockErrorToString(err));
|
throw ArchNetworkNoAddressException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEADDRINUSE:
|
case WSAEADDRINUSE:
|
||||||
throw ArchNetworkAddressInUseException(winsockErrorToString(err));
|
throw ArchNetworkAddressInUseException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEHOSTUNREACH:
|
case WSAEHOSTUNREACH:
|
||||||
case WSAENETUNREACH:
|
case WSAENETUNREACH:
|
||||||
throw ArchNetworkNoRouteException(winsockErrorToString(err));
|
throw ArchNetworkNoRouteException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAENOTCONN:
|
case WSAENOTCONN:
|
||||||
throw ArchNetworkNotConnectedException(winsockErrorToString(err));
|
throw ArchNetworkNotConnectedException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEDISCON:
|
case WSAEDISCON:
|
||||||
throw ArchNetworkShutdownException(winsockErrorToString(err));
|
throw ArchNetworkShutdownException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAENETRESET:
|
case WSAENETRESET:
|
||||||
case WSAECONNABORTED:
|
case WSAECONNABORTED:
|
||||||
case WSAECONNRESET:
|
case WSAECONNRESET:
|
||||||
throw ArchNetworkDisconnectedException(winsockErrorToString(err));
|
throw ArchNetworkDisconnectedException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAECONNREFUSED:
|
case WSAECONNREFUSED:
|
||||||
throw ArchNetworkConnectionRefusedException(winsockErrorToString(err));
|
throw ArchNetworkConnectionRefusedException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAEHOSTDOWN:
|
case WSAEHOSTDOWN:
|
||||||
case WSAETIMEDOUT:
|
case WSAETIMEDOUT:
|
||||||
throw ArchNetworkTimedOutException(winsockErrorToString(err));
|
throw ArchNetworkTimedOutException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSAHOST_NOT_FOUND:
|
case WSAHOST_NOT_FOUND:
|
||||||
throw ArchNetworkNameUnknownException(winsockErrorToString(err));
|
throw ArchNetworkNameUnknownException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSANO_DATA:
|
case WSANO_DATA:
|
||||||
throw ArchNetworkNameNoAddressException(winsockErrorToString(err));
|
throw ArchNetworkNameNoAddressException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSANO_RECOVERY:
|
case WSANO_RECOVERY:
|
||||||
throw ArchNetworkNameFailureException(winsockErrorToString(err));
|
throw ArchNetworkNameFailureException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSATRY_AGAIN:
|
case WSATRY_AGAIN:
|
||||||
throw ArchNetworkNameUnavailableException(winsockErrorToString(err));
|
throw ArchNetworkNameUnavailableException(windowsErrorToString(err));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw ArchNetworkException(winsockErrorToString(err));
|
throw ArchNetworkException(windowsErrorToString(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -889,18 +889,18 @@ bool ArchNetworkWinsock::isEqualAddr(ArchNetAddress a, ArchNetAddress b)
|
|||||||
{
|
{
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case WSAHOST_NOT_FOUND:
|
case WSAHOST_NOT_FOUND:
|
||||||
throw ArchNetworkNameUnknownException(winsockErrorToString(err));
|
throw ArchNetworkNameUnknownException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSANO_DATA:
|
case WSANO_DATA:
|
||||||
throw ArchNetworkNameNoAddressException(winsockErrorToString(err));
|
throw ArchNetworkNameNoAddressException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSANO_RECOVERY:
|
case WSANO_RECOVERY:
|
||||||
throw ArchNetworkNameFailureException(winsockErrorToString(err));
|
throw ArchNetworkNameFailureException(windowsErrorToString(err));
|
||||||
|
|
||||||
case WSATRY_AGAIN:
|
case WSATRY_AGAIN:
|
||||||
throw ArchNetworkNameUnavailableException(winsockErrorToString(err));
|
throw ArchNetworkNameUnavailableException(windowsErrorToString(err));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw ArchNetworkNameException(winsockErrorToString(err));
|
throw ArchNetworkNameException(windowsErrorToString(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,192 +30,7 @@ QString windowsErrorToQString(DWORD error)
|
|||||||
return QString("[%1] %2").arg(error).arg(message.trimmed());
|
return QString("[%1] %2").arg(error).arg(message.trimmed());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString winsockErrorToQString(int error)
|
|
||||||
{
|
|
||||||
// built-in windows function for looking up error message strings
|
|
||||||
// may not look up network error messages correctly. we'll have
|
|
||||||
// to do it ourself.
|
|
||||||
static const struct
|
|
||||||
{
|
|
||||||
int m_code;
|
|
||||||
const char *m_msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
s_netErrorCodes[] = {
|
|
||||||
|
|
||||||
// 10004
|
|
||||||
{WSAEINTR, "The (blocking) call was canceled via WSACancelBlockingCall"},
|
|
||||||
|
|
||||||
// 10009
|
|
||||||
{WSAEBADF, "Bad file handle"},
|
|
||||||
|
|
||||||
// 10013
|
|
||||||
{WSAEACCES, "The requested address is a broadcast address, but the appropriate flag was not set"},
|
|
||||||
|
|
||||||
// 10014
|
|
||||||
{WSAEFAULT, "WSAEFAULT"},
|
|
||||||
|
|
||||||
// 10022
|
|
||||||
{WSAEINVAL, "WSAEINVAL"},
|
|
||||||
|
|
||||||
// 10024
|
|
||||||
{WSAEMFILE, "No more file descriptors available"},
|
|
||||||
|
|
||||||
// 10035
|
|
||||||
{WSAEWOULDBLOCK,
|
|
||||||
"Socket is marked as non-blocking and no connections are present or the receive operation would block"},
|
|
||||||
|
|
||||||
// 10036
|
|
||||||
{WSAEINPROGRESS, "A blocking Windows Sockets operation is in progress"},
|
|
||||||
|
|
||||||
// 10037
|
|
||||||
{WSAEALREADY, "The asynchronous routine being canceled has already completed"},
|
|
||||||
|
|
||||||
// 10038
|
|
||||||
{WSAENOTSOCK, "At least on descriptor is not a socket"},
|
|
||||||
|
|
||||||
// 10039
|
|
||||||
{WSAEDESTADDRREQ, "A destination address is required"},
|
|
||||||
|
|
||||||
// 10040
|
|
||||||
{WSAEMSGSIZE, "The datagram was too large to fit into the specified buffer and was truncated"},
|
|
||||||
|
|
||||||
// 10041
|
|
||||||
{WSAEPROTOTYPE, "The specified protocol is the wrong type for this socket"},
|
|
||||||
|
|
||||||
// 10042
|
|
||||||
{WSAENOPROTOOPT, "The option is unknown or unsupported"},
|
|
||||||
|
|
||||||
// 10043
|
|
||||||
{WSAEPROTONOSUPPORT, "The specified protocol is not supported"},
|
|
||||||
|
|
||||||
// 10044
|
|
||||||
{WSAESOCKTNOSUPPORT, "The specified socket type is not supported by this address family"},
|
|
||||||
|
|
||||||
// 10045
|
|
||||||
{WSAEOPNOTSUPP, "The referenced socket is not a type that supports that operation"},
|
|
||||||
|
|
||||||
// 10046
|
|
||||||
{WSAEPFNOSUPPORT, "BSD: Protocol family not supported"},
|
|
||||||
|
|
||||||
// 10047
|
|
||||||
{WSAEAFNOSUPPORT, "The specified address family is not supported"},
|
|
||||||
|
|
||||||
// 10048
|
|
||||||
{WSAEADDRINUSE, "The specified address is already in use"},
|
|
||||||
|
|
||||||
// 10049
|
|
||||||
{WSAEADDRNOTAVAIL, "The specified address is not available from the local machine"},
|
|
||||||
|
|
||||||
// 10050
|
|
||||||
{WSAENETDOWN, "The Windows Sockets implementation has detected that the network subsystem has failed"},
|
|
||||||
|
|
||||||
// 10051
|
|
||||||
{WSAENETUNREACH, "The network can't be reached from this host at this time"},
|
|
||||||
|
|
||||||
// 10052
|
|
||||||
{WSAENETRESET, "The connection must be reset because the Windows Sockets implementation dropped it"},
|
|
||||||
|
|
||||||
// 10053
|
|
||||||
{WSAECONNABORTED, "The virtual circuit was aborted due to timeout or other failure"},
|
|
||||||
|
|
||||||
// 10054
|
|
||||||
{WSAECONNRESET, "The virtual circuit was reset by the remote side"},
|
|
||||||
|
|
||||||
// 10055
|
|
||||||
{WSAENOBUFS, "No buffer space is available or a buffer deadlock has occurred. The socket cannot be created"},
|
|
||||||
|
|
||||||
// 10056
|
|
||||||
{WSAEISCONN, "The socket is already connected"},
|
|
||||||
|
|
||||||
// 10057
|
|
||||||
{WSAENOTCONN, "The socket is not connected"},
|
|
||||||
|
|
||||||
// 10058
|
|
||||||
{WSAESHUTDOWN, "The socket has been shutdown"},
|
|
||||||
|
|
||||||
// 10059
|
|
||||||
{WSAETOOMANYREFS, "BSD: Too many references"},
|
|
||||||
|
|
||||||
// 10060
|
|
||||||
{WSAETIMEDOUT, "Attempt to connect timed out without establishing a connection"},
|
|
||||||
|
|
||||||
// 10061
|
|
||||||
{WSAECONNREFUSED, "Connection was refused"},
|
|
||||||
|
|
||||||
// 10062
|
|
||||||
{WSAELOOP, "Undocumented WinSock error code used in BSD"},
|
|
||||||
|
|
||||||
// 10063
|
|
||||||
{WSAENAMETOOLONG, "Undocumented WinSock error code used in BSD"},
|
|
||||||
|
|
||||||
// 10064
|
|
||||||
{WSAEHOSTDOWN, "Undocumented WinSock error code used in BSD"},
|
|
||||||
|
|
||||||
// 10065
|
|
||||||
{WSAEHOSTUNREACH, "No route to host"},
|
|
||||||
|
|
||||||
// 10066
|
|
||||||
{WSAENOTEMPTY, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10067
|
|
||||||
{WSAEPROCLIM, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10068
|
|
||||||
{WSAEUSERS, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10069
|
|
||||||
{WSAEDQUOT, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10070
|
|
||||||
{WSAESTALE, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10071
|
|
||||||
{WSAEREMOTE, "Undocumented WinSock error code"},
|
|
||||||
|
|
||||||
// 10091
|
|
||||||
{WSASYSNOTREADY, "Underlying network subsytem is not ready for network communication"},
|
|
||||||
|
|
||||||
// 10092
|
|
||||||
{WSAVERNOTSUPPORTED, "The version of WinSock API support requested is not provided in this implementation"},
|
|
||||||
|
|
||||||
// 10093
|
|
||||||
{WSANOTINITIALISED, "WinSock subsystem not properly initialized"},
|
|
||||||
|
|
||||||
// 10101
|
|
||||||
{WSAEDISCON, "Virtual circuit has gracefully terminated connection"},
|
|
||||||
|
|
||||||
// 11001
|
|
||||||
{WSAHOST_NOT_FOUND, "The specified host is unknown"},
|
|
||||||
|
|
||||||
// 11002
|
|
||||||
{WSATRY_AGAIN, "A temporary error occurred on an authoritative name server"},
|
|
||||||
|
|
||||||
// 11003
|
|
||||||
{WSANO_RECOVERY, "A non-recoverable name server error occurred"},
|
|
||||||
|
|
||||||
// 11004
|
|
||||||
{WSANO_DATA, "The requested name is valid but does not have an IP address"},
|
|
||||||
|
|
||||||
// end
|
|
||||||
{0, nullptr}
|
|
||||||
};
|
|
||||||
|
|
||||||
for (unsigned int i = 0; s_netErrorCodes[i].m_code != 0; ++i) {
|
|
||||||
if (s_netErrorCodes[i].m_code == error) {
|
|
||||||
return QString("[%1] %2").arg(error).arg(s_netErrorCodes[i].m_msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return QString("Unknown Winsock error: %1").arg(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string windowsErrorToString(DWORD error)
|
std::string windowsErrorToString(DWORD error)
|
||||||
{
|
{
|
||||||
return windowsErrorToQString(error).toStdString();
|
return windowsErrorToQString(error).toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string winsockErrorToString(int error)
|
|
||||||
{
|
|
||||||
return winsockErrorToQString(error).toStdString();
|
|
||||||
}
|
|
||||||
|
|||||||
@ -14,7 +14,5 @@
|
|||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
QString winsockErrorToQString(int error);
|
|
||||||
QString windowsErrorToQString(DWORD error);
|
QString windowsErrorToQString(DWORD error);
|
||||||
std::string winsockErrorToString(int error);
|
|
||||||
std::string windowsErrorToString(DWORD error);
|
std::string windowsErrorToString(DWORD error);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Chris Rizzitello <sithlord48@gmail.com>
|
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2012 - 2024 Symless Ltd
|
# SPDX-FileCopyrightText: (C) 2012 - 2024 Symless Ltd
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
add_library(base STATIC
|
add_library(base STATIC
|
||||||
@ -27,8 +27,6 @@ add_library(base STATIC
|
|||||||
Log.h
|
Log.h
|
||||||
LogLevel.h
|
LogLevel.h
|
||||||
NetworkProtocol.h
|
NetworkProtocol.h
|
||||||
Path.cpp
|
|
||||||
Path.h
|
|
||||||
PriorityQueue.h
|
PriorityQueue.h
|
||||||
SimpleEventQueueBuffer.cpp
|
SimpleEventQueueBuffer.cpp
|
||||||
SimpleEventQueueBuffer.h
|
SimpleEventQueueBuffer.h
|
||||||
|
|||||||
@ -11,20 +11,20 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Screen edge directions for mouse movement
|
* @brief Computer edge directions for mouse movement
|
||||||
*
|
*
|
||||||
* Used to specify which edge of a screen the mouse cursor crosses
|
* Used to specify which edge of a computer the mouse cursor crosses
|
||||||
* when moving between primary and secondary screens.
|
* when moving between primary and secondary computers.
|
||||||
*
|
*
|
||||||
* @since Protocol version 1.0
|
* @since Protocol version 1.0
|
||||||
*/
|
*/
|
||||||
enum class Direction : uint8_t
|
enum class Direction : uint8_t
|
||||||
{
|
{
|
||||||
NoDirection, ///< No specific direction
|
NoDirection, ///< No specific direction
|
||||||
Left, ///< Left edge of screen
|
Left, ///< Left edge of computer
|
||||||
Right, ///< Right edge of screen
|
Right, ///< Right edge of computer
|
||||||
Top, ///< Top edge of screen
|
Top, ///< Top edge of computer
|
||||||
Bottom, ///< Bottom edge of screen
|
Bottom, ///< Bottom edge of computer
|
||||||
FirstDirection = Direction::Left, ///< First valid direction value
|
FirstDirection = Direction::Left, ///< First valid direction value
|
||||||
LastDirection = Direction::Bottom, ///< Last valid direction value
|
LastDirection = Direction::Bottom, ///< Last valid direction value
|
||||||
NumDirections = Direction::LastDirection - Direction::FirstDirection + 1 ///< Total number of directions
|
NumDirections = Direction::LastDirection - Direction::FirstDirection + 1 ///< Total number of directions
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
* SPDX-FileCopyrightText: (C) 2025 - 2026 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2004 Chris Schoeneman
|
* SPDX-FileCopyrightText: (C) 2004 Chris Schoeneman
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
@ -9,6 +9,7 @@
|
|||||||
#include "base/EventQueue.h"
|
#include "base/EventQueue.h"
|
||||||
|
|
||||||
#include "arch/Arch.h"
|
#include "arch/Arch.h"
|
||||||
|
#include "base/EventQueueTimer.h"
|
||||||
#include "base/Log.h"
|
#include "base/Log.h"
|
||||||
#include "base/SimpleEventQueueBuffer.h"
|
#include "base/SimpleEventQueueBuffer.h"
|
||||||
#include "mt/Lock.h"
|
#include "mt/Lock.h"
|
||||||
@ -213,7 +214,7 @@ EventQueueTimer *EventQueue::newTimer(double duration, void *target)
|
|||||||
{
|
{
|
||||||
assert(duration > 0.0);
|
assert(duration > 0.0);
|
||||||
|
|
||||||
EventQueueTimer *timer = m_buffer->newTimer(duration, false);
|
auto timer = new EventQueueTimer;
|
||||||
if (target == nullptr) {
|
if (target == nullptr) {
|
||||||
target = timer;
|
target = timer;
|
||||||
}
|
}
|
||||||
@ -230,7 +231,7 @@ EventQueueTimer *EventQueue::newOneShotTimer(double duration, void *target)
|
|||||||
{
|
{
|
||||||
assert(duration > 0.0);
|
assert(duration > 0.0);
|
||||||
|
|
||||||
EventQueueTimer *timer = m_buffer->newTimer(duration, true);
|
auto timer = new EventQueueTimer;
|
||||||
if (target == nullptr) {
|
if (target == nullptr) {
|
||||||
target = timer;
|
target = timer;
|
||||||
}
|
}
|
||||||
@ -255,7 +256,7 @@ void EventQueue::deleteTimer(EventQueueTimer *timer)
|
|||||||
if (Timers::iterator index = m_timers.find(timer); index != m_timers.end()) {
|
if (Timers::iterator index = m_timers.find(timer); index != m_timers.end()) {
|
||||||
m_timers.erase(index);
|
m_timers.erase(index);
|
||||||
}
|
}
|
||||||
m_buffer->deleteTimer(timer);
|
delete timer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventQueue::addHandler(EventTypes type, void *target, const EventHandler &handler)
|
void EventQueue::addHandler(EventTypes type, void *target, const EventHandler &handler)
|
||||||
|
|||||||
@ -91,6 +91,11 @@ enum class EventTypes : uint32_t
|
|||||||
/// This event is sent whenever a server accepts a client.
|
/// This event is sent whenever a server accepts a client.
|
||||||
ClientListenerAccepted,
|
ClientListenerAccepted,
|
||||||
|
|
||||||
|
/** This event is sent whenever a client disconnects/errors out before the connection
|
||||||
|
is fully accepted.
|
||||||
|
*/
|
||||||
|
ClientListenerDisconnectedOnAccept,
|
||||||
|
|
||||||
/** This event is sent when the client has completed the initial handshake. Until it is sent,
|
/** This event is sent when the client has completed the initial handshake. Until it is sent,
|
||||||
the client is not fully connected.
|
the client is not fully connected.
|
||||||
*/
|
*/
|
||||||
@ -111,23 +116,23 @@ enum class EventTypes : uint32_t
|
|||||||
*/
|
*/
|
||||||
ClientProxyUnknownFailure,
|
ClientProxyUnknownFailure,
|
||||||
|
|
||||||
/** This event is sent when a client screen has connected.
|
/** This event is sent when a client computer has connected.
|
||||||
The event data is a pointer to ScreenConnectedInfo that indicates the connected screen.
|
The event data is a pointer to ScreenConnectedInfo that indicates the connected computer.
|
||||||
*/
|
*/
|
||||||
ServerConnected,
|
ServerConnected,
|
||||||
|
|
||||||
/// This is event sent when all the clients have disconnected.
|
/// This is event sent when all the clients have disconnected.
|
||||||
ServerDisconnected,
|
ServerDisconnected,
|
||||||
|
|
||||||
/** This event is sent to inform the server to switch screens.
|
/** This event is sent to inform the server to switch computers.
|
||||||
The event data is a pointer to SwitchToScreenInfo that indicates the target screen.
|
The event data is a pointer to SwitchToScreenInfo that indicates the target computer.
|
||||||
*/
|
*/
|
||||||
ServerSwitchToScreen,
|
ServerSwitchToScreen,
|
||||||
|
|
||||||
/// This event is sent to inform the server to toggle screens. These is no event data.
|
/// This event is sent to inform the server to toggle computers. These is no event data.
|
||||||
ServerToggleScreen,
|
ServerToggleScreen,
|
||||||
|
|
||||||
/** This event is sent to inform the server to switch screens.
|
/** This event is sent to inform the server to switch computers.
|
||||||
The event data is a pointer to SwitchInDirectionInfo that indicates the target direction.
|
The event data is a pointer to SwitchInDirectionInfo that indicates the target direction.
|
||||||
*/
|
*/
|
||||||
ServerSwitchInDirection,
|
ServerSwitchInDirection,
|
||||||
@ -137,12 +142,12 @@ enum class EventTypes : uint32_t
|
|||||||
*/
|
*/
|
||||||
ServerKeyboardBroadcast,
|
ServerKeyboardBroadcast,
|
||||||
|
|
||||||
/** This event is sent to inform the server to lock the cursor to the active screen or to
|
/** This event is sent to inform the server to lock the cursor to the active computer or to
|
||||||
unlock it. The event data is a pointer to LockCursorToScreenInfo.
|
unlock it. The event data is a pointer to LockCursorToScreenInfo.
|
||||||
*/
|
*/
|
||||||
ServerLockCursorToScreen,
|
ServerLockCursorToScreen,
|
||||||
|
|
||||||
/// This event is sent when the screen has been switched to a client.
|
/// This event is sent when the computer has been switched to a client.
|
||||||
ServerScreenSwitched,
|
ServerScreenSwitched,
|
||||||
|
|
||||||
ServerAppReloadConfig,
|
ServerAppReloadConfig,
|
||||||
@ -162,12 +167,12 @@ enum class EventTypes : uint32_t
|
|||||||
/// This event is sent when button is up. Event data is a pointer to ButtonInfo
|
/// This event is sent when button is up. Event data is a pointer to ButtonInfo
|
||||||
PrimaryScreenButtonUp,
|
PrimaryScreenButtonUp,
|
||||||
|
|
||||||
/** This event is sent when mouse moves on primary screen.
|
/** This event is sent when mouse moves on the server.
|
||||||
Event data is a pointer to MotionInfo, the values are absolute position.
|
Event data is a pointer to MotionInfo, the values are absolute position.
|
||||||
*/
|
*/
|
||||||
PrimaryScreenMotionOnPrimary,
|
PrimaryScreenMotionOnPrimary,
|
||||||
|
|
||||||
/** This event is sent when mouse moves on secondary screen.
|
/** This event is sent when mouse moves on a client.
|
||||||
Event data is a pointer to MotionInfo, the values are relative motion deltas.
|
Event data is a pointer to MotionInfo, the values are relative motion deltas.
|
||||||
*/
|
*/
|
||||||
PrimaryScreenMotionOnSecondary,
|
PrimaryScreenMotionOnSecondary,
|
||||||
@ -193,12 +198,12 @@ enum class EventTypes : uint32_t
|
|||||||
/// This event is sent when fake input ends.
|
/// This event is sent when fake input ends.
|
||||||
PrimaryScreenFakeInputEnd,
|
PrimaryScreenFakeInputEnd,
|
||||||
|
|
||||||
/** This event is sent whenever the screen has failed for some reason (e.g. the X Windows
|
/** This event is sent whenever the computer has failed for some reason (e.g. the X Windows
|
||||||
server died).
|
server died).
|
||||||
*/
|
*/
|
||||||
ScreenError,
|
ScreenError,
|
||||||
|
|
||||||
/// This event is sent whenever the screen's shape changes.
|
/// This event is sent whenever the computer's display shape changes.
|
||||||
ScreenShapeChanged,
|
ScreenShapeChanged,
|
||||||
|
|
||||||
/** This event is sent whenever the system goes to sleep or a user session is deactivated (fast
|
/** This event is sent whenever the system goes to sleep or a user session is deactivated (fast
|
||||||
@ -224,9 +229,10 @@ enum class EventTypes : uint32_t
|
|||||||
/// This event is sent whenever a clipboard chunk is transferred.
|
/// This event is sent whenever a clipboard chunk is transferred.
|
||||||
ClipboardSending,
|
ClipboardSending,
|
||||||
|
|
||||||
/// Start libEI
|
/// Start libei
|
||||||
EIConnected,
|
EIConnected,
|
||||||
/// Stop libEi
|
|
||||||
EISessionClosed
|
/// Stop libei
|
||||||
|
EISessionClosed,
|
||||||
};
|
};
|
||||||
} // namespace deskflow
|
} // namespace deskflow
|
||||||
|
|||||||
@ -65,29 +65,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual bool addEvent(uint32_t dataID) = 0;
|
virtual bool addEvent(uint32_t dataID) = 0;
|
||||||
|
|
||||||
//@}
|
|
||||||
//! @name accessors
|
|
||||||
//@{
|
|
||||||
|
|
||||||
//! Check if event queue buffer is empty
|
//! Check if event queue buffer is empty
|
||||||
/*!
|
/*!
|
||||||
Return true iff the event queue buffer is empty.
|
Return true iff the event queue buffer is empty.
|
||||||
*/
|
*/
|
||||||
virtual bool isEmpty() const = 0;
|
virtual bool isEmpty() const = 0;
|
||||||
|
|
||||||
//! Create a timer object
|
|
||||||
/*!
|
|
||||||
Create and return a timer object. The object is opaque and is
|
|
||||||
used only by the buffer but it must be a valid object (i.e.
|
|
||||||
not nullptr).
|
|
||||||
*/
|
|
||||||
virtual EventQueueTimer *newTimer(double duration, bool oneShot) const = 0;
|
|
||||||
|
|
||||||
//! Destroy a timer object
|
|
||||||
/*!
|
|
||||||
Destroy a timer object previously returned by \c newTimer().
|
|
||||||
*/
|
|
||||||
virtual void deleteTimer(EventQueueTimer *) const = 0;
|
|
||||||
|
|
||||||
//@}
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -24,11 +24,10 @@
|
|||||||
const int kPriorityPrefixLength = 3;
|
const int kPriorityPrefixLength = 3;
|
||||||
|
|
||||||
// names of priorities
|
// names of priorities
|
||||||
static const char *g_priority[] = {"FATAL", "ERROR", "WARNING", "NOTE", "INFO", "DEBUG",
|
static const char *g_priority[] = {"FATAL", "ERROR", "WARNING", "NOTE", "INFO", "DEBUG", "DEBUG1", "DEBUG2"};
|
||||||
"DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "DEBUG5"};
|
|
||||||
|
|
||||||
// number of priorities
|
// number of priorities
|
||||||
static const int g_numPriority = 11;
|
static const int g_numPriority = 8;
|
||||||
|
|
||||||
// if NDEBUG (not debug) is not specified, i.e. you're building in debug,
|
// if NDEBUG (not debug) is not specified, i.e. you're building in debug,
|
||||||
// then set default log level to DEBUG, otherwise the max level is INFO.
|
// then set default log level to DEBUG, otherwise the max level is INFO.
|
||||||
|
|||||||
@ -209,9 +209,6 @@ otherwise it expands to a call that doesn't.
|
|||||||
#define CLOG_DEBUG CLOG_TRACE "%z\065"
|
#define CLOG_DEBUG CLOG_TRACE "%z\065"
|
||||||
#define CLOG_DEBUG1 CLOG_TRACE "%z\066"
|
#define CLOG_DEBUG1 CLOG_TRACE "%z\066"
|
||||||
#define CLOG_DEBUG2 CLOG_TRACE "%z\067"
|
#define CLOG_DEBUG2 CLOG_TRACE "%z\067"
|
||||||
#define CLOG_DEBUG3 CLOG_TRACE "%z\070"
|
|
||||||
#define CLOG_DEBUG4 CLOG_TRACE "%z\071" // char is '9'
|
|
||||||
#define CLOG_DEBUG5 CLOG_TRACE "%z\072" // char is ':'
|
|
||||||
|
|
||||||
#define LOG_IPC(...) LOG((CLOG_IPC __VA_ARGS__))
|
#define LOG_IPC(...) LOG((CLOG_IPC __VA_ARGS__))
|
||||||
#define LOG_PRINT(...) LOG((CLOG_PRINT __VA_ARGS__))
|
#define LOG_PRINT(...) LOG((CLOG_PRINT __VA_ARGS__))
|
||||||
@ -223,6 +220,3 @@ otherwise it expands to a call that doesn't.
|
|||||||
#define LOG_DEBUG(...) LOG((CLOG_DEBUG __VA_ARGS__))
|
#define LOG_DEBUG(...) LOG((CLOG_DEBUG __VA_ARGS__))
|
||||||
#define LOG_DEBUG1(...) LOG((CLOG_DEBUG1 __VA_ARGS__))
|
#define LOG_DEBUG1(...) LOG((CLOG_DEBUG1 __VA_ARGS__))
|
||||||
#define LOG_DEBUG2(...) LOG((CLOG_DEBUG2 __VA_ARGS__))
|
#define LOG_DEBUG2(...) LOG((CLOG_DEBUG2 __VA_ARGS__))
|
||||||
#define LOG_DEBUG3(...) LOG((CLOG_DEBUG3 __VA_ARGS__))
|
|
||||||
#define LOG_DEBUG4(...) LOG((CLOG_DEBUG4 __VA_ARGS__))
|
|
||||||
#define LOG_DEBUG5(...) LOG((CLOG_DEBUG5 __VA_ARGS__))
|
|
||||||
|
|||||||