fix: dde-open file failed
QUrl("/tmp/xxx.png").toLocalFile() is Empty..
Issue: https://github.com/linuxdeepin/developer-center/issues/8142
			
			
This commit is contained in:
		@ -968,7 +968,7 @@ LaunchTask ApplicationService::unescapeExec(const QString &str, const QStringLis
 | 
			
		||||
        execList.remove(location);
 | 
			
		||||
        auto it = execList.begin() + location;
 | 
			
		||||
        for (const auto &field : fields) {
 | 
			
		||||
            auto tmp = QUrl{field};
 | 
			
		||||
            auto tmp = QUrl::fromUserInput(field);
 | 
			
		||||
            if (auto scheme = tmp.scheme(); scheme.startsWith("file") or scheme.isEmpty()) {
 | 
			
		||||
                it = execList.insert(it, tmp.toLocalFile());
 | 
			
		||||
            } else {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user