-
-
Notifications
You must be signed in to change notification settings - Fork 774
Open
Labels
Description
- ChromeOS 142.0.7444.147 (Official Build) (64bit)
- ActivityWatch version 0.13.2
Describe the bug
After enabling the crostini_containerless flag in ChromeOS and removing the Linux development environment, an error message appeared when attempting to install and launch ActivityWatch.
[=========| ] Configuring Linux container Error starting crostin
Launching vmshell failed: Error starting crostini for terminal: 50 (CONTAINER_SETUP_FAILED)
To Reproduce
- Enable the crostini_containerless flag
- In the ChromeOS Settings app, locate the “Remove Linux development environment” menu and click the “Remove” button
- The Linux development environment will be removed
- Re-create the Linux development environment from the ChromeOS Settings app
- Download the latest version of ActivityWatch from the Release page using
wget - Install the ActivityWatch .deb package using
dpkg -i - To avoid Wayland compatibility issues and test the startup, specify the environment variable
QT_QPA_PLATFORM=xcbto force startup in X11 (Xcb) mode
Execution command:QT_QPA_PLATFORM=xcb /opt/activitywatch/aw-qt
Running this command will output logs to the terminal and display the ActivityWatch icon in the system tray (the tray icon may not be visible without the GNOME extension, but the process is running). - As is, restarting the PC (Crostini) will cause it to attempt to launch without xcb again and fail.
Add this environment variable to the configuration file that runs automatically at login.- Create the user's startup directory.
mkdir -p ~/.config/autostart - Copy the system default configuration file
Copy the configuration file placed by the .deb package in/etc/to~/.config/(user settings). This takes precedence.
cp /etc/xdg/autostart/aw-qt.desktop ~/.config/autostart/ - Edit the copied configuration file
vim ~/.config/autostart/aw-qt.desktop - Modify the Exec= line
The file contains a lineExec=/opt/activitywatch/aw-qt. Change this line as follows:
[Before]
Exec=/opt/activitywatch/aw-qt
[After]
Exec=env QT_QPA_PLATFORM=xcb /opt/activitywatch/aw-qt - Save and exit the text editor (e.g., vim)
- Create the user's startup directory.
- After rebooting, double-clicking the ActivityWatch icon in the system tray still fails to access the WebUI
- Opening Terminal displays the following error message
[=========| ] Configuring Linux container Error starting crostin
Launching vmshell failed: Error starting crostini for terminal: 50 (CONTAINER_SETUP_FAILED)
ErikBjare and 0xbrayo