You are not logged in.
I installed qbitrorrent.
I opened it using terminal and added some torrents. Now I try opening it using the Run Progam command (right click on desktop) and I get a completely new qbittorrent windows without any of the torrents I had added.
Closing it and using terminal to open qbittorrent, I get the older page with all the added torents.
Why so?
Secondly, when you open any program using terminal, unless you quit the program, the terminal prompt can't be used. A new termial window has to be opened to execute any new commands. Any way to use the same terminal without closing/quitting the program?
Last edited by linux_user (2016-12-17 14:48:43)
"Blind faith to authority is the greatest enemy of truth."
Offline
Secondly, when you open any program using terminal, unless you quit the program, the terminal prompt can't be used. A new termial window has to be opened to execute any new commands. Any way to use the same terminal without closing/quitting the program?
The program can be fork()ed and sent to the "background" by using job control and adding an ampersand symbol after the command, for example:
thunar &
See this link for more:
http://mywiki.wooledge.org/BashGuide/JobControl
Your first question is more difficult
Perhaps the environmental variables aren't being set correctly with gmrun.
Compare your usual variables with those set under gmrun by first saving that program's settings by using this command in the run dialogue box:
env > envgmrum.txt
Then compare this with your normal environment:
env > env.txt
vimdiff envgmrun.txt env.txt
rm env{,gmrun}.txt
I'm not sure if the values can be changed in gmrun, if not then a wrapper script to launch the program would ensure consistency.
Offline
I had some similar issues. When I opened Transmission e.g. via Plank, I could see all the downloads which have been running. However when downloading a torrent file and using the Firefox window option "Open with" instead of "Save as", it opened a completely new instance of Transmission.
Offline
That fork()ing and sending the program to background worked as I wanted.
However the solution given for the two seperate windows/versions/virtual session (I don't know what to call it) is a little complicated. So I would need time. Please stay subscribed.
"Blind faith to authority is the greatest enemy of truth."
Offline
Perhaps the environmental variables aren't being set correctly with gmrun.
Compare your usual variables with those set under gmrun by first saving that program's settings by using this command in the run dialogue box:
env > envgmrum.txt
Unfortunately gmrun doesn't accept shell syntax, only commands. It is necessary to make a script, then run it with gmrun:
echo 'env > envgmrun.txt' > envgmrun-script
chmod +x envgmrun-script
Then in a gmrun window:
/home/<yourusername>/envgmrun-script
Then compare this with your normal environment:
env > env.txt vimdiff envgmrun.txt env.txt rm env{,gmrun}.txt
This requires vim, which not everyone loves...
An alternative for simple file comparisons is comm (sudo apt-get...) which will list lines unique to file1 on the left, file2 in column2 and lines common to both in colum3. (Quite handy for some uses, and can be scripted too.) It requires files to be sorted though, which adds a little complication:
env > env.txt
comm <(sort envgmrun.txt) <(sort env.txt)
comm -13 <(sort envgmrun.txt) <(sort env.txt) # see lines unique to env.txt
rm env{,gmrun}.txt envgmrun-script
Anyway, trying that on my system showed nothing unique to gmrun, and the following unique to the terminal:
COLORFGBG=default;default
COLORTERM=rxvt-xpm
DEBEMAIL=myemailaddress
DEBFULLNAME=myfullname
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SHLVL=1
TERM=rxvt-unicode
_=/usr/bin/env
WINDOWID=73400330
...which had no hints for me, sorry.
Transmission starts up for me with the identical profile, whether launched from gmrun or a terminal, so this is something with qbittorrent. Some KDE environment variable?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Unfortunately gmrun doesn't accept shell syntax, only commands.
Ooops, sorry OP!
I was sure that I checked that before posting but clearly not :8
trying that on my system showed nothing unique
Perhaps the OP's system is configured differently.
Offline
Unfortunately gmrun doesn't accept shell syntax, only commands.
Just found this:
Also of note is that in order to use complex commands like:
"cat ~/.xsession | grep ssh | sh > /dev/null 2>&1"
you must use the "shell" URL; ie, type in:
shell:cat ~/.xsession | grep ssh | sh > /dev/null 2>&1
This will pass the command to 'sh -c'.
So this works:
sh: env > gmrunenv.txt
Offline