1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/***************************************************************************
** $Id: main.cpp,v 1.61 2010/07/24 12:24:04 hoganrobert Exp $
* Copyright (C) 2006 - 2008 Robert Hogan *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "tork.h"
#include "crashhandler.h"
#include "torkconfig.h"
#include "functions.h"
#include "newfirstrunwizard.h"
#include <tdeapplication.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <tdelocale.h>
#include <tdeconfigdialogmanager.h>
static const char description[] =
I18N_NOOP("<b>TorK - An Anonymity Manager for the TDE Desktop.</b>\n"
"This product is produced independently from the Tor anonymity\n"
"software and carries no guarantee from The Tor Project about\n"
"quality, suitability or anything else.");
static const char version[] = "";
static const char title[] = "TorK 0.33";
static TDECmdLineOptions options[] =
{
{ "+[URL]", I18N_NOOP( "Document to open." ), 0 },
{ "toggleTDE", I18N_NOOP("Toggle Anonymous TDE"), 0 },
{ "anonymousFirefox", I18N_NOOP("Launch Anonymous Firefox"), 0 },
{ "anonymousOpera", I18N_NOOP("Launch Anonymous Opera"), 0 },
{ "anonymousKonsole", I18N_NOOP("Launch Anonymous Konsole"), 0 },
{ "anonymousKopete", I18N_NOOP("Launch Anonymous Kopete"), 0 },
{ "anonymousPidgin", I18N_NOOP("Launch Anonymous Pidgin"), 0 },
{ "anonymousGaim", I18N_NOOP("Launch Anonymous Gaim"), 0 },
{ "anonymousKonversation", I18N_NOOP("Launch Anonymous Konversation"), 0 },
{ "anonymousEmail", I18N_NOOP("Launch Mixminion Interface"), 0 },
{ 0, 0, 0 }
};
int main(int argc, char **argv)
{
TDEAboutData about("tork", I18N_NOOP(title), version, description,
TDEAboutData::License_GPL, "(C) 2006 - 2008 Robert Hogan", 0, 0, "[email protected]");
about.addAuthor( "Robert Hogan", I18N_NOOP("Author and Maintainer"), "[email protected]", "http://tork.anonymityanywhere.com" );
about.addAuthor( "Corinna Habets", I18N_NOOP("Icons"), 0);
about.addAuthor( "Contains code by: Matt Edman, Justin Hipple, Max Howell,", 0, "" );
about.addAuthor( " Trolltech AS, Roger Dingledine, Nick Mathewson, ", 0, "" );
about.addAuthor( " Sebastien Trueg, Joris Guisson, Markus Gustavsson, ", 0, "" );
about.addAuthor( " Diego Petena, Ben Burton, David Sansome ", 0, "" );
about.addAuthor( " Stephan Binner, Hugo Parente Lima ", 0, "" );
about.addAuthor( I18N_NOOP("This product includes GeoIP data created by MaxMind"),
0, 0, "http://maxmind.com/" );
about.addAuthor( I18N_NOOP("The Tor(TM) trademark and Tor Onion Logo are trademarks of The Tor Project."),
0, 0, "http://www.torproject.org/" );
about.addCredit( "Matthias Slovig", I18N_NOOP("Flag images by which can be used under this Creative Commons License: "
"http://creativecommons.org/licenses/by/2.0/de/"), "[email protected]", "http://flags.blogpotato.de/");
about.addCredit( "Emre Aladag, Inanc Yildirgan, Mustafa Gunay, Ertugrul Erata", I18N_NOOP("Turkish Translation"), 0);
about.addCredit( "Liu Songhe", I18N_NOOP("Chinese Translation"), "[email protected]");
about.addCredit( "Marek Stopka", I18N_NOOP("Czech Translation"), "[email protected]");
about.addCredit( "Hans-J. Ullrich", I18N_NOOP("German Translation"), "[email protected]");
about.addCredit( "Max Urgel", I18N_NOOP("German Translation"), "[email protected]");
about.addCredit( "Daniel Berthereau", I18N_NOOP("French Translation"),
"[email protected]");
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options);
TDEApplication app;
//Check for the existence of anonymizable/helper programs first.
TQStringList programList;
programList << "firefox" << "kopete" << "gaim" <<
"pidgin" << "opera" << "konversation"
<< "konsole" << "yakuake" << "xterm" << "konqueror"
<< "rxvt" << "gnome-terminal" << "gpg";
TorkConfig::setAvailablePrograms(findPrograms(programList));
//Run the wizard if necessary, and exit TorK completely if the wizard is
//cancelled.
if (TorkConfig::user().isEmpty()){
FirstRunWizard wizard;
wizard.setCaption( i18n( "First-Run Wizard" ));
if (wizard.exec() == TQDialog::Rejected) {
TorkConfig::setUser("");
return 0;
}
}
// see if we are starting with session management
tork *widget = new tork;
if (app.isRestored())
widget->hide();
else
widget->show();
//TDECrash::setCrashHandler( torK::Crash::crashHandler );
return app.exec();
}
|