VectorLinux
August 21, 2014, 05:38:30 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Errors when running programs through terminal, but fine when ran through GUI...  (Read 1205 times)
fightingspirit
Member
*
Posts: 27


« on: July 25, 2008, 07:11:57 pm »

What's the difference between clicking an app to run it through my File Browser than running it through a command in the command prompt?

There's two apps that are kind of annoying. Instead of just typing out the command, I have to navigate through to the directories. One of them is Quake II, which I run through wine. When I run it through terminal with
Code:
$wine /home/user/.wine/drive_c/Games/Quake_II/quakeII.exe
I get an error dialogue that pops up saying "Couldn't load pics/colormap.pcx", and in the terminal, it says "recursive shutdown". But when I do a simple click and run, it runs great (better than it ran when I played it on Windows XP, actually).

On the otherhand, I have a few videos located in my root (i.e. /home/user/ ). They are a bunch of real media (.rm) files. I expected to play them with either mplayer or vlc player with just a click or two. But I have to play them with mplayer through the terminal. Otherwise, when I click through my file browser (which is thunar, by the way), I just get errors within the media players.

What I'm wondering is, what is the difference between running apps through terminal or through a simple point and click? Doesn't either process still access and run the same files? I wonder what the problem is...
« Last Edit: July 25, 2008, 07:13:40 pm by fightingspirit » Logged
bigpaws
Vectorian
****
Posts: 1846


« Reply #1 on: July 25, 2008, 08:32:44 pm »

First the parameter for Quake 2 is wrong or the file is missing.
Quake2 runs natively in linux, no need for Wine.

Now for the mplayer problem what are the errors?

Issuing a command from the GUI is the command that the
writer of the GUI wanted. Which is why when you want to
debug something you start from a terminal. For example
if you wish to run Firefox, you type firefox in the terminal
instead of clicking an icon.

Bigpaws
Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #2 on: July 26, 2008, 09:04:06 am »

Quote
What I'm wondering is, what is the difference between running apps through terminal or through a simple point and click?

The commands for the GUI applications (the ones that are executed when you click on an icon) are in the program's .desktop files (usually inside /usr/share/applications). These might not be exactly the same command as you think. That is, they might be different from the ones you run in the Terminal. For example, when you view the .desktop file for mplayer, it shows:
Code:
username:$ cat /usr/share/applications/mplayer.desktop

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MPlayer
GenericName=Multimedia player
Comment=Multimedia player
Comment[de]=Multimedia-Player
Comment[es]=Reproductor multimedia
Comment[fr]=Lecteur multimédia
Comment[it]=Lettore multimediale
Icon=mplayer.xpm
TryExec=gmplayer
Exec=gmplayer %U
Terminal=false
Categories=GTK;AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;

As you can see in the exec line, the icon actually runs gmplayer, while when you run it on a terminal you're running mplayer. I don't know if that is the cause of the errors, but if you try gmplayer in the Terminal, it should be the same thing as clicking the file or the icon.

Maybe for Quake, the "GUI command" (written in the .desktop file) is also different from what you're running in the Terminal.... I guess.
Hope this helps.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!