You need to be a bit more precise. I do understand that you try to launch a program from a udev rule that puts something on the graphical desktop. Correct?
What exactly are you doing (share the udev rule, any script, any program, etc), and what happens (nothing at all, error message, wrong output, log entries etc)?
What is your environment - OS, GUI, ...?
Here is a question from somebody with a similar problem. It might solve yours. I found it by googling for
udev gui.