LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-01-2004, 05:11 PM   #1
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Rep: Reputation: 15
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!
 
Old 11-01-2004, 05:33 PM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
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.
 
Old 11-01-2004, 06:51 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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
echo "Hello world"
What you want to do with your script? Launch mplayer?
 
Old 11-01-2004, 07:07 PM   #4
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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.
 
Old 11-01-2004, 08:10 PM   #5
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
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.
 
Old 11-01-2004, 08:19 PM   #6
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
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?
 
Old 11-02-2004, 04:16 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Quote:
Reading config file /usr/local/etc/mplayer/mplayer.conf: Permission denied
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': Permission denied
Can't open input config file /usr/local/etc/mplayer/input.conf: Permission denied
Try giving read permissions to others, not just root.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating root Application Launcher in GNOME rwillard Linux - Newbie 3 04-06-2005 09:59 AM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
Help me please! mplayer launcher??? setlec_seta Mandriva 6 12-24-2004 07:09 AM
mplayer (option creating?) bendeco13 Linux - General 1 10-15-2004 03:38 PM
NetBeans Launcher sonmacharius Linux - Software 2 02-25-2004 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration