aboutsummaryrefslogtreecommitdiff
path: root/src/ka-applet.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-06-20 06:48:51 +0200
committerGuido Günther <agx@sigxcpu.org>2014-06-20 06:48:51 +0200
commit580cd3266f8805c01112017f233e22f54a54db11 (patch)
tree5ed2d0330f32e78a315562936e788eed361f9aea /src/ka-applet.c
parentNew upstream version 3.8.0 (diff)
downloadkrb5-auth-dialog-580cd3266f8805c01112017f233e22f54a54db11.tar.gz
krb5-auth-dialog-580cd3266f8805c01112017f233e22f54a54db11.tar.bz2
krb5-auth-dialog-580cd3266f8805c01112017f233e22f54a54db11.zip
New upstream version 3.12.0
Diffstat (limited to 'src/ka-applet.c')
-rw-r--r--src/ka-applet.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 2b48825..8b99695 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -13,8 +13,7 @@
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*
*/
@@ -151,6 +150,7 @@ ka_applet_local_command_line (GApplication *application,
GError *error = NULL;
gint argc = g_strv_length (*argv);
+ gint flags;
gboolean auto_run = FALSE;
const char *help_msg =
@@ -163,6 +163,10 @@ ka_applet_local_command_line (GApplication *application,
};
KA_DEBUG ("Parsing local command line");
+#if GLIB_CHECK_VERSION(2, 40, 0)
+ flags = g_application_get_flags(application);
+ g_application_set_flags(application, flags | G_APPLICATION_HANDLES_COMMAND_LINE);
+#endif
context = g_option_context_new ("- Kerberos 5 credential checking");
g_option_context_add_main_entries (context, options, NULL);
bgstack15