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

Fix elevation on webOS 3.x #194

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

throwaway96
Copy link
Member

On webOS 3.5 (and probably 3.0), both the old and new Luna directories are used. Therefore, we have to process the new directory even if a service file is only found in the old one.

When I added support for non-dev Luna directories, I made elevate-service skip the ones without a service file to prevent creation of duplicate files. However, webOS 3.x needs API and client permission files in /var/luna-service2(-dev) even though the service files are in /var/palm/ls2(-dev). So check the legacy dirs first, and if a service file is found, don't skip the corresponding new dir.

I probably didn't catch this earlier because API and client permission files aren't deleted when an app is removed, so I still had copies from a previous installation.

On webOS 3.5 (and probably 3.0), both the old and new Luna directories
are used. Therefore, we have to process the new directory even if a
service file is only found in the old one.
@throwaway96 throwaway96 merged commit 1b53c99 into webosbrew:main Sep 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants