The attached patch fixes the issue. It replaces g_idle_add(...) that immediately calls the hooks, with g_timeout_add_seconds (1, ...) that calls them a second later, when the symlink to the binary has been generated.
It worked in 100% of my tests. ** Patch added: "lp1967728.patch" https://bugs.launchpad.net/ubuntu/+source/mate-panel/+bug/1967728/+attachment/5579971/+files/lp1967728.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1967728 Title: Some packages need a restart to appear in the menu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mate-panel/+bug/1967728/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs