diff -Nru obmenu-1.0/debian/changelog obmenu-1.0/debian/changelog
--- obmenu-1.0/debian/changelog	2011-05-01 18:32:53.000000000 -0400
+++ obmenu-1.0/debian/changelog	2012-11-20 22:52:19.000000000 -0500
@@ -1,3 +1,11 @@
+obmenu (1.0-2+nmu1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Handle insufficient number of command-line arguments in obm-xdg
+    (closes: #693319).
+
+ -- Michael Gilbert <mgilbert@debian.org>  Wed, 21 Nov 2012 03:44:13 +0000
+
 obmenu (1.0-2) unstable; urgency=low
 
   [ Edgar Antonio Palma de la Cruz ]
diff -Nru obmenu-1.0/debian/patches/arguments.patch obmenu-1.0/debian/patches/arguments.patch
--- obmenu-1.0/debian/patches/arguments.patch	1969-12-31 19:00:00.000000000 -0500
+++ obmenu-1.0/debian/patches/arguments.patch	2012-11-20 22:53:49.000000000 -0500
@@ -0,0 +1,18 @@
+Description: Handle insufficient number of command-line arguments in obm-xdg
+Author: Michael Gilbert <mgilbert@debian.org>
+Bug-Debian: http://bugs.debian.org/693319
+--- obmenu-1.0.orig/pipes/obm-xdg
++++ obmenu-1.0/pipes/obm-xdg
+@@ -426,7 +426,11 @@ if __name__ == "__main__":
+ 			if os.path.isfile("%s/menus/applications.menu"%(cdir)):
+ 				filename = "%s/menus/applications.menu"%(cdir)
+ 				break
+-	
++
++	if len( sys.argv ) < 2:
++		print 'usage: %s [options] /path/to/system.menu'%sys.argv[0]
++		sys.exit(1)
++
+ 	for arg in sys.argv[1:]:
+ 		if arg == "--import":
+ 			role = "import"
diff -Nru obmenu-1.0/debian/patches/series obmenu-1.0/debian/patches/series
--- obmenu-1.0/debian/patches/series	2011-04-25 16:58:29.000000000 -0400
+++ obmenu-1.0/debian/patches/series	2012-11-20 22:53:16.000000000 -0500
@@ -3,3 +3,4 @@
 03_about-dialog_fix
 04_obmenu-copy-default-xdg-menu
 debian-changes-1.0-2
+arguments.patch
