feat: open folder will also select file on linux

This commit is contained in:
Gary Wang 2022-10-29 23:35:30 +08:00
parent a24c246fc7
commit b83de962cb
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760
3 changed files with 785 additions and 755 deletions

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: Get build dept. - name: Get build dept.
run: | run: |
sudo apt update sudo apt update
@ -24,7 +24,7 @@ jobs:
run: | run: |
cd build cd build
sudo apt install ./*.deb sudo apt install ./*.deb
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ubuntu-20.04-deb-package name: ubuntu-20.04-deb-package
path: build/*.deb path: build/*.deb

View File

@ -17,7 +17,10 @@ set (QT_MINIMUM_VERSION "5.10")
option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON) option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets Svg LinguistTools) find_package(Qt5 ${QT_MINIMUM_VERSION} REQUIRED
COMPONENTS Widgets Svg LinguistTools
OPTIONAL_COMPONENTS DBus
)
if (EXIV2_METADATA_SUPPORT) if (EXIV2_METADATA_SUPPORT)
find_package(LibExiv2) find_package(LibExiv2)
@ -113,6 +116,15 @@ if (LibExiv2_FOUND)
) )
endif () endif ()
if (Qt5DBus_FOUND)
target_link_libraries (${EXE_NAME}
Qt5::DBus
)
target_compile_definitions(${EXE_NAME} PRIVATE
HAVE_QTDBUS
)
endif()
# Extra build settings # Extra build settings
if (WIN32) if (WIN32)
set_property ( set_property (

File diff suppressed because it is too large Load Diff