linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03540
[Branch ~linuxdcpp-team/linuxdcpp/trunk] Rev 413: Use Desktop Environment's default download folder
------------------------------------------------------------
revno: 413
fixes bug(s): https://launchpad.net/bugs/329805
committer: Steven Sheehy <steven.sheehy@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2011-03-07 21:52:40 -0600
message:
Use Desktop Environment's default download folder
modified:
linux/wulfor.cc
po/linuxdcpp.pot
--
lp:linuxdcpp
https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk
Your team LinuxDC++ Team is subscribed to branch lp:linuxdcpp.
To unsubscribe from this branch go to https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk/+edit-subscription
=== modified file 'linux/wulfor.cc'
--- linux/wulfor.cc 2010-12-23 04:10:02 +0000
+++ linux/wulfor.cc 2011-03-08 03:52:40 +0000
@@ -161,9 +161,12 @@
{
CommandlineArgs args;
+ std::string downloadPath = g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD);
+
dcpp::Util::PathsMap pathsMap;
pathsMap[dcpp::Util::PATH_RESOURCES] = _DATADIR;
pathsMap[dcpp::Util::PATH_LOCALE] = _DATADIR "/locale";
+ pathsMap[dcpp::Util::PATH_DOWNLOADS] = downloadPath + PATH_SEPARATOR_STR;
dcpp::Util::initialize(pathsMap);
IntlUtil::initialize();
=== modified file 'po/linuxdcpp.pot'
--- po/linuxdcpp.pot 2011-03-08 00:14:03 +0000
+++ po/linuxdcpp.pot 2011-03-08 03:52:40 +0000
@@ -8,7 +8,7 @@
"#-#-#-#-# glade.pot #-#-#-#-#\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://translations.launchpad.net/linuxdcpp\n"
-"POT-Creation-Date: 2011-03-06 23:27-0600\n"
+"POT-Creation-Date: 2011-03-07 18:26-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@xxxxxx>\n"
@@ -19,7 +19,7 @@
"#-#-#-#-# linux.pot #-#-#-#-#\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://translations.launchpad.net/linuxdcpp\n"
-"POT-Creation-Date: 2011-03-07 18:05-0600\n"
+"POT-Creation-Date: 2011-03-07 20:27-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@xxxxxx>\n"
@@ -468,7 +468,7 @@
msgid "Leave unchecked for default value"
msgstr ""
-#: glade/mainwindow.glade:9 linux/wulfor.cc:223
+#: glade/mainwindow.glade:9 linux/wulfor.cc:226
msgid "LinuxDC++"
msgstr ""
@@ -1569,7 +1569,7 @@
msgid "Download failed: %1%"
msgstr ""
-#: linux/mainwindow.cc:1432 linux/publichubs.cc:446 linux/transfers.cc:930
+#: linux/mainwindow.cc:1431 linux/publichubs.cc:446 linux/transfers.cc:930
#: linux/transfers.cc:1031
msgid "Download finished"
msgstr ""
@@ -1621,7 +1621,7 @@
msgstr ""
#. TRANSLATORS: Appears in a dialog prompt when a user command requires arguments.
-#: linux/mainwindow.cc:759
+#: linux/mainwindow.cc:758
#, boost-format
msgid "Enter a value for '%1%'"
msgstr ""
@@ -1634,7 +1634,7 @@
msgid "Exact Size"
msgstr ""
-#: linux/wulfor.cc:189
+#: linux/wulfor.cc:192
#, boost-format
msgid "Failed to communicate with existing instance: %1%"
msgstr ""
@@ -1663,7 +1663,7 @@
msgid "File not available"
msgstr ""
-#: linux/mainwindow.cc:1268
+#: linux/mainwindow.cc:1267
msgid ""
"File transfers will not work correctly until the connection settings are "
"adjusted or any application using the port is closed."
@@ -1804,7 +1804,7 @@
"share size)"
msgstr ""
-#: linux/mainwindow.cc:1104
+#: linux/mainwindow.cc:1103
msgid "Loading file list"
msgstr ""
@@ -1877,7 +1877,7 @@
msgid "No matches"
msgstr ""
-#: linux/wulfor.cc:211
+#: linux/wulfor.cc:214
msgid "No running instance found"
msgstr ""
@@ -1996,7 +1996,7 @@
msgid "Searching too soon, retry in %1% s"
msgstr ""
-#: linux/mainwindow.cc:1282
+#: linux/mainwindow.cc:1281
msgid ""
"Searching will not work correctly until the connection settings are adjusted "
"or any application using the port is closed."
@@ -2151,7 +2151,7 @@
msgid "UTF-8 (Unicode)"
msgstr ""
-#: linux/wulfor.cc:197
+#: linux/wulfor.cc:200
msgid ""
"Unable to communicate with existing instance and only one instance is "
"allowed per profile."
@@ -2166,15 +2166,15 @@
msgid "Unable to load file list: %1%"
msgstr ""
-#: linux/mainwindow.cc:1092
+#: linux/mainwindow.cc:1091
msgid "Unable to load file list: Invalid file list name"
msgstr ""
-#: linux/mainwindow.cc:1267
+#: linux/mainwindow.cc:1266
msgid "Unable to open TCP/TLS port"
msgstr ""
-#: linux/mainwindow.cc:1281
+#: linux/mainwindow.cc:1280
msgid "Unable to open UDP port"
msgstr ""