Hi, I noticed that the examples and templates paths in the file open
dialog lead to a nonexistent path. When I package rosegarden for
openSUSE I place examples and templates under /usr/share/rosegarden so I
have patched FileDialog.cpp to point to those directories. This might
not be desirable for "templates" because templates might need to be
writable, in which case rosegarden should load
"$home/.local/share/rosegarden/templates" with the supplied templates on
first use but it's better than having two useless buttons in the file
dialog widget. Patch attached.
Regards
Dave P
Index: rosegarden-10.02/src/gui/widgets/FileDialog.cpp
===================================================================
--- rosegarden-10.02.orig/src/gui/widgets/FileDialog.cpp
+++ rosegarden-10.02/src/gui/widgets/FileDialog.cpp
@@ -47,8 +47,8 @@ FileDialog::FileDialog(QWidget *parent,
     QList<QUrl> urls;
 
     QString home = QUrl::fromLocalFile(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)).path();
-    QString examples = home + "/.local/share/rosegarden/examples";
-    QString templates = home + "/.local/share/rosegarden/templates";
+    QString examples = "/usr/share/rosegarden/examples";
+    QString templates = "/usr/share/rosegarden/templates";
     QString rosegarden = home + "/rosegarden";
 
     RG_DEBUG  << "FileDialog::FileDialog(...)" << endl
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to