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

Show error and troubleshoot dialog when lacking full disk access #6301

Merged

Conversation

raksooo
Copy link
Member

@raksooo raksooo commented May 30, 2024

Split tunneling on macOS requires the app to have "Full Disk Access". This PR adds an error informing the user when it is off and a troubleshoot dialog with instructions for how to enable it.


This change is Reviewable

@raksooo raksooo requested a review from dlon May 30, 2024 07:29
Copy link

linear bot commented May 30, 2024

Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


gui/src/shared/notifications/error.ts line 293 at r1 (raw file):

          details: messages.pgettext(
            'troubleshoot',
            'Failed to enable split tunneling. This is usually caused by the mullvad daemon lacking file system permissions. Fix this by:',

I would remove "usually" here, since we know the exact reason in this case.

@raksooo raksooo force-pushed the instruct-user-to-enable-full-disk-access-for-the-app-des-966 branch from e800157 to 510d69d Compare May 30, 2024 08:55
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @raksooo)


gui/locales/messages.pot line 1094 at r2 (raw file):

msgctxt "notifications"
msgid "Failed to enable split tunneling. Please try again or disable it."

"Try reconnecting"?

@raksooo raksooo force-pushed the instruct-user-to-enable-full-disk-access-for-the-app-des-966 branch from 510d69d to b4d963f Compare May 31, 2024 08:15
@raksooo raksooo force-pushed the instruct-user-to-enable-full-disk-access-for-the-app-des-966 branch from b4d963f to 4650984 Compare May 31, 2024 08:17
Copy link
Member Author

@raksooo raksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a condition that prevents the split tunneling troubleshoot dialog from being available on macOS since the description doesn't apply. Let's see if that error is common enough before spending time on an troubleshoot dialog.

Reviewable status: 7 of 9 files reviewed, all discussions resolved (waiting on @dlon)


gui/locales/messages.pot line 1094 at r2 (raw file):

Previously, dlon (David Lönnhager) wrote…

"Try reconnecting"?

Done. I also replaced "it" with "split tunneling".

Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@raksooo raksooo merged commit f5795bb into main May 31, 2024
7 checks passed
@raksooo raksooo deleted the instruct-user-to-enable-full-disk-access-for-the-app-des-966 branch May 31, 2024 11:07
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