Fix known errors found from feedback (DBUS problems, pulseaudio start, one vlc example with error. typos)
This commit is contained in:
@@ -58,7 +58,7 @@ def is_vlc_recordings_folder(actual_config_path: str, rule: Dict[str, str]) -> f
|
||||
if line.startswith('#') or not line.strip():
|
||||
continue
|
||||
# Check if the line contains the recording path setting
|
||||
if 'recorded_files_path' in line:
|
||||
if 'input-record-path' in line:
|
||||
# Extract the value of the recording path and remove surrounding whitespace
|
||||
current_path = line.split('=')[-1].strip()
|
||||
# Compare with the Desktop path
|
||||
@@ -66,8 +66,8 @@ def is_vlc_recordings_folder(actual_config_path: str, rule: Dict[str, str]) -> f
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
# The configuration key was not found in the file
|
||||
return 0
|
||||
# The configuration key was not found in the file
|
||||
return 0
|
||||
except FileNotFoundError:
|
||||
logger.error("VLC configuration file not found.")
|
||||
return 0
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"func": "exact_match",
|
||||
"result": {
|
||||
"type": "vm_command_line",
|
||||
"command": "pactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | awk '{print $5}' | sed 's/%//g'",
|
||||
"command": "pulseaudio --start\npactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | awk '{print $5}' | sed 's/%//g'",
|
||||
"shell": true
|
||||
},
|
||||
"expected": {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": "xdg-open /home/user/project",
|
||||
"command": "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'\nxdg-open /home/user/project",
|
||||
"shell": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": "gsettings set org.gnome.shell favorite-apps \"['thunderbird.desktop']\""
|
||||
"command": "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'\ngsettings set org.gnome.shell favorite-apps \"['thunderbird.desktop']\"",
|
||||
"shell": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -19,7 +20,8 @@
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": "gsettings set org.gnome.shell favorite-apps \"['thunderbird.desktop', 'vim.desktop', 'google-chrome.desktop']\""
|
||||
"command": "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'\ngsettings set org.gnome.shell favorite-apps \"['thunderbird.desktop', 'vim.desktop', 'google-chrome.desktop']\"",
|
||||
"shell": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -41,7 +43,8 @@
|
||||
"func": "check_gnome_favorite_apps",
|
||||
"result": {
|
||||
"type": "vm_command_line",
|
||||
"command": "gsettings get org.gnome.shell favorite-apps"
|
||||
"command": "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'\ngsettings get org.gnome.shell favorite-apps",
|
||||
"shell": true
|
||||
},
|
||||
"expected": {
|
||||
"type": "rule",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
{
|
||||
"type": "sleep",
|
||||
"parameters": {
|
||||
"seconds": 2.
|
||||
"seconds": 2.0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "7b6c7e24-c58a-49fc-a5bb-d57b80e5b4c3",
|
||||
"snapshot": "thunderbird",
|
||||
"instruction": "Help me access my outlook account with address \"anonym-x2024@outlook.com\" and password 'Wlv(z._6y|a,rrjfQuQhIi\$;' (without ')",
|
||||
"instruction": "Help me access my outlook account with address \"anonym-x2024@outlook.com\" and password 'Wlv(z._6y|a,rrjfQuQhIi\\$;' (without ')",
|
||||
"source": "https://www.wikihow.com/Access-Gmail-With-Mozilla-Thunderbird",
|
||||
"config": [
|
||||
{
|
||||
@@ -86,12 +86,12 @@
|
||||
{
|
||||
"url": "imap://outlook.office365.com",
|
||||
"user": "anonym-x2024@outlook.com",
|
||||
"password": "Wlv(z._6y|a,rrjfQuQhIi\$;"
|
||||
"password": "Wlv(z._6y|a,rrjfQuQhIi\\$;"
|
||||
},
|
||||
{
|
||||
"url": "smtp://smtp.office365.com",
|
||||
"user": "anonym-x2024@outlook.com",
|
||||
"password": "Wlv(z._6y|a,rrjfQuQhIi\$;"
|
||||
"password": "Wlv(z._6y|a,rrjfQuQhIi\\$;"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user