Skip to content

Commit 73d9660

Browse files
authored
Merge pull request #315 from Abestanis/feature/validate_desktop_file
Validate the desktop file
2 parents fee8551 + a9d87fc commit 73d9660

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
if [ "$RUNNER_OS" == "Linux" ]; then
5252
sudo apt-get update -qq;
53-
sudo apt install -qq libx11-dev
53+
sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils
5454
elif [ "$RUNNER_OS" == "Windows" ]; then
5555
if [ "$ARCH" == "x86" ]; then
5656
echo "::set-env name=CMAKE_PLATFORM_ARG::-A Win32"
@@ -76,6 +76,16 @@ jobs:
7676
- name: Tests
7777
working-directory: ${{runner.workspace}}/build
7878
run: cmake --build . --config Release --target run_tests
79+
- name: Validate desktop file
80+
working-directory: ${{ github.workspace }}
81+
if: runner.os == 'Linux'
82+
shell: bash
83+
run: |
84+
output=$(desktop-file-validate src/res/com.ulduzsoft.Birdtray.desktop)
85+
if [ ! -z "$output" ]; then
86+
echo "$output";
87+
exit 1;
88+
fi
7989
- name: Check if this is a deployment build
8090
id: check-deploy
8191
shell: bash

src/res/com.ulduzsoft.Birdtray.desktop

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[Desktop Entry]
2-
Encoding=UTF-8
32
Name=Birdtray
43
Keywords=Email;E-mail;Newsgroup;Feed;RSS
54
Keywords[ast]=Corréu;Corréu-e;Noticies;Discusiones;Mensaxes;Canales;RSS
@@ -28,5 +27,5 @@ Terminal=false
2827
X-MultipleArgs=false
2928
Type=Application
3029
Icon=com.ulduzsoft.Birdtray
31-
Categories=Application;Network;Email;
30+
Categories=Network;Email;
3231
StartupNotify=true

0 commit comments

Comments
 (0)