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
|
||||
bool hide_ui = false;
|
||||
bool show_help = false;
|
||||
|
||||
var p = new OptionSet () {
|
||||
{ "d|disable-gui", _("Don't show the notification icon"), v => hide_ui = v != null },
|
||||
OptionSet option_set = new OptionSet () {
|
||||
{ "v|version", _("Print version information"), v => { PrintVersion (); } },
|
||||
{ "h|help", _("Show this help text"), v => show_help = v != null }
|
||||
};
|
||||
|
||||
try {
|
||||
p.Parse (args);
|
||||
option_set.Parse (args);
|
||||
|
||||
} catch (OptionException e) {
|
||||
Console.Write ("SparkleShare: ");
|
||||
|
@ -78,7 +75,7 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
if (show_help)
|
||||
ShowHelp (p);
|
||||
ShowHelp (option_set);
|
||||
|
||||
// Load the right controller for the OS
|
||||
string controller_name = "Lin";
|
||||
|
@ -101,7 +98,7 @@ namespace SparkleShare {
|
|||
|
||||
Controller.Initialize ();
|
||||
|
||||
if (Controller != null && !hide_ui) {
|
||||
if (Controller != null) {
|
||||
UI = new SparkleUI ();
|
||||
UI.Run ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue