<table frame="all">\r
<tgroup cols="3" rowsep="1" colsep="1">\r
<thead rowsep="1" colsep="1">\r
- <row >\r
+ <row>\r
<entry>Short Option</entry>\r
<entry>Long Option</entry>\r
<entry>Description</entry>\r
<section id="Remotecommands">\r
<title>Remote commands</title>\r
<para>The --remote command line option will send all entered commands to an existing Geeqie process, a new process will be started if one does not exist. These are the additional commands that can be used with the remote command:</para>\r
- <table frame="all">
- <tgroup cols="3" rowsep="1" colsep="1">
- <thead rowsep="1" colsep="1">\r
-\r
+ <table frame="all">\r
+ <tgroup cols="3" rowsep="1" colsep="1">\r
+ <thead rowsep="1" colsep="1">\r
<row>\r
<entry>Short Option</entry>\r
<entry>Long Option</entry>\r
<entry>Description</entry>\r
- </row></thead>\r
- <tbody> <row>\r
+ </row>\r
+ </thead>\r
+ <tbody>\r
+ <row>\r
<entry>-n</entry>\r
<entry>--next</entry>\r
<entry>Change main window to display next image.</entry>\r
<row>\r
<entry />\r
<entry>file:<file></entry>\r
- <entry>Change main window to display <file></entry>\r
+ <entry>Open <file> and bring Geeqie window to the top</entry>\r
+ </row>\r
+ <row>\r
+ <entry />\r
+ <entry>File:<file></entry>\r
+ <entry>Open <file> and do not bring Geeqie window to the top</entry>\r
</row>\r
<row>\r
<entry />\r
</table>\r
<para />\r
</section>\r
-</section>
+</section>\r
static RemoteConnection *remote_client_open(const gchar *path);
static gint remote_client_send(RemoteConnection *rc, const gchar *text);
+static void gr_raise(const gchar *text, GIOChannel *channel, gpointer data);
typedef struct _RemoteClient RemoteClient;
g_idle_add(gr_quit_idle_cb, NULL);
}
-static void gr_file_load(const gchar *text, GIOChannel *channel, gpointer data)
+static void gr_file_load_no_raise(const gchar *text, GIOChannel *channel, gpointer data)
{
gchar *filename = expand_tilde(text);
g_free(filename);
}
+static void gr_file_load(const gchar *text, GIOChannel *channel, gpointer data)
+{
+ gr_file_load_no_raise(text, channel, data);
+
+ gr_raise(text, channel, data);
+}
+
static void gr_file_tell(const gchar *text, GIOChannel *channel, gpointer data)
{
LayoutWindow *lw = NULL; /* NULL to force layout_valid() to do some magic */
{ NULL, "--config-load:", gr_config_load, TRUE, FALSE, N_("<FILE>"), N_("load configuration from FILE") },
{ NULL, "--get-sidecars:", gr_get_sidecars, TRUE, FALSE, N_("<FILE>"), N_("get list of sidecars of FILE") },
{ NULL, "--get-destination:", gr_get_destination, TRUE, FALSE, N_("<FILE>"), N_("get destination path of FILE") },
- { NULL, "file:", gr_file_load, TRUE, FALSE, N_("<FILE>"), N_("open FILE") },
+ { NULL, "file:", gr_file_load, TRUE, FALSE, N_("<FILE>"), N_("open FILE, bring Geeqie window to the top") },
+ { NULL, "File:", gr_file_load_no_raise, TRUE, FALSE, N_("<FILE>"), N_("open FILE, do not bring Geeqie window to the top") },
{ NULL, "--tell", gr_file_tell, FALSE, FALSE, NULL, N_("print filename of current image") },
{ NULL, "view:", gr_file_view, TRUE, FALSE, N_("<FILE>"), N_("open FILE in new window") },
{ NULL, "--list-clear", gr_list_clear, FALSE, FALSE, NULL, N_("clear command line collection list") },