starting zotero through a script

Hi, I have a script which first stops zotero [quote]ZOTERO_BIN="zotero"
WAIT=2

# Zotero ggf. beenden
if pgrep -x zotero >/dev/null; then
echo "[master] Zotero läuft – beende Zotero"
pkill -x zotero
sleep "$WAIT"
while pgrep -x zotero >/dev/null; do
sleep 0.5
done
fi
[/quote]

now the script does what ist does and after that I want to restart zotero through the script. [quote] "$ZOTERO_BIN" & disown[/quote]

Now I get this error and the script does not finish with a promt.


[quote]test$ Sandbox: seccomp sandbox violation: pid 555356, tid 555356, syscall 28, args 139679834812416 4096 102 18446744073709551552 4294967295 0. Sandbox: seccomp sandbox violation: pid 555460, tid 555460, syscall 28, args 139791335657472 4096 102 18446744073709551552 4294967295 0. Missing chrome or resource URL: chrome://zotero/skin/16/white/loading.svg[/quote]

Is there a clean way to (re-) start zotero through a script without this sandboxing error?
  • How did you install Zotero? The sandbox error sounds like it might be the Flatpack? If so, that's not officially supported and the advice would be to use one of the ways of installing the linux version:
    https://www.zotero.org/support/installation
  • No flatpack, it's coming as a *.deb from "deb https://mirror.mwt.me/zotero/deb/ ./
    " and ist is installed via apt.
  • dstillman Zotero Team
    You'd have to figure that out yourself — that's something specific to your system. The official tarball and zotero-deb aren't sandboxed.

    (But is there a reason you're trying to run Zotero from a script rather than using the launcher icon?)
  • for my tests I use debug-bridge to run this inside Zotero

    const appStartup = Components.classes['@mozilla.org/toolkit/app-startup;1'].getService(Components.interfaces.nsIAppStartup);
    appStartup.quit(Components.interfaces.nsIAppStartup.eAttemptQuit);

  • edited yesterday at 1:05am
    @ dstillman

    I'm not running zotero from a script usually. It is an exception. I am working on something manipulating already imported PDF files in ~zotero/storage/*. While the script is runing, zotero must be closed. When the script has finished, zotero should start again automatically. I can start it manually, but i dont want to click through my dropdown app starting menue.

    If I succeed with what I am trying to do, I will show it here. Please, until then, make no assumptions. ;-) You may criticiese me then when you see what I actually did. ;-)

    BTW, I did not sandbox zotero, the repo maintainer apparently did . He seems to by one of you, I hope. But if there is a non sandboxed version, please let me know where to get it.
    My version: 7.0.32 (64-bit) from the recommended repo https://mirror.mwt.me/zotero/deb/ ./


    @ emilianoeheyns

    I'm lost. I'm not much of an expert. I did not mention it explicitly, I am running Debian/sid(uction) Linux. I have no clue how your setting might help me with starting zotero through a script.
  • The debs are by my hand. They are not sandboxed.
  • For starting zotero through a script you don't need anything special. You can just run zotero
  • I assume the versions are the same, but I have now added the canonical URL.

    Thanks




  • They will be the same, but I control only the canonical repo
  • Ok, I did not know. Thanks for the *.deb_s .

    But downloading from your server would need 12 hours according to apt. It comes in B/s-wise.
Sign In or Register to comment.