每次我打开新的终端窗口,dropbox 守护进程都会启动。我的 .bashrc 中没有任何内容可以启动它,也没有Start Dropbox at system startup
启用它。为什么会发生这种情况?
dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-XPAN6W
dropbox: initializing
dropbox: initializing python 3.6.7
dropbox: setting program path '/home/user/.dropbox-dist/dropbox-lnx.x86_64-68.3.92/dropbox'
dropbox: setting home path '/home/user/.dropbox-dist/dropbox-lnx.x86_64-68.3.92'dropbox: setting python path '/home/user/.dropbox-dist/dropbox-lnx.x86_64-68.3.92:/home/user/.dropbox-dist/dropbox-lnx.x86_64-68.3.92/python-packages-36.zip'
user@host:~$ dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/user/.dropbox-dist/dropbox-lnx.x86_64-68.3.92
.... (etc, until I hit ^C)
后面的一行显示守护进程被杀死
dropbox: load fq extension '/home/steve/.dropbox-dist/dropbox-lnx.x86_64-68.3.92/PyQt5.QtPrintSupport.cpython-36m-x86_64-linux-gnu.so'
^C
steve@xpsubu-bb:~$ ^C
[1]+ Interrupt ~/.dropbox-dist/dropboxd
grep
没有显示任何内容~/.bashrc
...Dropbox 如何决定启动每个终端?
答案1
事实证明,我对 bash 的初始化没有足够了解;其中有一行格式不正确,~/.bash_alias
它调用了 dropbox 守护进程,而不是设置别名。
~/.dropbox-dist/dropboxd
本来应该...
alias start_dropbox='~/.dropbox-dist/dropboxd'