Bug#583398: opening files from thunar does not work, wrong path arguement in smplayer.desktop?

Ibragimov Rinat ibragimovrinat at mail.ru
Tue Jan 4 18:05:12 UTC 2011


I resend patch, my mailer ate spaces from previous attempt.

diff -ur smplayer-0.6.9-orig/src/smplayer.cpp smplayer-0.6.9/src/smplayer.cpp
--- smplayer-0.6.9-orig/src/smplayer.cpp	2010-01-21 03:52:42.000000000 +0300
+++ smplayer-0.6.9/src/smplayer.cpp	2011-01-04 20:34:36.000000000 +0300
@@ -30,6 +30,7 @@
 
 #include <QDir>
 #include <QApplication>
+#include <QUrl>
 
 #include <stdio.h>
 
@@ -242,6 +243,13 @@
 		}
 		else {
 			// File
+			QUrl fUrl;
+			QByteArray baUrl;
+			baUrl.append( argument );
+			fUrl.setEncodedUrl( baUrl );
+			if (fUrl.isValid()) {
+			    argument = fUrl.toLocalFile();
+			}
 			if (QFile::exists( argument )) {
 				argument = QFileInfo(argument).absoluteFilePath();
 			}








More information about the pkg-multimedia-maintainers mailing list