Compare commits

..

4 Commits

Author SHA1 Message Date
zhuzichu
1a8e3d5ab2
Merge pull request #580 from lucky9loogn/fix/ubuntu-blur-behind-segmentation-fault
fix: 修复了在 Ubuntu 中启用亚克力效果无效且导致程序崩溃的问题
2024-12-27 09:14:23 +08:00
zhuzichu
fb720b29ec
Merge pull request #581 from lucky9loogn/fix/github-action-appimage-language-switch-not-working
fix(ci): 修复 GitHub Action 打包的 AppImage 语言切换无效
2024-12-27 09:13:48 +08:00
lucky9loogn
552772391c fix(ci): 修复 GitHub Action 打包的 AppImage 语言切换无效 2024-12-26 23:23:34 +08:00
lucky9loogn
3a34e98d80 fix: 修复了在 Ubuntu 中启用亚克力效果无效且导致程序崩溃的问题 2024-12-26 22:54:14 +08:00
2 changed files with 20 additions and 0 deletions

View File

@ -69,6 +69,11 @@ 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

View File

@ -282,7 +282,22 @@ 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;