Article 571NA Running at command line vs uxterm -e

Running at command line vs uxterm -e

by
frrobert
from LinuxQuestions.org on (#571NA)
Disclaimer: I know enough bash script to be dangerous but not enough to figure out my issue. :)

I took a DMenu script from Manjaro to run on my Ubuntu 20.04 machine. The script lets the user select a program and if it is the first time a program is ran it ask if it should be ran in the background, a terminal, or a terminal held open. The script The DMenu version runs fine.

I also modified it to use fzf in place of DMenu.

The script runs fine when called from the command line.

A new terminal window opens with the fzf options, one a program is selected, the program starts and is disowned so when the menu window closes the selected program still continues.

If I call the program from a hot key using Code:uxterm -e fzf_recency A uxterm window opens the fzf menu comes up but when I select the program it will start but the Code:&>/dev/null & disown is ignored and once the menu closes so does the program.

I am sure the issue is my incorrect understand of how shells work. If anyone could point me to some resources so I can understand what is going on that would be great?

The code I am working on is at https://github.com/frrobert2/I3DMenuMods

Thankslatest?d=yIl2AUoC8zA latest?i=d1ZAhALCUEM:O6L9BiwS_X0:F7zBnMy latest?i=d1ZAhALCUEM:O6L9BiwS_X0:V_sGLiP latest?d=qj6IDK7rITs latest?i=d1ZAhALCUEM:O6L9BiwS_X0:gIN9vFwd1ZAhALCUEM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments