I mean this:
If I have a program called A,and I set A as the default program for opening mp3 files in Linux,how can my program know it when the user opens a mp3 file in Linux desktop environment?