Reply To: desktop-menu update

Forum › Forums › antiX-development › Development › desktop-menu update › Reply To: desktop-menu update

#186388
Dave
Forum Admin

    @Robin
    I have added the exec_clean modifications and run the script.
    The outputted text is different between the modified exec_clean and not.

    Usin the mupdf.desktop file the new menu item and the gio launch command do not match. Gio launch opens an “open file” dialog, the menu does nothing.
    Maybe I have done something incorrectly.

    I am wondering if rewriting the exec_clean function to

    
    if Order.strip(" ") == "execute":            
        execute=item_app_dict[4]
        for key, item in {'':'%[a-zA-Z]', '%':'%%', '$':'\\\$', '\n':'\\n', '\t':'\\t'}.items():
            execute = re.compile(r'%s' % item).sub(key,execute)
    

    works for you as well? It seems to produce the same output here.

    Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown