I've downloaded the BitTorrent Sync binary. The program only provides a Web UI interface. I'm trying to create a window for the daemon, using a terminal emulator, because I don't need an always online
btsync. When I execute:
cd ~/.btsync/; konsole -e "./btsync --nodaemon"
btsync daemon EXITS when i CLOSE the konsole window clicking the X button. When I run:
cd ~/.btsync/; uxterm -e "./btsync --nodaemon"
xterm window STILL RUNS when I click the window close button. When I execute:
cd ~/.btsync/; urxvt -e "./btsync --nodaemon"
and I close the
rxvt window, the
btsync DAEMON STILL RUNS in background.
I was trying to use
urxvt to assign an icon and a title to the "daemon window" and my only solution was execute this script:
#!/bin/sh cd ~/.btsync/ echo BitTorrent Sync Web UI: http://127.0.0.1:8888/gui/en/index.html echo exec ~/.btsync/btsync --log ~/.btsync/sync.log --nodaemon
using this command line in a
Exec=/usr/bin/urxvt -fn "xft:Inconsolata" -icon ~/.btsync/btsync.png -iconic -title "BitTorrent Sync" -e btsync; /bin/kill $(cat ~/.btsync/.sync/sync.pid)
/bin/kill to close the daemon when the
rxvt window closes. My question is: somebody knows why
rxvt doesn't share the same behavior in this case? I can't use
x-terminal-emulator to generalize my code for this reason, and I have multiple clients with different Linux desktop environments in use.