The Computer Oracle

Linux: refresh menu after having registered .desktop file

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles

--

Chapters
00:00 Linux: Refresh Menu After Having Registered .Desktop File
00:25 Answer 1 Score 12
00:34 Accepted Answer Score 11
00:52 Answer 3 Score 2
01:07 Thank you

--

Full question
https://superuser.com/questions/372599/l...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #ubuntu

#avk47



ANSWER 1

Score 12


xdg-desktop-menu has an forceupdate option according to the man page.




ACCEPTED ANSWER

Score 11


Don't know what caused the changes, but now when I invoke xdg-desktop-menu install mycompany-myapp.desktop or xdg-desktop-menu uninstall mycompany-myapp.desktop the menu is automatically refreshed.




ANSWER 3

Score 2


Possibly same reason mine suddenly started working

I realised my .desktop file wasn't visible to group or all. I did a chmod 644 on it and it now refreshs instantly.