Skip to content

Commit 7e365e5

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/cmake-setup
# Conflicts: # data/polkit/com.github.AcikKaynakGelistirmeToplulugu.rocontrol.policy
2 parents ae3c72b + 1951b6e commit 7e365e5

6 files changed

Lines changed: 59 additions & 20 deletions

File tree

.clang-format

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
# ro-Control clang-format configuration
3+
# CI bu dosyayı kullanır — değişiklik yapılırsa tüm kaynak dosyalar yeniden formatlanmalı.
4+
# Kullanım: find src/ -name "*.cpp" -o -name "*.h" | xargs clang-format -i
5+
6+
BasedOnStyle: LLVM
7+
Language: Cpp
8+
ColumnLimit: 80
9+
IndentWidth: 2
10+
TabWidth: 2
11+
UseTab: Never
12+
BreakBeforeBraces: Attach
13+
AllowShortFunctionsOnASingleLine: All
14+
AllowShortIfStatementsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
SortIncludes: true
17+
IncludeBlocks: Preserve
18+
...

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
qt6-qtwayland-devel \
3030
kf6-qqc2-desktop-style \
3131
polkit-devel \
32-
clang-tools-extra
32+
clang-tools-extra \
33+
qt6-qtbase-private-devel
3334
3435
- name: Configure (CMake)
3536
run: |
@@ -41,6 +42,9 @@ jobs:
4142
- name: Build
4243
run: cmake --build build --parallel
4344

45+
- name: Run tests
46+
run: cd build && ctest --output-on-failure
47+
4448
- name: Check formatting (clang-format)
4549
run: |
4650
find src \( -name "*.cpp" -o -name "*.h" \) -print0 | \
Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
3-
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
2+
<!DOCTYPE policyconfig PUBLIC
3+
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
4+
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
5+
46
<policyconfig>
5-
<vendor>Acik Kaynak Gelistirme Toplulugu</vendor>
6-
<vendor_url>https://github.com/Acik-Kaynak-Gelistirme-Toplulugu/ro-Control</vendor_url>
7-
<icon_name>ro-control</icon_name>
87

9-
<action id="com.github.AcikKaynakGelistirmeToplulugu.rocontrol.pkexec">
10-
<description>Execute privileged ro-Control operations</description>
11-
<message>Authentication is required to perform privileged system operations</message>
12-
<defaults>
13-
<allow_any>auth_admin</allow_any>
14-
<allow_inactive>auth_admin</allow_inactive>
15-
<allow_active>auth_admin_keep</allow_active>
16-
</defaults>
17-
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
18-
</action>
8+
<vendor>ro-Control</vendor>
9+
<vendor_url>https://github.com/Acik-Kaynak-Gelistirme-Toplulugu/ro-Control</vendor_url>
10+
11+
<action id="com.github.AcikKaynakGelistirmeToplulugu.rocontrol.manage-drivers">
12+
<description>Manage NVIDIA drivers</description>
13+
<description xml:lang="tr">NVIDIA sürücülerini yönet</description>
14+
<message>Authentication is required to manage NVIDIA drivers</message>
15+
<message xml:lang="tr">NVIDIA sürücülerini yönetmek için kimlik doğrulama gerekli</message>
16+
<icon_name>ro-control</icon_name>
17+
<defaults>
18+
<allow_any>auth_admin</allow_any>
19+
<allow_inactive>auth_admin</allow_inactive>
20+
<allow_active>auth_admin_keep</allow_active>
21+
</defaults>
22+
</action>
23+
24+
<action id="com.github.AcikKaynakGelistirmeToplulugu.rocontrol.pkexec">
25+
<description>Execute privileged ro-Control operations</description>
26+
<description xml:lang="tr">Ayricalikli ro-Control islemlerini calistir</description>
27+
<message>Authentication is required to perform privileged system operations</message>
28+
<message xml:lang="tr">Ayricalikli sistem islemleri icin kimlik dogrulama gerekli</message>
29+
<icon_name>ro-control</icon_name>
30+
<defaults>
31+
<allow_any>auth_admin</allow_any>
32+
<allow_inactive>auth_admin</allow_inactive>
33+
<allow_active>auth_admin_keep</allow_active>
34+
</defaults>
35+
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
36+
</action>
37+
1938
</policyconfig>

src/backend/monitor/gpumonitor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// GPU istatistikleri
2-
31
#include "gpumonitor.h"
2+
#include "system/commandrunner.h"
43

54
#include <QProcess>
65

src/backend/monitor/rammonitor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// RAM istatistikleri
2-
31
#include "rammonitor.h"
42

53
#include <QFile>

src/backend/system/dnfmanager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// DNF paket yoneticisi
22

33
#include "dnfmanager.h"
4+
#include "commandrunner.h"
45

56
#include <QStandardPaths>
67

0 commit comments

Comments
 (0)