Satoshi MailBeta Open in Satoshi Mail

Non-GUI option

Private email with Martti Malmi (sirius-m) · 6 messages · from 17 February 2010 · with Satoshi Nakamoto, mmalmi@cc.hut.fi

Read in Satoshi Mail Archive source

mmalmi@cc.hut.fi to Satoshi Nakamoto <satoshin@gmx.com> · · original
Just a few clues I've found about running the same binary without a GUI: 1) GTK supports running a program without display: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. This doesn't tell if it's possible in wxWidgets though. 2) wxAppConsole of wx 2.9 might be useful somehow. Just replacing wxApp with wxAppConsole doesn't work, I'm not sure how it should be used. It's not very well documented. 3) Another option might be to use IMPLEMENT_APP_NO_MAIN() and make our own main method.
Satoshi Nakamoto to mmalmi@cc.hut.fi · · original
mmalmi@cc.hut.fi wrote:
Just a few clues I've found about running the same binary without a GUI: 1) GTK supports running a program without display: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. This doesn't tell if it's possible in wxWidgets though.
I see it calls gtk-init-check in wxApp::Initialize. I can subclass Initialize, call the original one while suppressing the error message and ignore the return value. It seems to be working. Any suggestions what to name the command line switches and how to describe them? Is there any traditional standard? I'm currently using: -daemon (or -d) (Enables RPC and runs in the background) -server (Enables RPC)
Satoshi Nakamoto to Martti Malmi <mmalmi@cc.hut.fi> · · original
> Just a few clues I've found about running the same binary without a GUI: > > 1) GTK supports running a program without display: > http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. > This doesn't tell if it's possible in wxWidgets though. I see it calls gtk-init-check in wxApp::Initialize. I can subclass Initialize, call the original one while suppressing the error message and ignore the return value. It seems to be working.
This is working. A few more things and I'll upload it. We'll need to tell people to install the GTK libraries. Do you remember the apt-get command to install GTK, and can you install it without having a GUI installed?
mmalmi@cc.hut.fi to Satoshi Nakamoto <satoshin@gmx.com> · · original
mmalmi@cc.hut.fi wrote: > Just a few clues I've found about running the same binary without a GUI: > > 1) GTK supports running a program without display: > http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. > This doesn't tell if it's possible in wxWidgets though. I see it calls gtk-init-check in wxApp::Initialize. I can subclass Initialize, call the original one while suppressing the error message and ignore the return value. It seems to be working. Any suggestions what to name the command line switches and how to describe them? Is there any traditional standard? I'm currently using: -daemon (or -d) (Enables RPC and runs in the background) -server (Enables RPC)
That seems good, I don't know of any standards about it.
mmalmi@cc.hut.fi to Satoshi Nakamoto <satoshin@gmx.com> · · original
>> Just a few clues I've found about running the same binary without a GUI: >> >> 1) GTK supports running a program without display: >> http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. >> This doesn't tell if it's possible in wxWidgets though. > > I see it calls gtk-init-check in wxApp::Initialize. > > I can subclass Initialize, call the original one while suppressing > the error message and ignore the return value. It seems to be > working. This is working. A few more things and I'll upload it. We'll need to tell people to install the GTK libraries. Do you remember the apt-get command to install GTK, and can you install it without having a GUI installed?
It was probably apt-get install libgtk2.0-0. You can search for available packages like this: "apt-cache search libgtk". I'll give Drupal accounts to the bitcoin.org translators, so they can keep the translations up to date.
Satoshi Nakamoto to mmalmi@cc.hut.fi · · original
I'll give Drupal accounts to the bitcoin.org translators, so they can keep the translations up to date.
Good, that gives them a little sense of ownership and responsibility. I hope we get at least one .mo file for the software translation in time to put into the 0.3 release.