Remove --disable-gui feature as it still needs X to run, which makes it useless
This commit is contained in:
parent
8dd512732b
commit
04dcdb72a2
|
@ -59,17 +59,14 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the command line options
|
// Parse the command line options
|
||||||
bool hide_ui = false;
|
bool show_help = false;
|
||||||
bool show_help = false;
|
OptionSet option_set = new OptionSet () {
|
||||||
|
|
||||||
var p = new OptionSet () {
|
|
||||||
{ "d|disable-gui", _("Don't show the notification icon"), v => hide_ui = v != null },
|
|
||||||
{ "v|version", _("Print version information"), v => { PrintVersion (); } },
|
{ "v|version", _("Print version information"), v => { PrintVersion (); } },
|
||||||
{ "h|help", _("Show this help text"), v => show_help = v != null }
|
{ "h|help", _("Show this help text"), v => show_help = v != null }
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
p.Parse (args);
|
option_set.Parse (args);
|
||||||
|
|
||||||
} catch (OptionException e) {
|
} catch (OptionException e) {
|
||||||
Console.Write ("SparkleShare: ");
|
Console.Write ("SparkleShare: ");
|
||||||
|
@ -78,7 +75,7 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show_help)
|
if (show_help)
|
||||||
ShowHelp (p);
|
ShowHelp (option_set);
|
||||||
|
|
||||||
// Load the right controller for the OS
|
// Load the right controller for the OS
|
||||||
string controller_name = "Lin";
|
string controller_name = "Lin";
|
||||||
|
@ -101,7 +98,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Controller.Initialize ();
|
Controller.Initialize ();
|
||||||
|
|
||||||
if (Controller != null && !hide_ui) {
|
if (Controller != null) {
|
||||||
UI = new SparkleUI ();
|
UI = new SparkleUI ();
|
||||||
UI.Run ();
|
UI.Run ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue