SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This will build mplayer without any gui. This is the way I prefer it too, mostly because of all the error messages that it spams if you turn the gui on.
This will build mplayer without any gui. This is the way I prefer it too, mostly because of all the error messages that it spams if you turn the gui on.
That'll do er' Just added a desktop file to applications dir and boom right click on movie then off she goes
@Dman58, I meant it only shows the video screen, with no buttons on a separate GUI. The OP is attempting to get rid of that separate GUI.
@BW-userx, again, you do not need to do anything special. All you need to do is open a terminal, type "mplayer filename", and it will play without any GUI. You can then make a shortcut to "mplayer" on the desktop and it will come up without any GUI.
Last edited by oldtechaa; 08-01-2015 at 09:35 PM.
Reason: Original was a little harsh.
@Dman58, I meant it only shows the video screen, with no buttons on a separate GUI. The OP is attempting to get rid of that separate GUI.
@BW-userx, again, you do not need to do anything special. All you need to do is open a terminal, type "mplayer filename", and it will play without any GUI. You can then make a shortcut to "mplayer" on the desktop and it will come up without any GUI.
Ok .. but I did the got rid of the slackware / slackbuild install then installed via svn source code - then created a mplayer.desktop in ../applications/ now I can still right click off the file manager and open Mplayer with what ever movie I pick / right click on .. with out that seperate gui controls being in the way when I'm in i3 or dwm.
thanks
then created a mplayer.desktop in ../applications/ now I can still right click off the file manager and open Mplayer with what ever movie I pick / right click on .. with out that seperate gui controls being in the way when I'm in i3 or dwm.
thanks
That actually brings to mind a simpler solution that didn't occur to me before. You could have edited /usr/share/applications/mplayer.desktop and changed:
Code:
TryExec=gmplayer
Exec=gmplayer F
to:
Code:
TryExec=mplayer
Exec=mplayer F
Remember, gmplayer has the controls in a separate window; mplayer is one-window and skinless.
@BW-userx, sorry to be harsh with the bold text. I just wanted to repeat that Slackware comes with everything you need to just use mplayer or gmplayer, depending on what you want.
That actually brings to mind a simpler solution that didn't occur to me before. You could have edited /usr/share/applications/mplayer.desktop and changed:
Code:
TryExec=gmplayer
Exec=gmplayer F
to:
Code:
TryExec=mplayer
Exec=mplayer F
Remember, gmplayer has the controls in a separate window; mplayer is one-window and skinless.
I did some of that changing mplayers desktop from gmplayer to mplayer did not work - it had a link from one to the other, so I removed the link and it didn't work per se, was in such a hurry not putting the thought into it as to how MPlayer works off the command line, too use to other programs biinging up a gui if one types the program name in the command line, mplayer didn't so I just kept on trying other things until it lead me to just installing the svn then my mind popped a thought into it, it needs a desktop file, created it then everything is bobs your uncle ...
---------- Post added 08-02-15 at 03:15 PM ----------
Quote:
Originally Posted by oldtechaa
@BW-userx, sorry to be harsh with the bold text. I just wanted to repeat that Slackware comes with everything you need to just use mplayer or gmplayer, depending on what you want.
Just an addition, in case someone comes to this thread via Google. gmplayer doesn't have a "default" skin it will fall back on. It requires a skin to function. That is why removing the directory caused the errors about no skin.
Just an addition, in case someone comes to this thread via Google. gmplayer doesn't have a "default" skin it will fall back on. It requires a skin to function. That is why removing the directory caused the errors about no skin.
which is oddly odd they need to fix that, but with MPlayer that directory can be empty (correct me if I am wrong) and MPlayer will still work.
example taken from VOidLiNux
Code:
#these are all of the directories that contain MPlayer
void.doid.net:/etc/mplayer# find / -name mplayer
/etc/mplayer
/usr/bin/mplayer
/usr/share/examples/mplayer
/usr/share/mplayer
/home/userx/dev/void-packages-master/srcpkgs/mplayer
#When I peek into them we see their is no directory for skins.
void.doid.net:/etc/mplayer# ls /etc/mplayer
codecs.conf input.conf
void.doid.net:/etc/mplayer# ls /usr/bin/mplayer
/usr/bin/mplayer
void.doid.net:/etc/mplayer# ls /usr/share/examples/mplayer
example.conf
void.doid.net:/etc/mplayer# ls /usr/share/mplayer
subfont.ttf
yet my MPlayer still plays with a window even though I have no skins directory or skin associated with it by default install.
so gmplayer is the one that will get you into trouble if one wants to go borderless and use their keyboard and mouse to control their MPlayer.
I found the easiest way is to just rid yourself of what ever is installed this way it will clean up all of the conf files if you purge it properly first. then Just install MPlayer all by itself, and if it did not install an mplayer.desktop then all you have to do is go into
Code:
/usr/share/applications
then pick yourselve a desktop file that comes close to a movie player then just change the information accordingly.
example: this is my mplayer.desktop with no skins. just change the applicable entries to reflec the information that is needed to make your template desktop into a mplayer.desktop.
Code:
[Desktop Entry]
Type=Application
Name=MPlayer Media Player
Name[ca]=Reproductor multimdia MPlayer
Name[pl]=MPlayer odtwarzacz multimedialny
GenericName=Multimedia player
Comment=Play movies and songs
Comment[ca]=Reproduu vdeos i canons
Comment[de]=Filme und Musik abspielen
Comment[es]=Reproduzca vdeos y canciones
Comment[fr]=Lecteur multimdia
Comment[it]=Lettore multimediale
Comment[zh]=
Comment[pl]=Odtwarzaj filmy i muzyk
Icon=mplayer
TryExec=mplayer
Exec=mplayer F
Terminal=false
NoDisplay=true
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/mp4;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-flv;video/x-theora;video/x-matroska;
which is oddly odd they need to fix that, but with MPlayer that directory can be empty (correct me if I am wrong) and MPlayer will still work.
The mplayer executable doesn't have a "GUI", so it doesn't require a skin (it can't even accept a skin). The gmplayer executable is a basic GUI (with controls you can click with your mouse) that does require a skin, because the mplayer developers never specified a default skin in the code, so it requires external skins. As much as you'd think this is a bug, it is intended.
But as far as I know, gmplayer is mostly unmaintained and was never really suggested for use. If you do want a GUI, most would suggest using a different frontend that uses mplayer as the backend (I use smplayer for this). But in your case, just make sure that your system uses the mplayer binary instead of gmplayer (which it seems you already have). You can also recompile mplayer without the --enable-gui option, and gmplayer won't be built.
The mplayer executable doesn't have a "GUI", so it doesn't require a skin (it can't even accept a skin). The gmplayer executable is a basic GUI (with controls you can click with your mouse) that does require a skin, because the mplayer developers never specified a default skin in the code, so it requires external skins. As much as you'd think this is a bug, it is intended.
But as far as I know, gmplayer is mostly unmaintained and was never really suggested for use. If you do want a GUI, most would suggest using a different frontend that uses mplayer as the backend (I use smplayer for this). But in your case, just make sure that your system uses the mplayer binary instead of gmplayer (which it seems you already have). You can also recompile mplayer without the --enable-gui option, and gmplayer won't be built.
cool beans, It is said that the gmplayer is not or has not been maintanined. let go off to pasture. but with this abiltiy to use frount ends with it I do guess that is why. as I do have a front end for Mplayer. that reminds me of VCL with the controls attached to the screen. but I got to using the just Mplayer with its borderless look and got to liking it. that is why I set off to figuring out how to rid myself of it. then slowly discovered that it has this gmplayer thing that is attched to it. not really paying it much mind, too busy trying toget rid of it. that is how I ended up with what I have now, too learnig that MPlayer is just a command line app that does not create a window until it had loaded a movie file first, or music too I do suppose. I don't use it for music. unless it is being used for a back end to audasious.
that link too explains to me why I could not get just mplayer to accept a skin when looking to attach one to my linux system that does not suppy gmplayer.
if it works I don't usally check under the hood to see whats running it. Its when I want to give it a tune up is when all of the confustion and questions come. that pretty much sums it up for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.