Basically if an app cant open with an xterm command, then it wont work with the command line I gave before. For example leafpad can be called in xterm using leafpad filename.txt however image-viewer cant, at least not with a simple command. It may need a long dbus command which I'm not certain of. If i ever figure it out I would post back here.