Skip to content

Jitouch not launching automatically due to lack of permissions #67

@shp7724

Description

@shp7724

Hello,

These days I've been experiencing some issues where Jitouch would not launch on start up in my new m1 macbook.
I had to manually run the app via terminal with the following command:

nohup /Library/PreferencePanes/Jitouch.prefPane/Contents/Resources/Jitouch.app/Contents/MacOS/Jitouch &

Reading through the readme, issues, and all the troubleshooting guide you provided, I found that this is because LaunchAgents are not set up correctly. All these command gave me no results related to Jitouch:

launchctl list | grep jitouch
cd /Library/LaunchAgents
cd ~/Library/LaunchAgents

Interestingly, even if I run Jitouch manually and set the log level to Debug, I was not able to find any logs at ~/Library/Logs/com.jitouch.Jitouch.prefpane.log and /Library/Logs/com.jitouch.Jitouch.prefpane.log

So I built the app from the source, ran it, and was able to create the log:

2023-05-01 02:00:32.695 legacyLoader-arm64[11760:49882] Jitouch prefPane opened
2023-05-01 02:00:32.697 legacyLoader-arm64[11760:49882] Updated LaunchAgent at /Users/user/Library/LaunchAgents/com.jitouch.Jitouch.plist
Unload failed: 5: Input/output error
Try running `launchctl bootout` as root for richer errors.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
2023-05-01 02:00:32.730 legacyLoader-arm64[11760:49882] Reloaded LaunchAgent at /Users/user/Library/LaunchAgents/com.jitouch.Jitouch.plist
2023-05-01 02:01:07.976 legacyLoader-arm64[14389:55619] Jitouch prefPane opened
Unload failed: 5: Input/output error
Try running `launchctl bootout` as root for richer errors.
2023-05-01 02:01:07.986 legacyLoader-arm64[14389:55619] Error creating LaunchAgent at /Users/user/Library/LaunchAgents/com.jitouch.Jitouch.plist: ‘LaunchAgents’ 폴더에 ‘com.jitouch.Jitouch.plist’ 파일을 저장할 수 있는 권한이 없습니다.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
2023-05-01 02:01:08.001 legacyLoader-arm64[14389:55619] Reloaded LaunchAgent at /Users/user/Library/LaunchAgents/com.jitouch.Jitouch.plist
No matching processes belonging to you were found
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.

The error message in Korean can be translated into You don't have permissions to save 'com.jitouch.Jitouch.plist' file in 'LaunchAgents' folder.. Note that I have Jitouch enabled in my Settings > Privacy > Accessibility list.

Now I'm stuck here. Can you help me trace down the issue?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions