aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-03-26 12:31:06 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-03-26 12:31:06 -0700
commitc289d95d6bb3105a67b96a697ddb9dd773cf1033 (patch)
tree508e2cfdb851ef7ac863acc3a53001951fe95ef8
parent57de7cd603660b20b5f5c611f11f458d80be886f (diff)
parent7b90edb5a6cada7176012d09d748847b5f966585 (diff)
Merge pull request #991 from gavinandresen/disableWinURI
Disable bitcoin: URI handling on Windows for the 0.6 release
-rw-r--r--share/setup.nsi10
-rw-r--r--src/qt/bitcoin.cpp10
-rw-r--r--src/qt/qtipcserver.cpp6
3 files changed, 21 insertions, 5 deletions
diff --git a/share/setup.nsi b/share/setup.nsi
index eba3b66dc8..bffef9c413 100644
--- a/share/setup.nsi
+++ b/share/setup.nsi
@@ -94,10 +94,12 @@ Section -post SEC0001
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
- WriteRegStr HKCR "bitcoin" "URL Protocol" ""
- WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"
- WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe
- WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'
+
+ # bitcoin: URI handling disabled for 0.6.0
+ # WriteRegStr HKCR "bitcoin" "URL Protocol" ""
+ # WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"
+ # WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe
+ # WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'
SectionEnd
# Macro for selecting uninstaller sections
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 27d57b35e1..68f750ddaf 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -126,6 +126,9 @@ std::string _(const char* psz)
#ifndef BITCOIN_QT_TEST
int main(int argc, char *argv[])
{
+#if !defined(MAC_OSX) && !defined(WIN32)
+// TODO: implement qtipcserver.cpp for Mac and Windows
+
// Do this early as we don't want to bother initializing if we are just calling IPC
for (int i = 1; i < argc; i++)
{
@@ -144,6 +147,7 @@ int main(int argc, char *argv[])
}
}
}
+#endif
// Internal string conversion is all UTF-8
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
@@ -245,6 +249,10 @@ int main(int argc, char *argv[])
// Place this here as guiref has to be defined if we dont want to lose URLs
ipcInit();
+
+#if !defined(MAC_OSX) && !defined(WIN32)
+// TODO: implement qtipcserver.cpp for Mac and Windows
+
// Check for URL in argv
for (int i = 1; i < argc; i++)
{
@@ -259,7 +267,7 @@ int main(int argc, char *argv[])
}
}
}
-
+#endif
app.exec();
guiref = 0;
diff --git a/src/qt/qtipcserver.cpp b/src/qt/qtipcserver.cpp
index 7f5d040338..8b9270e178 100644
--- a/src/qt/qtipcserver.cpp
+++ b/src/qt/qtipcserver.cpp
@@ -48,6 +48,12 @@ void ipcInit()
// TODO: implement bitcoin: URI handling the Mac Way
return;
#endif
+#ifdef WIN32
+ // TODO: THOROUGHLY test boost::interprocess fix,
+ // and make sure there are no Windows argument-handling exploitable
+ // problems.
+ return;
+#endif
message_queue* mq;
char strBuf[257];