Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File association breaking #164

Open
tieugene opened this issue Nov 4, 2022 · 0 comments
Open

File association breaking #164

tieugene opened this issue Nov 4, 2022 · 0 comments

Comments

@tieugene
Copy link

tieugene commented Nov 4, 2022

Don't do that (https://bugzilla.redhat.com/show_bug.cgi?id=2139751).

--- src/qvgeapp/qvgeMainWindow.cpp.orig 2022-11-20 17:37:43.695415665 +0300
+++ src/qvgeapp/qvgeMainWindow.cpp      2022-11-20 17:41:00.724414633 +0300
@@ -289,16 +289,5 @@
 
        CPlatformWin32::registerFileType("qvge.xgr", "QVGE native graph document", ".xgr", 0);
 
-#elif defined Q_OS_LINUX
-
-       // assuming application-xgr has been already added
-    //QSettings mimeapps("/usr/share/applications/defaults.list", QSettings::NativeFormat);
-    QSettings mimeapps(QDir::homePath() + "/.config/mimeapps.list", QSettings::IniFormat);
-    mimeapps.beginGroup("Default Applications");
-       mimeapps.setValue("application/xgr", "qvge.desktop");
-       mimeapps.endGroup();
-    mimeapps.sync();
-    qDebug() << mimeapps.status();
-
 #endif
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant