Re: emelfm2 bug?

  • From: <tpgww@xxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Sun, 16 Jun 2013 14:51:22 +1000

On Sun, 16 Jun 2013 02:41:47 +0400
Serge <omoikane@xxxxx> wrote:

> Hello again.
> I mean only one toolbar for both panes, like command bar.
> Two toolbars with same buttons looking strange. It is irrational IMO.
> Buttons and other elements on one toolbar can communicate with active pane,
> like button with user command.

Well, each to his/her own, I guess. Other users (me included) find it useful to 
be able to change some aspect(s) of the inactive pane without making it active.

> And i have more problems!
> :-)
> If video files in emelfm is associated with smplayer,
> smplayer hangs when i try to close it or access program settings.
> Smplayer hangs even with "xfce4-terminal -e 'smplayer %p &'" or
> xdg-open commands. But all works correctly when started from
> terminal, thunar, doublecmd or mc.
> emelfm completely ignoring "&" sign in commands.

From the USAGE document:
"adding '&' to the end of a command will run it in the background, and all 
[console] output other than standard error is suppressed."

That said, I don't yet know what your problem might be. Each executed 
application runs in its own separate process, so I'm at a loss to know how 
yours is being affected. When I run the equivalent
  terminal -e 'smplayer %p &' (or just smplayer %p) 
it works just as would be expected.

Can you shed any further light? Logs or console text or ???

> 
> And second problem -
> "aplay /usr/share/sounds/question.wav & zenity --question  
> --title="Remove..."  
> --window-icon="/usr/share/icons/Tango/16x16/actions/edit-delete.png"  
> --text="Do you wish to permanently\nremove the selected file(s)?" ; if [  
> $? = 0 ] ; then sudo rm -r %p ; fi"
>   doesn't work in emelfm.
> Maybe i need to modify command somehow, but command is working properly
> in thunar or terminal.
> Output:
> "sh>aplay /usr/share/sounds/question.wav & zenity ... d file(s)?"  (12681)  
> returned '0'
> 
> > if [ $? = 0 ]
> Failed to execute child process "if" (No such file or directory).
> > then sudo rm -r "/opt/Screenshot - 06152013 - 03:36:36 AM.png"
> Failed to execute child process "then" (No such file or directory).
> > fi
> Failed to execute child process "fi" (No such file or directory)."
> 
> Thanks for reading)

The terminal emulator within the application is not a full-blown shell, and so 
any "complicated" commands are routed externally to the user's normal 
interpreter, for processing. Each (';'-separated) sub-command is processed 
independently.

In your example, we can see this from the "sh>" at the start of the reported 
output, and the failure to know what to do with the "if" command.

Again, from USAGE:
 adding '>>' to the beginning of a "joined" external command will cause it to 
run as a single command in a separate shell... This is necessary if you do not 
want the individual components of the joined command to be individually sent to 
the shell.

Regards
Tom


--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: