mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-03-15 00:19:42 +08:00
Compare commits
No commits in common. "1a8e3d5ab2789b5c145fea55accdc4a8e81ef059" and "1beb900455c4d54b258a576f44afa7b93c58eee4" have entirely different histories.
1a8e3d5ab2
...
1beb900455
5
.github/workflows/ubuntu.yml
vendored
5
.github/workflows/ubuntu.yml
vendored
@ -69,11 +69,6 @@ jobs:
|
||||
- name: Check if svg file exists
|
||||
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
|
||||
run: |
|
||||
# make sure Qt plugin finds QML sources so it can deploy the imported files
|
||||
|
@ -282,22 +282,7 @@ QString FluTools::getWallpaperFilePath() {
|
||||
auto path = result.mid(startIndex + 7, result.length() - startIndex - 8);
|
||||
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)
|
||||
QProcess process;
|
||||
QStringList args;
|
||||
|
Loading…
x
Reference in New Issue
Block a user