Launching mplayer from within Links2 using a shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Launching mplayer from within Links2 using a shell script
# 8  
Old 10-31-2018
Quote:
Originally Posted by ignatius
Ok. First of all, thank you for not being a jerk. Like _a lot_ of people on stackoverflow.com or unix.stackexchange.com

...

Thank you.
I have asked a number of questions over at stack* sites over the years and for some reason I never get an answer there either.

Welcome to unix.com and we hope you have a good experience here.
This User Gave Thanks to Neo For This Post:
# 9  
Old 10-31-2018
Quote:
Originally Posted by ignatius
I have no idea which backend it is using.
Could you find out? This will list all libaries SDL links to: ldd /usr/lib/*SDL*.so
# 10  
Old 10-31-2018
Quote:
Originally Posted by ignatius
I'm currently investigating ways of working around this SDL limitation, which i'm assuming it is.
Not an SDL limitation, a side-effect of the way the keyboard and screen is being used. Which depends on what backend is being used. Sorry if I sound like a broken record but that's a really important unknown.

A link to the patch you used to get Links using SDL would also be good. I've a passing familiary with SDL and can check if I see anything obviously wrong.

That you're compiling is also useful. We might add lines to answer the question if we really can't find it out any other way.
# 11  
Old 10-31-2018
Quote:
Originally Posted by Corona688
Not an SDL limitation, a side-effect of the way the keyboard and screen is being used. Which depends on what backend is being used. Sorry if I sound like a broken record but that's a really important unknown.

A link to the patch you used to get Links using SDL would also be good. I've a passing familiary with SDL and can check if I see anything obviously wrong.

That you're compiling is also useful. We might add lines to answer the question if we really can't find it out any other way.
Ok.

------ Post updated at 05:39 PM ------

Ok. Here's the ldd output: http://www.armory.com/~ignatius/bleh

And here's a link to the patch: https://devel.dob.sk/links-sdl/links...dl-0.1.3.patch
# 12  
Old 10-31-2018
Okay, that gives me enough information to research. I think you're using libsdl's fbcon. According to your patch there should be debug information being printed into a stderr.txt somewhere.

Looking at the source code, libSDL's fbcon module sets raw mode on the keyboard, which according to this prevents not just ctrl-alt-f4 but the chvt call itself from operating. Preventing this will probably stop Links from working.

Hunting for SDL_getenv - the usual transport for special-case SDL backend hacks - in fbcon's source shows a few options related to setting resolution and mouse device, but nothing relevant to keyboard. It just grabs it in raw mode - as it should for a graphical program - and that's it.

So, I think this means that Links needs to call SDL_QuitSubSystem(SDL_INIT_EVENTS) before shelling out to an external command, and SDL_InitSubSystem(SDL_INIT_EVENTS) after returning from an external command, to place the keyboard into normal mode and allow chvt to happen when using the fbcon module.

Last edited by Corona688; 10-31-2018 at 03:37 PM..
# 13  
Old 11-05-2018
Ok. Understood. I'm currently trying to compile Links2 with the FBDev driver. It seems to work on my desktop, with chvt and console redirecting.
# 14  
Old 11-06-2018
If it's an X11 window, it's not using fbdev...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Statement returning error only launching the sh script via crontab

hi all, I created a sh script to import some tables from mysql to hive. No problem launching it manually, but if I schedule via crontab it returns me an error in the following part: #create an array containing all the tables for $dbname query="SELECT table_name FROM information_schema.tables'... (10 Replies)
Discussion started by: mfran2002
10 Replies

2. UNIX for Advanced & Expert Users

[Solved] Crontab not launching script

Hi all, i have the following script #!/bin/sh for i in `ps -leaf --cols 1024 | grep LogUser | grep -v grep | awk '{print $4}'`; do echo $i kill -15 $i; done; but it seems that the crontab its sciping this script,i configured corntab as following */30 * * * root... (2 Replies)
Discussion started by: charli1
2 Replies

3. Red Hat

Help in launching firefox.

Hi, -- I am new to linux, please bear with my tech terms. I am using Red Hat 4.1.2-48 (Linux version 2.6.18-194.11.1.el5) for the project. This is a remote server and I do not use any GUI. Now I need to install a product that requires me to launch firefox from linux. when i am trying... (3 Replies)
Discussion started by: vj8436
3 Replies

4. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies

5. Shell Programming and Scripting

Launching shell from another

hi, I have shell script ( say A.sh) that launches another shell script ( say B.sh) on the server. In shell script A.sh, if i call B.sh as . B.sh <-- it doesnt work, err file not found . ./B.sh <-- it doesnt work, err file not found ./B.sh <-- works why so? BTW the file exists at the... (4 Replies)
Discussion started by: sjc
4 Replies

6. Shell Programming and Scripting

Launching shell scripts from different dirs

Hi, General question, if I have a shell script whcih I launch from anywhere on the system vis the PATH env var, how can I get the script to echo where I launch this from? i.e. /my/home/script/myscript BUT I launch this from /my/otherarea/somewherelse via the env variable. I would... (1 Reply)
Discussion started by: cyberfrog
1 Replies

7. Shell Programming and Scripting

Launching a C program that needs input from a shell script

hi there, i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments. This is the code, after the java... (4 Replies)
Discussion started by: momal
4 Replies

8. UNIX for Dummies Questions & Answers

launching script via REXEC

Hi folks! my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec. The application-configuration is launching the script (which is in the home directory of connecting user) like: rexec host user pass shell.sh So far so good, everything... (3 Replies)
Discussion started by: JohnMurdoch
3 Replies

9. Shell Programming and Scripting

Launching Several Shells....

Hi, I need to create a shell that launches several shells named for example svspush (that does nothing but wait) and record their pid in a file. Any inputs please. Thanks, Marconi (1 Reply)
Discussion started by: marconi
1 Replies

10. Shell Programming and Scripting

Launching a new bash shell

I'm new to programming on unix and have a really simple question (google hasn't been my friend today). I have a bash shell running on a remote machine. I'm looking at it from a windows PC using Exceed. Is there a command I can use from the shell which will launch another bash shell? Thanks! (3 Replies)
Discussion started by: gsd
3 Replies
Login or Register to Ask a Question