Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking systray applet icon does nothing #162

Closed
ralphee opened this issue May 16, 2024 · 5 comments · Fixed by #168
Closed

Clicking systray applet icon does nothing #162

ralphee opened this issue May 16, 2024 · 5 comments · Fixed by #168
Assignees
Labels
documentation Improvements or additions to documentation not a bug This is not a bug with Arch-Update / It's the intended behavior
Milestone

Comments

@ralphee
Copy link

ralphee commented May 16, 2024

arch-update 2.0.1

when left clicking the icon in the system tray (hyprland / waybar) nothing happend

when right clicking the icon an small white line appears just at the base of the arch logo

(for now i have set up a keybind)

@Antiz96
Copy link
Owner

Antiz96 commented May 16, 2024

Hi,

Can you stop the currently running systray applet (either by killing the process or stopping the systemd service if you used that), relaunch a new one by running arch-update --tray in a terminal, click it and post the terminal output here please?

@ralphee
Copy link
Author

ralphee commented May 16, 2024

receive the following message (also note i did not have an icon i just guessed where it would be)

gio: Unable to launch application ‘/usr/share/applications/arch-update.desktop’: Unable to find terminal required for application

ls applications

using kitty terminal

Hi,

Can you stop the currently running systray applet (either by killing the process or stopping the systemd service if you used that), relaunch a new one by running arch-update --tray in a terminal, click it and post the terminal output here please?

@Antiz96 Antiz96 added documentation Improvements or additions to documentation not a bug This is not a bug with Arch-Update / It's the intended behavior labels May 16, 2024
@Antiz96
Copy link
Owner

Antiz96 commented May 16, 2024

receive the following message (also note i did not have an icon i just guessed where it would be)

Since you're running Wayland, make sure you have qt6-wayland installed.

gio: Unable to launch application ‘/usr/share/applications/arch-update.desktop’: Unable to find terminal required for application

This is not an issue with Arch-Update specifically but with gio/glib2 that as a limited list of known/supported terminals. You would probably have the same issue trying to launch any other terminal app via their .desktop file (like htop from the htop.desktop file for instance).

To workaround this, you can either copy the arch-update.desktop file to $HOME/.local/share/applications/arch-update.desktop (see this for more details) and modify the Exec line in it to "force" arch-update to launch with your terminal (e.g. alacritty -e arch-update) or create a symlink for your terminal that points to /usr/bin/xterm (e.g. sudo ln -s /usr/bin/alacritty /usr/bin/xterm), which is the fallback option for gio.

@Antiz96
Copy link
Owner

Antiz96 commented May 16, 2024

Alternatively, you can obviously install one of the terminal known/supported by gio/glib2 instead.

@Antiz96
Copy link
Owner

Antiz96 commented May 16, 2024

While waiting for Gnome to implement a way to allow people using their terminal of choice in gio (which will hopefully happen at some point), I'm gonna document the workaround somewhere (maybe in the Tips and Tricks section of the README/man page?), as I assume you won't be the only one facing this situation 😅

@Antiz96 Antiz96 added this to the 2.0.2 milestone May 16, 2024
@Antiz96 Antiz96 self-assigned this May 16, 2024
@Antiz96 Antiz96 changed the title Clicking Icon does nothing Clicking systray applet icon does nothing May 18, 2024
Antiz96 added a commit that referenced this issue May 18, 2024
…mulator via the desktop file to the documentation (as a workaround for people using a terminal emulator not supported by `gio` for whom clicking on the systray applet icon does nothing)

This PR aims to add the method required to force `arch-update` to run in a specific terminal emulator via the desktop file to the documentation.
This is to document this as workaround for people using a terminal emulator not [known/supported](https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/gdesktopappinfo.c#L2694) by `gio` (for whom cliking on the systray applet icon does nothing and reports the following error: `gio: Unable to launch application ‘/usr/share/applications/arch-update.desktop’: Unable to find terminal required for application`).

It also includes some alternatives, such as creating a symlink pointing to `/usr/bin/xterm` for the desired terminal emulator, or simply installing a supported terminal emulator.

Fixes #162
Antiz96 added a commit that referenced this issue May 19, 2024
…mulator via the desktop file to the documentation (#168)

* Add the method to force `arch-update` to run in a specific terminal emulator via the desktop file to the documentation (as a workaround for people using a terminal emulator not supported by `gio` for whom clicking on the systray applet icon does nothing)

This PR aims to add the method required to force `arch-update` to run in a specific terminal emulator via the desktop file to the documentation.
This is to document this as workaround for people using a terminal emulator not [known/supported](https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/gdesktopappinfo.c#L2694) by `gio` (for whom cliking on the systray applet icon does nothing and reports the following error: `gio: Unable to launch application ‘/usr/share/applications/arch-update.desktop’: Unable to find terminal required for application`).

It also includes some alternatives, such as creating a symlink pointing to `/usr/bin/xterm` for the desired terminal emulator, or simply installing a supported terminal emulator.

Fixes #162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation not a bug This is not a bug with Arch-Update / It's the intended behavior
Projects
None yet
2 participants