Creating a launcher for mplayer
Hi guys I recently installed mplayer from source on my Slackware 10 OS, since i also enabled the gui function I tryed to create a launcher. I could not find a shell script that came with the source so I created my own. When I double click on it all it does is it opens the terminal and then it loads some stuff then all the windows close. Does anyone have a working shell script I can use? Help would be nice!
|
Well, you *could* install mplayer from linuxpackages.net as a start
as for a launcher, i'm not quite sure what that meens (my fault, not from your side), but you could just create a link to gmplayer. Also, assign all movies (avi, mpeg) to open automatically with gmplayer (right click on them, open with -> other) As for your script, posting a view of it might help find the problem. |
wnaLinux, first what window manager are you using? All have different methos to create a shortcut.
A simple shell script would be something like: Code:
#!/bin/sh |
If you had a successful build and install of mplayer a symbolic link WOULD have been made in your /usr/local/bin or your /usr/bin depending on your --prefix=PATH option. That symlink link would be named `gmplayer' which is nothing more than a link to `mplayer`.
If your build and install with --enable-gui was successful then issueing the command `mplayer` in a console in the X enviroment WOULD launch the gui version. |
Yeah the installaton was successful all I have to do to launch it from a console is typee in gmplayer, I will check the binaries to see if I have a link.
|
Well, I dont know what this means bbut this is what I get when I double cclick on the link.
wna@SlackPro6210:~$ gmplayer MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2168 MHz (Family: 6, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Reading config file /usr/local/etc/mplayer/mplayer.conf: Permission denied Reading config file /home/wna/.mplayer/config [cfg] read config file: /home/wna/.mplayer/gui.conf Reading config file /home/wna/.mplayer/gui.conf: No such file or directory vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display) Reading /home/wna/.mplayer/codecs.conf: Can't open '/home/wna/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': Permission denied Using built-in default codecs.conf. font: can't open file: /home/wna/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. Using usleep() timing Can't open input config file /home/wna/.mplayer/input.conf: No such file or directory Can't open input config file /usr/local/etc/mplayer/input.conf: Permission denied Falling back on default (hardcoded) input config SKIN dir 1: '/home/wna/.mplayer/Skin' SKIN dir 2: '/usr/local/share/mplayer/Skin' So I dont know what I half to do from here. Any Ideas? |
Quote:
|
All times are GMT -5. The time now is 12:21 PM. |