subspace / space-acres

Space Acres is an opinionated GUI application for farming on Subspace Network
53 stars 18 forks source link

macOS: Tray icon related issues & more #183

Open abhi3700 opened 2 months ago

abhi3700 commented 2 months ago

Background

This issue is observed on macOS using the space-acres version that has this PR #172 merged.

Issues

There are 3 main issues observed:

  1. The tray looks like this on macOS with a different name - "TEST BUTTON": image

I don't know where this name is defined 🤔 . Is it in gtk library or somewhere else as I didn't find in space-acres's codebase.

  1. I noticed the tray icon goes away when switched to another application. As you can see here in image below that there is no "TEST BUTTON" as tray icon when I switched to browser. image

Sometimes the tray icon remains to be seen as I navigate through different apps, but browser. Not sure why this happens particularly in case of browser (may be chromium-based) app, Visual Studio Code (sometimes). Sharing a clip to show this issue: https://github.com/subspace/space-acres/assets/16472948/0a31b3a7-81b1-4632-9cfc-2b9e94a8ced9

  1. When clicked on this icon as shown in the image below, there are some error logs observed in CLI: image

Please watch this clip to view the issues: https://github.com/subspace/space-acres/assets/16472948/0437e78b-d37e-42a0-b4a1-bf0c7a031344

hunjixin commented 1 month ago

@abhi3700 the TEST BUTTON string define here https://github.com/sidit77/betrayer/blob/1dbe481a0b9512b3357e3a2ea9cb5ff6edac3b89/src/platform/macos/mod.rs#L59. betray have some test code for macos. but I think the majority of the work is concentrated in this file.

hunjixin commented 1 month ago

for question 2 , I guess the reason is simply that there wasn't enough space in taskbar.

abhi3700 commented 1 month ago

https://github.com/sidit77/betrayer/blob/1dbe481a0b9512b3357e3a2ea9cb5ff6edac3b89/src/platform/macos/mod.rs#L59

Okay! thanks for sharing the crate responsible for this. Based on this, we can then add a task to somehow change "TEST BUTTON" to "Space Acres" or some icon would be even nicer.

I might take this up next as I am using macOS.