ActivityWatch / ActivityWatch/activitywatch

In ChromeOS's crostini_containerless, ActivityWatch cannot be launched.

オープン
#1,193 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
type: bug
主要言語
Python
スター
18.9k
フォーク
1k
平均マージ
1日 4時間
マージ済み PR(30日)
28

説明

- **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
1. Enable the crostini_containerless flag
2. In the ChromeOS Settings app, locate the “Remove Linux development environment” menu and click the “Remove” button
3. The Linux development environment will be removed
4. Re-create the Linux development environment from the ChromeOS Settings app
5. Download the latest version of ActivityWatch from the Release page using `wget`
6. Install the ActivityWatch .deb package using `dpkg -i`
7. To avoid Wayland compatibility issues and test the startup, specify the environment variable `QT_QPA_PLATFORM=xcb` to 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).
8. 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.
1. Create the user's startup directory.
`mkdir -p ~/.config/autostart`
2. 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/`
3. Edit the copied configuration file
`vim ~/.config/autostart/aw-qt.desktop`
4. Modify the Exec= line
The file contains a line `Exec=/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`
5. Save and exit the text editor (e.g., vim)
9. After rebooting, double-clicking the ActivityWatch icon in the system tray still fails to access the WebUI
10. 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)
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。