0ry0n / Resource_Monitor

Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
https://extensions.gnome.org/extension/1634/resource-monitor/
GNU General Public License v3.0
153 stars 21 forks source link

Cannot launch custom program that is a flatpak #80

Closed mount2010 closed 10 months ago

mount2010 commented 11 months ago

Describe the bug I wanted to launch io.missioncenter.MissionCenter.desktop (in /var/lib/flatpak/exports/share/applications which is in $XDG_DATA_DIRS). However, this does not work because https://github.com/0ry0n/Resource_Monitor/blob/c3f81185bcc1ed4f87c45c38d1fb86865bc42d15/Resource_Monitor%40Ory0n/extension.js#L638 has a global.log() around the app lookup. Removing this global.log() makes the program launch correctly. Using a desktop file that doesn't have "."s in the name works such as firefox.

To Reproduce

Expected behavior Using a flatpak's desktop file should work.

Screenshots N/A

Desktop (please complete the following information):

Additional context Consider allowing a custom command instead of a custom program. (But be sure to ask if that'll introduce security issues.)