The following is a patch containing proposed possible changes. Note that while the patch LOOKS huge that's because I got rid of tab indentation with PEP8 dictated 4-spaces indents.
There's some other refactoring done here in order to behave properly with the new calls for things, replacing 'cmd' as strings with boolean flags but totally refactoring out all cp/rm subprocess wrapper calls with the other inbuilt libraries that Seth indicated. -- You received this bug notification because you are a member of Ubuntu Studio Bugs, which is subscribed to The Ubuntu Studio Project. Matching subscriptions: UbuntuStudio Bugs https://bugs.launchpad.net/bugs/1831154 Title: [needs-packaging] ubuntustudio-menu-add Status in Ubuntu Studio: In Progress Status in Ubuntu Studio Menu Add: In Progress Status in Ubuntu: New Bug description: New native package for Ubuntu Studio. From the description: Utility for creating a menu item within the XDG menu for a user. It allows adding a script or other application to the XDG menu. It can also modify a menu item by creating a new version for the user. This utility does not change any of the system menu files. Please sponsor package. Thanks! To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntustudio/+bug/1831154/+subscriptions -- Mailing list: https://launchpad.net/~ubuntustudio-bugs Post to : ubuntustudio-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntustudio-bugs More help : https://help.launchpad.net/ListHelp