33#include <QAbstractButton>
34#include <QAbstractItemView>
35#include <QApplication>
38#include <QDesktopServices>
40#include <QDoubleValidator>
43#include <QFontDatabase>
44#include <QFontMetrics>
45#include <QGuiApplication>
48#include <QLatin1String>
54#include <QPluginLoader>
55#include <QProgressDialog>
61#include <QTextDocument>
80 return QLocale::system().toString(date.date(), QLocale::ShortFormat) + QString(
" ") + date.toString(
"hh:mm");
85 return dateTimeStr(QDateTime::fromSecsSinceEpoch(nTime));
90 if (use_embedded_font) {
91 return {
"Roboto Mono"};
93 return QFontDatabase::systemFont(QFontDatabase::FixedFont);
97static const uint8_t
dummydata[] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58,0x86,0xb6,0x7d,0x06,0x52,0x99,0x92,0x59,0x15,0xae,0xb1,0x72,0xc0,0x66,0x47};
104 for(
int i=0; i<256; ++i) {
109 sourcedata[sourcedata.size()-1] += 1;
116 parent->setFocusProxy(widget);
121 widget->setPlaceholderText(QObject::tr(
"Enter a Bitcoin address (e.g. %1)").arg(
129 QObject::connect(
new QShortcut(shortcut, button), &QShortcut::activated, [button]() { button->animateClick(); });
135 if(!uri.isValid() || uri.scheme() != QString(
"bitcoin"))
141 if (rv.
address.endsWith(
"/")) {
146 QUrlQuery uriQuery(uri);
147 QList<QPair<QString, QString> > items = uriQuery.queryItems();
148 for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++)
150 bool fShouldReturnFalse =
false;
151 if (i->first.startsWith(
"req-"))
153 i->first.remove(0, 4);
154 fShouldReturnFalse =
true;
157 if (i->first ==
"label")
159 rv.
label = i->second;
160 fShouldReturnFalse =
false;
162 if (i->first ==
"message")
165 fShouldReturnFalse =
false;
167 else if (i->first ==
"amount")
169 if(!i->second.isEmpty())
176 fShouldReturnFalse =
false;
179 if (fShouldReturnFalse)
191 QUrl uriInstance(uri);
197 bool bech_32 = info.
address.startsWith(QString::fromStdString(
Params().Bech32HRP() +
"1"));
199 QString ret = QString(
"bitcoin:%1").arg(bech_32 ? info.
address.toUpper() : info.
address);
208 if (!info.
label.isEmpty())
210 QString lbl(QUrl::toPercentEncoding(info.
label));
211 ret += QString(
"%1label=%2").arg(paramCount == 0 ?
"?" :
"&").arg(lbl);
217 QString msg(QUrl::toPercentEncoding(info.
message));
218 ret += QString(
"%1message=%2").arg(paramCount == 0 ?
"?" :
"&").arg(msg);
229 CTxOut txOut(amount, script);
235 QString escaped = str.toHtmlEscaped();
238 escaped = escaped.replace(
"\n",
"<br>\n");
245 return HtmlEscape(QString::fromStdString(str), fMultiLine);
250 if(!view || !view->selectionModel())
252 QModelIndexList selection = view->selectionModel()->selectedRows(column);
254 if(!selection.isEmpty())
261QList<QModelIndex>
getEntryData(
const QAbstractItemView *view,
int column)
263 if(!view || !view->selectionModel())
264 return QList<QModelIndex>();
265 return view->selectionModel()->selectedRows(column);
271 if (selection.isEmpty())
return false;
272 return !selection.at(0).data(role).toString().isEmpty();
277 const int id = QFontDatabase::addApplicationFont(file_name);
287 const QString &filter,
288 QString *selectedSuffixOut)
290 QString selectedFilter;
294 myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
304 QRegExp filter_re(
".* \\(\\*\\.(.*)[ \\)]");
305 QString selectedSuffix;
306 if(filter_re.exactMatch(selectedFilter))
308 selectedSuffix = filter_re.cap(1);
312 QFileInfo info(result);
313 if(!result.isEmpty())
315 if(info.suffix().isEmpty() && !selectedSuffix.isEmpty())
318 if(!result.endsWith(
"."))
320 result.append(selectedSuffix);
325 if(selectedSuffixOut)
327 *selectedSuffixOut = selectedSuffix;
333 const QString &filter,
334 QString *selectedSuffixOut)
336 QString selectedFilter;
340 myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
349 if(selectedSuffixOut)
352 QRegExp filter_re(
".* \\(\\*\\.(.*)[ \\)]");
353 QString selectedSuffix;
354 if(filter_re.exactMatch(selectedFilter))
356 selectedSuffix = filter_re.cap(1);
358 *selectedSuffixOut = selectedSuffix;
365 if(QThread::currentThread() != qApp->thread())
367 return Qt::BlockingQueuedConnection;
371 return Qt::DirectConnection;
377 QWidget *atW = QApplication::widgetAt(w->mapToGlobal(p));
378 if (!atW)
return false;
379 return atW->window() == w;
387 &&
checkPoint(QPoint(w->width() - 1, w->height() - 1), w)
388 &&
checkPoint(QPoint(w->width() / 2, w->height() / 2), w));
399 if (w->isMinimized()) {
411 QObject::connect(
new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), w), &QShortcut::activated, w, &QWidget::close);
430 if (!configFile.good())
436 bool res = QDesktopServices::openUrl(QUrl::fromLocalFile(
boostPathToQString(pathConfig)));
440 res = QProcess::startDetached(
"/usr/bin/open", QStringList{
"-t",
boostPathToQString(pathConfig)});
449 size_threshold(_size_threshold)
456 if(evt->type() == QEvent::ToolTipChange)
458 QWidget *widget =
static_cast<QWidget*
>(obj);
459 QString tooltip = widget->toolTip();
460 if(tooltip.size() >
size_threshold && !tooltip.startsWith(
"<qt") && !Qt::mightBeRichText(tooltip))
464 tooltip =
"<qt>" +
HtmlEscape(tooltip,
true) +
"</qt>";
465 widget->setToolTip(tooltip);
469 return QObject::eventFilter(obj, evt);
479 if (event->type() == QEvent::FocusOut) {
480 auto focus_out =
static_cast<QFocusEvent*
>(event);
481 if (focus_out->reason() != Qt::PopupFocusReason) {
482 auto label = qobject_cast<QLabel*>(watched);
484 auto flags = label->textInteractionFlags();
485 label->setTextInteractionFlags(Qt::NoTextInteraction);
486 label->setTextInteractionFlags(
flags);
491 return QObject::eventFilter(watched, event);
495fs::path static StartupShortcutPath()
499 return GetSpecialFolderPath(CSIDL_STARTUP) /
"Bitcoin.lnk";
501 return GetSpecialFolderPath(CSIDL_STARTUP) /
"Bitcoin (testnet).lnk";
502 return GetSpecialFolderPath(CSIDL_STARTUP) /
strprintf(
"Bitcoin (%s).lnk", chain);
514 fs::remove(StartupShortcutPath());
518 CoInitialize(
nullptr);
521 IShellLinkW* psl =
nullptr;
522 HRESULT hres = CoCreateInstance(CLSID_ShellLink,
nullptr,
523 CLSCTX_INPROC_SERVER, IID_IShellLinkW,
524 reinterpret_cast<void**
>(&psl));
530 GetModuleFileNameW(
nullptr, pszExePath, ARRAYSIZE(pszExePath));
533 QString strArgs =
"-min";
538 psl->SetPath(pszExePath);
539 PathRemoveFileSpecW(pszExePath);
540 psl->SetWorkingDirectory(pszExePath);
541 psl->SetShowCmd(SW_SHOWMINNOACTIVE);
542 psl->SetArguments(strArgs.toStdWString().c_str());
546 IPersistFile* ppf =
nullptr;
547 hres = psl->QueryInterface(IID_IPersistFile,
reinterpret_cast<void**
>(&ppf));
551 hres = ppf->Save(StartupShortcutPath().wstring().c_str(), TRUE);
564#elif defined(Q_OS_LINUX)
571 char* pszConfigHome = getenv(
"XDG_CONFIG_HOME");
572 if (pszConfigHome)
return fs::path(pszConfigHome) /
"autostart";
573 char* pszHome = getenv(
"HOME");
574 if (pszHome)
return fs::path(pszHome) /
".config" /
"autostart";
578fs::path static GetAutostartFilePath()
582 return GetAutostartDir() /
"bitcoin.desktop";
583 return GetAutostartDir() /
strprintf(
"bitcoin-%s.desktop", chain);
589 if (!optionFile.good())
593 while (!optionFile.eof())
595 getline(optionFile, line);
596 if (line.find(
"Hidden") != std::string::npos &&
597 line.find(
"true") != std::string::npos)
608 fs::remove(GetAutostartFilePath());
612 ssize_t r = readlink(
"/proc/self/exe", pszExePath,
sizeof(pszExePath) - 1);
615 pszExePath[r] =
'\0';
617 fs::create_directories(GetAutostartDir());
619 fsbridge::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out | std::ios_base::trunc);
620 if (!optionFile.good())
624 optionFile <<
"[Desktop Entry]\n";
625 optionFile <<
"Type=Application\n";
627 optionFile <<
"Name=Bitcoin\n";
629 optionFile <<
strprintf(
"Name=Bitcoin (%s)\n", chain);
630 optionFile <<
"Exec=" << pszExePath <<
strprintf(
" -min -chain=%s\n", chain);
631 optionFile <<
"Terminal=false\n";
632 optionFile <<
"Hidden=false\n";
647 QClipboard* clipboard = QApplication::clipboard();
648 clipboard->setText(str, QClipboard::Clipboard);
649 if (clipboard->supportsSelection()) {
650 clipboard->setText(str, QClipboard::Selection);
661 return QString::fromStdString(path.
u8string());
682 if (prepend_direction) {
686 QObject::tr(
"Inbound") :
689 QObject::tr(
"Outbound") +
" ";
711 int days = secs / 86400;
712 int hours = (secs % 86400) / 3600;
713 int mins = (secs % 3600) / 60;
714 int seconds = secs % 60;
717 strList.append(QObject::tr(
"%1 d").arg(days));
719 strList.append(QObject::tr(
"%1 h").arg(hours));
721 strList.append(QObject::tr(
"%1 m").arg(mins));
722 if (seconds || (!days && !hours && !mins))
723 strList.append(QObject::tr(
"%1 s").arg(seconds));
725 return strList.join(
" ");
733 strList.append(QString::fromStdString(flag));
737 return strList.join(
", ");
739 return QObject::tr(
"None");
744 return (ping_time == std::chrono::microseconds::max() || ping_time == 0us) ?
746 QObject::tr(
"%1 ms").arg(QString::number((
int)(
count_microseconds(ping_time) / 1000), 10));
751 return QObject::tr(
"%1 s").arg(QString::number((
int)nTimeOffset, 10));
757 QString timeBehindText;
758 const int HOUR_IN_SECONDS = 60*60;
759 const int DAY_IN_SECONDS = 24*60*60;
760 const int WEEK_IN_SECONDS = 7*24*60*60;
761 const int YEAR_IN_SECONDS = 31556952;
764 timeBehindText = QObject::tr(
"%n second(s)",
"",secs);
766 else if(secs < 2*HOUR_IN_SECONDS)
768 timeBehindText = QObject::tr(
"%n minute(s)",
"",secs/60);
770 else if(secs < 2*DAY_IN_SECONDS)
772 timeBehindText = QObject::tr(
"%n hour(s)",
"",secs/HOUR_IN_SECONDS);
774 else if(secs < 2*WEEK_IN_SECONDS)
776 timeBehindText = QObject::tr(
"%n day(s)",
"",secs/DAY_IN_SECONDS);
778 else if(secs < YEAR_IN_SECONDS)
780 timeBehindText = QObject::tr(
"%n week(s)",
"",secs/WEEK_IN_SECONDS);
784 qint64 years = secs / YEAR_IN_SECONDS;
785 qint64 remainder = secs % YEAR_IN_SECONDS;
786 timeBehindText = QObject::tr(
"%1 and %2").arg(QObject::tr(
"%n year(s)",
"", years)).arg(QObject::tr(
"%n week(s)",
"", remainder/WEEK_IN_SECONDS));
788 return timeBehindText;
794 return QObject::tr(
"%1 B").arg(bytes);
795 if (bytes < 1'000'000)
796 return QObject::tr(
"%1 kB").arg(bytes / 1'000);
797 if (bytes < 1'000'000'000)
798 return QObject::tr(
"%1 MB").arg(bytes / 1'000'000);
800 return QObject::tr(
"%1 GB").arg(bytes / 1'000'000'000);
804 while(font_size >= minPointSize) {
805 font.setPointSizeF(font_size);
806 QFontMetrics fm(font);
816 : QLabel{parent}, m_platform_style{platform_style}
831 if (e->type() == QEvent::PaletteChange) {
835 QLabel::changeEvent(e);
860 if (event->type() == QEvent::KeyPress) {
861 if (
static_cast<QKeyEvent*
>(event)->key() == Qt::Key_Escape) {
865 return QItemDelegate::eventFilter(
object, event);
872 const int margin =
TextWidth(dialog->fontMetrics(), (
"X"));
873 dialog->resize(dialog->width() + 2 * margin, dialog->height());
879 dialog->setMinimumDuration(0);
882int TextWidth(
const QFontMetrics& fm,
const QString& text)
884#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
885 return fm.horizontalAdvance(text);
887 return fm.width(text);
894 const std::string qt_link{
"static"};
896 const std::string qt_link{
"dynamic"};
898#ifdef QT_STATICPLUGIN
899 const std::string plugin_link{
"static"};
901 const std::string plugin_link{
"dynamic"};
903 LogPrintf(
"Qt %s (%s), plugin=%s (%s)\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString(), plugin_link);
904 const auto static_plugins = QPluginLoader::staticPlugins();
905 if (static_plugins.empty()) {
909 for (
const QStaticPlugin& p : static_plugins) {
910 QJsonObject meta_data = p.metaData();
911 const std::string plugin_class = meta_data.take(QString(
"className")).toString().toStdString();
912 const int plugin_version = meta_data.take(QString(
"version")).toInt();
913 LogPrintf(
" %s, version %d\n", plugin_class, plugin_version);
917 LogPrintf(
"Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className());
918 LogPrintf(
"System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
919 for (
const QScreen* s : QGuiApplication::screens()) {
920 LogPrintf(
"Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
924void PopupMenu(QMenu* menu,
const QPoint& point, QAction* at_action)
927 if (QApplication::platformName() ==
"minimal")
return;
928 menu->popup(point, at_action);
933#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
934 return date.startOfDay();
936 return QDateTime(date);
942#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
943 return !label->pixmap(Qt::ReturnByValue).isNull();
945 return label->pixmap() !=
nullptr;
955#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
956 return label->pixmap(Qt::ReturnByValue).toImage();
958 return label->pixmap()->toImage();
964 return QString(
source).replace(
966 QLatin1String(
"<a href=\"") + link + QLatin1String(
"\">") + link + QLatin1String(
"</a>"));
970 const std::exception* exception,
971 const QObject* sender,
972 const QObject* receiver)
974 std::string description = sender->metaObject()->className();
976 description += receiver->metaObject()->className();
982 dialog->setAttribute(Qt::WA_DeleteOnClose);
983 dialog->setWindowModality(Qt::ApplicationModal);
int64_t CAmount
Amount in satoshis (Can be negative)
std::string EncodeBase58(Span< const unsigned char > input)
Why base-58 instead of standard base-64 encoding?
const CChainParams & Params()
Return the currently selected parameters.
const fs::path & GetDataDirNet() const
Get data directory path with appended network identifier.
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
std::string GetChainName() const
Returns the appropriate chain name from the program arguments.
Bitcoin address widget validator, checks for a valid bitcoin address.
Base58 entry widget validator, checks for valid characters and removes some whitespace.
static bool parse(int unit, const QString &value, CAmount *val_out)
Parse string to coin amount.
static QString format(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=SeparatorStyle::STANDARD, bool justify=false)
Format as string.
static const std::string TESTNET
static const std::string MAIN
Chain name strings.
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
Serialized script, used inside transaction inputs and outputs.
An output of a transaction.
void mouseReleaseEvent(QMouseEvent *event) override
ClickableLabel(const PlatformStyle *platform_style, QWidget *parent=nullptr)
void clicked(const QPoint &point)
Emitted when the label is clicked.
void mouseReleaseEvent(QMouseEvent *event) override
void clicked(const QPoint &point)
Emitted when the progressbar is clicked.
bool eventFilter(QObject *object, QEvent *event) override
bool eventFilter(QObject *watched, QEvent *event) override
LabelOutOfFocusEventFilter(QObject *parent)
const PlatformStyle * m_platform_style
void changeEvent(QEvent *e) override
ThemedLabel(const PlatformStyle *platform_style, QWidget *parent=nullptr)
void setThemedPixmap(const QString &image_filename, int width, int height)
void updateThemedPixmap()
bool eventFilter(QObject *obj, QEvent *evt) override
ToolTipToRichTextFilter(int size_threshold, QObject *parent=nullptr)
Line edit that can be marked as "invalid" to show input validation feedback.
void setCheckValidator(const QValidator *v)
Path class wrapper to prepare application code for transition from boost::filesystem library to std::...
std::string u8string() const
Top-level interface for a bitcoin node (bitcoind process).
bool IsValidDestinationString(const std::string &str, const CChainParams ¶ms)
CTxDestination DecodeDestination(const std::string &str, std::string &error_msg)
void ForceActivation()
Force application activation on macOS.
Utility functions used by the Bitcoin Qt UI.
QString NetworkToQString(Network net)
Convert enum Network to QString.
fs::path qstringToBoostPath(const QString &path)
Convert QString to OS specific boost path through UTF-8.
bool isObscured(QWidget *w)
QImage GetImage(const QLabel *label)
Qt::ConnectionType blockingGUIThreadConnection()
Get connection type to call object slot in GUI thread with invokeMethod.
QString HtmlEscape(const QString &str, bool fMultiLine)
void PopupMenu(QMenu *menu, const QPoint &point, QAction *at_action)
Call QMenu::popup() only on supported QT_QPA_PLATFORM.
QList< QModelIndex > getEntryData(const QAbstractItemView *view, int column)
Return a field of the currently selected entry as a QString.
QFont fixedPitchFont(bool use_embedded_font)
QString formatBytes(uint64_t bytes)
void AddButtonShortcut(QAbstractButton *button, const QKeySequence &shortcut)
Connects an additional shortcut to a QAbstractButton.
QString MakeHtmlLink(const QString &source, const QString &link)
Replaces a plain text link with an HTML tagged one.
void handleCloseWindowShortcut(QWidget *w)
void PolishProgressDialog(QProgressDialog *dialog)
bool isDust(interfaces::Node &node, const QString &address, const CAmount &amount)
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
static const uint8_t dummydata[]
QString getDefaultDataDirectory()
Determine default data directory for operating system.
void copyEntryData(const QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when ...
QDateTime StartOfDay(const QDate &date)
Returns the start-moment of the day in local time.
QString boostPathToQString(const fs::path &path)
Convert OS specific boost path to QString through UTF-8.
bool SetStartOnSystemStartup(bool fAutoStart)
static std::string DummyAddress(const CChainParams ¶ms)
void bringToFront(QWidget *w)
bool HasPixmap(const QLabel *label)
Returns true if pixmap has been set.
void LogQtInfo()
Writes to debug.log short info about the used Qt and the host system.
QString formatPingTime(std::chrono::microseconds ping_time)
Format a CNodeStats.m_last_ping_time into a user-readable string or display N/A, if 0.
QString dateTimeStr(const QDateTime &date)
QString formatDurationStr(int secs)
Convert seconds into a QString with days, hours, mins, secs.
void LoadFont(const QString &file_name)
Loads the font from the file specified by file_name, aborts if it fails.
void PrintSlotException(const std::exception *exception, const QObject *sender, const QObject *receiver)
bool checkPoint(const QPoint &p, const QWidget *w)
QString formatBitcoinURI(const SendCoinsRecipient &info)
QString formatTimeOffset(int64_t nTimeOffset)
Format a CNodeCombinedStats.nTimeOffset into a user-readable string.
QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction)
Convert enum ConnectionType to QString.
QString formatServicesStr(quint64 mask)
Format CNodeStats.nServices bitmask into a user-readable string.
QString formatNiceTimeOffset(qint64 secs)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
bool GetStartOnSystemStartup()
void ShowModalDialogAndDeleteOnClose(QDialog *dialog)
Shows a QDialog instance asynchronously, and deletes it on close.
int TextWidth(const QFontMetrics &fm, const QString &text)
Returns the distance in pixels appropriate for drawing a subsequent character after text.
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void setClipboard(const QString &str)
bool hasEntryData(const QAbstractItemView *view, int column, int role)
Returns true if the specified field of the currently selected view entry is not empty.
qreal calculateIdealFontSize(int width, const QString &text, QFont font, qreal minPointSize, qreal font_size)
static path u8path(const std::string &string)
static bool exists(const path &p)
ConnectionType
Different types of connections to a peer.
@ BLOCK_RELAY
We use block-relay-only connections to help prevent against partition attacks.
@ MANUAL
We open manual connections to addresses that users explicitly requested via the addnode RPC or the -a...
@ OUTBOUND_FULL_RELAY
These are the default connections that we use to connect with the network.
@ FEELER
Feeler connections are short-lived connections made to check that a node is alive.
@ INBOUND
Inbound connections are those initiated by a peer.
@ ADDR_FETCH
AddrFetch connections are short lived connections used to solicit addresses from peers.
@ NET_MAX
Dummy value to indicate the number of NET_* constants.
@ NET_ONION
TOR (v2 or v3)
@ NET_UNROUTABLE
Addresses from these networks are not publicly routable on the global Internet.
@ NET_INTERNAL
A set of addresses that represent the hash of a string or FQDN.
bool IsDust(const CTxOut &txout, const CFeeRate &dustRelayFeeIn)
std::vector< std::string > serviceFlagsToStr(uint64_t flags)
Convert service flags (a bitmask of NODE_*) to human readable strings.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::variant< CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script template with a specific destination.
constexpr int64_t count_microseconds(std::chrono::microseconds t)
fs::path GetDefaultDataDir()
fs::path GetConfigFile(const std::string &confPath)
void PrintExceptionContinue(const std::exception *pex, const char *pszThread)
const char *const BITCOIN_CONF_FILENAME