-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_wal.sh
More file actions
executable file
·42 lines (36 loc) · 957 Bytes
/
debug_wal.sh
File metadata and controls
executable file
·42 lines (36 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
echo "=== Wallpaper Switcher Wal Path Test ==="
echo "Current directory: $(pwd)"
echo "Home directory: $HOME"
echo "PATH: $PATH"
echo ""
# Test the wal path from app perspective
WAL_PATH="/Volumes/NightSky/babaisalive/.local/bin/wal"
echo "Testing wal path: $WAL_PATH"
if [ -f "$WAL_PATH" ]; then
echo "✓ Wal file exists"
if [ -x "$WAL_PATH" ]; then
echo "✓ Wal is executable"
ls -la "$WAL_PATH"
else
echo "✗ Wal is not executable"
ls -la "$WAL_PATH"
fi
else
echo "✗ Wal file does not exist"
fi
echo ""
echo "Testing wal command directly:"
"$WAL_PATH" --version 2>&1 || echo "Wal command failed"
echo ""
echo "Dummy file location:"
DUMMY_FILE="$HOME/Pictures/dummy-file.jpg"
echo "Dummy file: $DUMMY_FILE"
if [ -f "$DUMMY_FILE" ]; then
echo "✓ Dummy file exists"
ls -la "$DUMMY_FILE"
else
echo "✗ Dummy file does not exist"
fi
echo ""
echo "=== Test Complete ==="