LinuxQuestions.org
Review your favorite Linux distribution.
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 01-03-2017, 01:44 PM   #16
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619

Quote:
Originally Posted by BW-userx View Post
Code:
[Desktop Entry]
Name=MPlayer
GenericName=Media player
Exec=mplayer %U
TryExec=mplayer
Icon=/usr/share/icons/nuvola/16x16/apps/mplayer.png
Type=Application
Categories=AudioVideo;Player;
#NoDisplay=true
What is the NoDisplay used for. So I'll know if I want to make it true or false.
It will make it not show up in the application menu.

https://specifications.freedesktop.o...t/ar01s05.html
 
Old 01-03-2017, 02:09 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by montagdude View Post
It will make it not show up in the application menu.

https://specifications.freedesktop.o...t/ar01s05.html
Thnaks that is not what I want ..
now to whoever one last question on this (as far as I know) in lue of posting another question
How do I set Mplayer to show the file name in the title W/O having to run it off the command line.

Code:
−title (also see −use−filename−title)

Set the window title. Supported by X11-based video output drivers.

−use−filename−title (also see −title)

Set the window title using the media filename, when not set with −title. Supported by X11-based video output drivers.
Putting that in my config for Mplayer I cannot get it to work. Latest try shows this way

Code:
# Write your default config options here!

ao=pulse
vo=xv

#title=-use−filename−title
# -use−filename−title
title=use−filename−title
 
Old 01-03-2017, 02:21 PM   #18
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
What about just modifying the .desktop file as follows:

Code:
Exec=mplayer -use-filename-title %U
I think that should work when you right-click the file and tell it to open with MPlayer.
 
Old 01-03-2017, 02:25 PM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by montagdude View Post
What about just modifying the .desktop file as follows:

Code:
Exec=mplayer -use-filename-title %U
I think that should work when you right-click the file and tell it to open with MPlayer.
Yeppers that got it... thanks for being my brain for a minute -- I hope you're ok

Last edited by BW-userx; 01-03-2017 at 02:29 PM.
 
Old 01-03-2017, 02:29 PM   #20
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by BW-userx View Post
Nope that does not work nor this
Code:
Exec=mplayer -use-filename-title "${filename}" %U
It needs a string input after the -use-filename-title
That's what the %U is for. When you right-click and choose to open with MPlayer, it's supposed to get replaced by the file path. You may need to log out and back, depending on which DE you are using, when editing .desktop files for changes to take effect.
 
Old 01-03-2017, 02:56 PM   #21
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by montagdude View Post
That's what the %U is for. When you right-click and choose to open with MPlayer, it's supposed to get replaced by the file path. You may need to log out and back, depending on which DE you are using, when editing .desktop files for changes to take effect.
I changed my post ( I thought) because I forgot to remove what I had inside of the conf file when I edited the desktop file then tried it. It didn't work because I didn't remove what I had in the config file, then I went back and removed the "${filename}" then ran it again then Moded by post. sooo.. we're good .. thanks!
 
  


Reply

Tags
movie



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
Media streaming between WMP and Linux media players (preferably Amarok) EducatedWhiteTrash Linux - Software 2 08-20-2010 08:11 PM
Non drm/conversion "mp3 players"/portable media players Hairulfr General 5 12-12-2007 10:12 AM
I Need to Know How to make my Media Players Play Media jason.rohde Linux - Software 3 07-02-2006 10:23 AM
media players not working phoenix_wolf Linux - Newbie 3 12-21-2004 03:24 PM

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

All times are GMT -5. The time now is 12:05 AM.

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