Skip to content

Commit

Permalink
Stop fvwm-menu-desktop from informing users it cannot find icon %s.
Browse files Browse the repository at this point in the history
  Fix the error message, and only output it if verbose.
  • Loading branch information
somiaj authored and ThomasAdam committed Mar 24, 2024
1 parent e25d217 commit 2ae5729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fvwm-menu-desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ def printmenu(name, icon, command):
if not (iconfile == '' or iconfile == None) and os.path.isfile(iconfile):
iconfile = '%'+iconfile+'%'
else:
vprint(f"{iconfile} icon or default icon not found!")
iconfile = ''
sys.stderr.write("%s icon or default icon not found!\n")
printtext('+ "%s%s" %s' % (escapemenutext(name), iconfile, command))

def parsemenus(menulist, desktop, desktop_entries=[]):
Expand Down

0 comments on commit 2ae5729

Please sign in to comment.