mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
Compare commits
4 Commits
1beb900455
...
1a8e3d5ab2
Author | SHA1 | Date | |
---|---|---|---|
|
1a8e3d5ab2 | ||
|
fb720b29ec | ||
|
552772391c | ||
|
3a34e98d80 |
5
.github/workflows/ubuntu.yml
vendored
5
.github/workflows/ubuntu.yml
vendored
@ -69,6 +69,11 @@ jobs:
|
|||||||
- name: Check if svg file exists
|
- name: Check if svg file exists
|
||||||
run: if [ ! -f "${targetName}.svg" ]; then echo "File not found, creating..."; touch ${targetName}.svg; fi
|
run: if [ ! -f "${targetName}.svg" ]; then echo "File not found, creating..."; touch ${targetName}.svg; fi
|
||||||
|
|
||||||
|
- name: Copy translation files
|
||||||
|
run: |
|
||||||
|
mkdir -p bin/release/usr/bin/
|
||||||
|
cp -r bin/Release/i18n/ bin/release/usr/bin/i18n/
|
||||||
|
|
||||||
- name: package
|
- name: package
|
||||||
run: |
|
run: |
|
||||||
# make sure Qt plugin finds QML sources so it can deploy the imported files
|
# make sure Qt plugin finds QML sources so it can deploy the imported files
|
||||||
|
@ -282,7 +282,22 @@ QString FluTools::getWallpaperFilePath() {
|
|||||||
auto path = result.mid(startIndex + 7, result.length() - startIndex - 8);
|
auto path = result.mid(startIndex + 7, result.length() - startIndex - 8);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
} else if (type == "ubuntu") {
|
||||||
|
QProcess process;
|
||||||
|
QStringList args;
|
||||||
|
args << "get";
|
||||||
|
args << "org.gnome.desktop.background";
|
||||||
|
args << "picture-uri";
|
||||||
|
process.start("gsettings", args);
|
||||||
|
process.waitForFinished();
|
||||||
|
QByteArray result = process.readAllStandardOutput().trimmed();
|
||||||
|
result = result.mid(1, result.length() - 2);
|
||||||
|
if (result.startsWith("file:///")) {
|
||||||
|
auto path = result.mid(7);
|
||||||
|
return path;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return {};
|
||||||
#elif defined(Q_OS_MACOS)
|
#elif defined(Q_OS_MACOS)
|
||||||
QProcess process;
|
QProcess process;
|
||||||
QStringList args;
|
QStringList args;
|
||||||
|
Loading…
Reference in New Issue
Block a user