-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
video & images at cli (not in an X terminal) #4479
Comments
Both of these now work perfectly both at the cli and inside of X |
Same problem was happening with sound.sh
xdg-open works OK inside of X but not at the cli outside of X
At the cli, xdg-open is treating the file linked to within mc |
Code in the parenthesis is run in the child shell and has no effect in the current one.
|
Unless that code is either commented-out all together
xdg-open simply does not work correctly when running mc completely outside of X
It does work fine running mc in a terminal window _inside_ of X
So, do I simply need to remove the parenthesis from that line ? |
Yep, that fixed it.
With the parenthesis inside of X mplayer was being used even though
Removed the parenthesis and now xine is used.
And since xdg-open is not coming into play at the cli outside of X |
|
Reporter: can you test? Andrew: OK? |
Replying to zaytsev:
Line #9 does not work but rather results only in...
/usr/libexec/mc/ext.d/image.sh: line 9: [: -n: binary operator expected
Attempting to compress it all onto one line did not work correctly
My original lines 9, 10 & 11 work correctly after removing the parenthesis.
In addition, the " && sleep 10" is needed otherwise the message will not be seen until mc is exited.
echo "Please install either fim or fbi to view this file" && sleep 10 |
All 3 scripts without parenthesis have been working perfectly for me for a week so have now been re-uploaded to here. |
Branch: 4479_console_players
|
Why not use built-in command which is POSIX compatible: |
Well, I didn't know about it. Thank you for the pointer, looks like a good idea. I have just replaced all occurrences that I could find. |
|
|
Important
This issue was migrated from Trac:
glennmcc
(glennmcc@….org)pressing 'enter' on a video or image file does not play or view the file when outside of X but rather at a cli
In the older versions of mc (circa 2010 and before) it worked just fine.
In the newer versions of mc it only works when inside of X running mc within a terminal window.
My currently installed version is 4.8.29
Note
Original attachments:
zaytsev
(@zyv) onAug 29, 2024 at 7:38 UTC
glennmcc
(glennmcc@….org) onSep 4, 2024 at 18:46 UTC
glennmcc
(glennmcc@….org) onSep 4, 2024 at 18:47 UTC
glennmcc
(glennmcc@….org) onSep 4, 2024 at 18:47 UTC
The text was updated successfully, but these errors were encountered: