This is indeed a bit of a dilemma.
First of, I'm sorry for your loss and may their soul rest in piece.
Your wife can indeed apply for a TRV online while in Saudi Arabia, whether she will get approved for one is another story. I believe it might be challenging to get approved for one.
The...