Closed ke1v closed 4 months ago
Progress update - Extension is functional, but is still:
error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
or doesn't renderWorking Screenshot (ran using pnpm dev
)j:
Attempt to package (ran executable from pnpm package
):
Thanks for the update and your efforts, i'll have a look when i'm back from vacation. The failing build is expected, you have to install the pnpm dependencies under the correct configuration (see release.yml where it says "configure pnpm").
To fix the Cannot find module '@babel/runtime/helpers/interopRequireDefault'
error, you have to run these commands before running pnpm package
:
pnpm config set shamefully-hoist true --location=project
pnpm config set auto-install-peers true --location=project
pnpm config set strict-peer-dependencies true --location=project
Can you update your branch, so that the changes that already have been added in my main branch disappear from this PR?
Apologies for the messy commits, I'm still learning git. The plugin seems to be fully functional in GNOME and should be good to merge, but I don't have time currently to test out the other popular desktops for Linux.
FYI: I addressed all my feedback in this branch.
I tested it on Ubuntu Cinnamon, but none of the applications worked as the icons couldn't be found/generated. I suggest to fall back to a generic app icon when the icon generation fails.
Edit: I'll post logs later.
I've also experienced this issue and am working on a fix to this and other bugs. I'm also planning to add support for more desktop environments than Cinnamon and GNOME, should I create a type similar to OperatingSystems with all supported Linux environments?
Yes you can, but let's keep in in the ApplicationSearch folder for now, as we only need it there now.
I've changed the way applications get launched and it now supports launching files located anywhere on GNOME. I still have other desktops to test out (sorry spinning up VMs take a lot of time) which are all currently listed in LaunchDesktopFileActionHandler.ts
I tested it on Ubuntu Cinnamon and it works fine, although some icons couldn't be generated. There is a lot of opportunity for improvements, for example splitting code into multiple classes, simplifying code flows or adding more tests, but this is good enough for now, so let's merge it to move forward. Thanks alot for your time and all your efforts, much appreciated! 💪
For future changes please keep in mind:
import type ...
whenever possible// instead of this
const processEnv: EnvironmentVariableProvider = ...
// do this
const envrionmentVariableProvider: EnvironmentVariableProvider ...
I added you to the code owners of all the Linux parts of the ApplicationSearch extension, so I will forward all future feature request, issues and contributions to you for review, if that's fine. Keep it up!
Reopening #1073