Skip to content

"Login app automatically" not working #9

@lucasbento

Description

@lucasbento

Hello 👋

First of all, thanks for creating this app, it helps me a lot on a daily-basis.

Unfortunately, as the title says, the "Login app automatically" option is not working properly, perhaps it's something with my OS (macOS Big Sur, 11.5.1).

I have tried to fix it but I have very little experience with macOS apps. I did notice that nothing is calling toggleAutoLaunch in SearchVM.swift so I changed autoLaunchEnabled to:

    @Published @objc dynamic var autoLaunchEnabled = false {
        didSet {
            if autoLaunchEnabled != oldValue { toggleAutoLaunch(bool: autoLaunchEnabled) }
        }
    }

But then I get:

2021-08-28 20:18:35.538251+0200 gitimoji[7040:2448086] Could not locate login item com.timozacherl.GitmojiAutoLaunchHelper in the caller's bundle
2021-08-28 20:18:35.539132+0200 gitimoji[7040:2448086] Could not enable login item: com.timozacherl.GitmojiAutoLaunchHelper: 3: No such process

Even though it was started properly.

Perhaps you can give me any pointers on how to debug/fix this? Then I'll gladly open a PR.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions