Toshaan Bharvani
2 years ago
6 changed files with 109 additions and 9 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<component type="desktop-application"> |
||||
<id>com.nextcloud.desktopclient.nextcloud</id> |
||||
<name>Nextcloud Desktop</name> |
||||
<project_license>GPL-2.0+</project_license> |
||||
<summary>Nextcloud desktop synchronization client</summary> |
||||
<metadata_license>CC0-1.0</metadata_license> |
||||
<description> |
||||
<p>The Nextcloud desktop client allows you to keep one or more folders full of |
||||
your photos, videos and documents synchronized with your server. Any file you |
||||
add, modify or delete in the synced folders on your desktop or laptop will show |
||||
up, change or disappear on the server and all other connected devices. Thanks |
||||
to the client, you can work with your files even when you are not online!</p> |
||||
</description> |
||||
<screenshots> |
||||
<screenshot type="default"> |
||||
<caption>The options dialog</caption> |
||||
<image>https://nextcloud.com/wp-content/uploads/2022/04/linux.png</image> |
||||
</screenshot> |
||||
</screenshots> |
||||
<url type="homepage">https://nextcloud.com</url> |
||||
<content_rating type="oars-1.1"/> |
||||
</component> |
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
--- desktop-3.6.0-orig/src/gui/main.cpp 2022-09-14 20:07:40.359852434 -0500 |
||||
+++ desktop-3.6.0/src/gui/main.cpp 2022-09-14 20:07:20.869331548 -0500 |
||||
@@ -56,8 +56,27 @@ |
||||
.arg(Theme::instance()->appNameGUI())); |
||||
} |
||||
|
||||
+#ifdef Q_OS_LINUX |
||||
+void wayland_hacks() |
||||
+{ |
||||
+ QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower(); |
||||
+ QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower(); |
||||
+ QByteArray sessionType = qgetenv("XDG_SESSION_TYPE").toLower(); |
||||
+ if (sessionType.contains("wayland") && (currentDesktop.contains("gnome") || sessionDesktop.contains("gnome"))) |
||||
+ { |
||||
+ qputenv("QT_QPA_PLATFORM", "xcb"); |
||||
+ } |
||||
+} |
||||
+#endif |
||||
+ |
||||
+ |
||||
int main(int argc, char **argv) |
||||
{ |
||||
+ |
||||
+#ifdef Q_OS_LIUX |
||||
+ wayland_hacks(); |
||||
+#endif |
||||
+ |
||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox"); |
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); |
||||
|
Loading…
Reference in new issue