[LyX/master] Set desktop name for Wayland

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat Jul 11 18:16:42 UTC 2020


commit 2a80b0ac01bed283d3f06d6dbe50307b2a3bab15
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Thu Apr 30 12:35:57 2020 +0200

    Set desktop name for Wayland
    
    Fixes bug 11847.
---
 src/frontends/qt/GuiApplication.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp
index 4f14bec..213321f 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -1003,6 +1003,10 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
 	QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
 #endif
 
+#if QT_VERSION >= 0x050700
+	setDesktopFileName(lyx_package);
+#endif
+
 	qsrand(QDateTime::currentDateTime().toTime_t());
 
 	// Install LyX translator for missing Qt translations


More information about the lyx-cvs mailing list