Skip to main content
edited tags
Link
muru
  • 78.3k
  • 16
  • 213
  • 319
Tweaked wording, capitalization and formatting; added tag.
Source Link

Starting Applicationapplication with PipeI/O redirection via *.desktop file

I start music or video with right click and "open with" in thunarThunar (xfceXfce). For every entry, there is a *.desktop*.desktop file in ~/.local/share/applications/~/.local/share/applications or /usr/share/applications/usr/share/applications. I want to start an application with a pipe and save the output in a file. 

This works in terminal:

mpv file.mp4 > log 2>&1 

But that doesn't work when iI add the same line to the desktop file:

Exec=mpv file.mp4 > log 2>&1 

The file is started, but there is no output. How can iI do this? Is there something special when using desktop files? also starting with terminal=trueterminal=true, but that don'tdidn't work.

Starting Application with Pipe via *.desktop file

I start music or video with right click and "open with" in thunar (xfce). For every entry there is a *.desktop file in ~/.local/share/applications/ or /usr/share/applications. I want to start an application with a pipe and save the output in a file. This works in terminal:

mpv file.mp4 > log 2>&1 

But that doesn't work when i add the same line to the desktop file:

Exec=mpv file.mp4 > log 2>&1 

The file is started but there is no output. How can i do this? Is there something special when using desktop files? also starting with terminal=true but that don't work.

Starting application with I/O redirection via *.desktop file

I start music or video with right click and "open with" in Thunar (Xfce). For every entry, there is a *.desktop file in ~/.local/share/applications or /usr/share/applications. I want to start an application with a pipe and save the output in a file. 

This works in terminal:

mpv file.mp4 > log 2>&1 

But that doesn't work when I add the same line to the desktop file:

Exec=mpv file.mp4 > log 2>&1 

The file is started, but there is no output. How can I do this? Is there something special when using desktop files? also starting with terminal=true, but that didn't work.

Source Link
fmeier
  • 371
  • 1
  • 4
  • 11

Starting Application with Pipe via *.desktop file

I start music or video with right click and "open with" in thunar (xfce). For every entry there is a *.desktop file in ~/.local/share/applications/ or /usr/share/applications. I want to start an application with a pipe and save the output in a file. This works in terminal:

mpv file.mp4 > log 2>&1 

But that doesn't work when i add the same line to the desktop file:

Exec=mpv file.mp4 > log 2>&1 

The file is started but there is no output. How can i do this? Is there something special when using desktop files? also starting with terminal=true but that don't work.