Longingly has 2 different meanings across 1 category:
Adverb
in a yearning manner
"he spent the rest of the act gazing longingly over my right shoulder at the illuminated word `Exit'"
In a longing manner, with desire, yearningly.