{ "id": "2b9493d7-49b8-493a-a71b-56cd1f4d6908", "snapshot": "libreoffice_writer", "instruction": "Hey, my LibreOffice Writer seems to have frozen and I can't get it to close normally. Can you help me force quit the application from the command line? I'm on Ubuntu and I don't want to restart my computer or lose any other work I have open.", "source": "https://devicetests.com/kill-libreoffice-writer-command-line-ubuntu", "config": [ { "type": "download", "parameters": { "files": [ { "url": "https://drive.usercontent.google.com/download?id=104pg3yochKyH2Uvlp3BdvKmHgYmSIESu&export=download&authuser=0&confirm=t&uuid=d1926366-4e54-4a44-8dcd-fc49ed6524d7&at=APZUnTXcBFV9kcacsA0toU83lMKJ:1706505549057d", "path": "/home/user/Desktop/15-MB-docx-file-download.docx" } ] } }, { "type": "open", "parameters": { "path": "/home/user/Desktop/15-MB-docx-file-download.docx" } }, { "type": "execute", "parameters": { "command": [ "/bin/bash", "-c", "history -c && echo > ~/.bash_history && sleep 3" ] } }, { "type": "launch", "parameters": { "command": [ "gnome-terminal", "--maximize" ] } } ], "trajectory": "trajectories/", "related_apps": [ "libreoffice_writer", "terminal" ], "evaluator": { "postconfig": [ { "type": "execute", "parameters": { "command": [ "/bin/bash", "-c", "killall gnome-terminal-server" ] } } ], "func": ["check_include_exclude", "check_include_exclude"], "conj": "and", "result": [ { "type": "vm_command_line", "command": [ "/bin/bash", "-c", "output=$(ps aux | grep \"[s]office\"]); if [ -z \"$output\" ]; then echo \"true\"; else echo \"false\"; fi" ] }, { "type": "vm_command_line", "command": [ "/bin/bash", "-c", "output=$(cat ~/.bash_history | grep \"[k]ill\"); if [ -z \"$output\" ]; then echo \"false\"; else echo \"true\"; fi" ] } ], "expected": [ { "type": "rule", "rules": { "include": [ "true\n" ] } }, { "type": "rule", "rules": { "include": [ "true\n" ] } } ] } }