Linux: fix path shortcut is written to
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
This commit is contained in:
		@@ -343,7 +343,7 @@ QString getDesktopDir()
 | 
			
		||||
bool createShortcut(QString destination, QString target, QStringList args, QString name, QString icon)
 | 
			
		||||
{
 | 
			
		||||
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
 | 
			
		||||
    destination = PathCombine(destination, name + ".desktop");
 | 
			
		||||
    destination += ".desktop";
 | 
			
		||||
 | 
			
		||||
    QFile f(destination);
 | 
			
		||||
    f.open(QIODevice::WriteOnly | QIODevice::Text);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user