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

Could not lunch the app into diagnostics mode #23

Open
ehsan58 opened this issue Nov 1, 2022 · 7 comments
Open

Could not lunch the app into diagnostics mode #23

ehsan58 opened this issue Nov 1, 2022 · 7 comments

Comments

@ehsan58
Copy link

ehsan58 commented Nov 1, 2022

greeting
when i open the app i get the following error: “DebugScriptSudo.command” can’t be opened because TINU is not allowed to open documents in Terminal.
i am on macbook pro 2021 m1 pro
Screenshot 2022-11-01 at 10 56 41

@dclive
Copy link

dclive commented Dec 3, 2022

Same issue here. Any ideas?

MacOS 13.01.

@ITzTravelInTime
Copy link
Owner

With SIP disabled this doesn't happen on my test systems, but i guess this likely requires an app update, to properly request permitions from the system, i'd have to do some tests over the holidays and eventually update the app.

For now a workaround is to open this file ~/Library/Application\ Support/org.pietrocaruso.TINU/DiagnosticsMode/DebugScriptSudo.command (located on your main OS boot drive) manually with the terminal, this is a very simple terminal script that tinu uses to run as administrator using the privilages granteed by the terminal that are needed for a proper functioning of createinstallmedia (the apple prgram that TINU uses, which needs to modify the botable installer partition, hence the permit requirement) to successfully make installers, all of this isn't needed without SIP because in that case any program running with sufficient permitions can modify bootable disks.

Anyway, sorry for the delayed response, i am working on a lot of stuff right now, including mac drivers for some sound cards, a DOS game, and a secret App project, and i find very hard focusing to work on TINU now, but i will allocate some of my time to help you.

I hope i have been helpful to you, have a nice time.

@dclive
Copy link

dclive commented Dec 26, 2022

For those not as familiar with terminal commands:

First, ensure you're not already running TINU. Then:

  1. Open a MacOS terminal using the terminal app. Use CMD-Spacebar to find it if you needed.
  2. 'cd ~/Library/Application\ Support/org.pietrocaruso.TINU/DiagnosticsMode/'
  3. 'sudo ./DebugScriptSudo.command'
  4. When prompted, key in your password
  5. TINU should then open and run

@dclive
Copy link

dclive commented Mar 6, 2023

cd ~/Library/Application\ Support/org.pietrocaruso.TINU/DiagnosticsMode/

sudo ./DebugScriptSudo.command

Rewriting in more easily clickable format. So glad I wrote this. Finding it again a few months later; very useful. :)

@pkyeck
Copy link

pkyeck commented Dec 7, 2024

I get a command not found error under Sonoma 14.6.1

~ ⌚ 9:38:06
$ cd ~/Library/Application\ Support/org.pietrocaruso.TINU/DiagnosticsMode/

~/Library/Application Support/org.pietrocaruso.TINU/DiagnosticsMode ⌚ 9:38:07
$ sudo ./DebugScriptSudo.command
Password:
Opening TINU in log mode with administrator privileges
Please enter your admin/user passowrd: 
sudo: /private/var/folders/ph/887zj_fj4cl9gc7qnq4j__w00000gn/T/AppTranslocation/C54B7B12-B920-42FF-9FB3-ED69195360F3/d/TINU.app/Contents/MacOS/TINU: command not found

should this still work for Sonoma?

@ITzTravelInTime
Copy link
Owner

TBH since I have switched to Linux and moved away from the apple ecosystem it has been about 2 years since i have last worked on TINU, i am afraid i didn't do any tests on this issue, however TINU should still work on Ventura on Intel systems.

All of this diagnostics mode complication is really a workaround: to have a proper privilege escalation that works with code that modifies a bootable macOS partition while staying compliant with the open source principles. Normally you need to have a security certificate from apple with the right flags and entitlements that requires a 100$/y subscription fee, which is something that goes against the pricinciples of the GNU GPL since it limits the ability to reproduce what the app does, preventing non-apple-delveloper-subscribers from basically using the app when they compile it from source.

So I come up with this really hacky not very well working solution which runs TINU using an authenticated terminal session (and it works because the terminal comes with all the required entitlements and certificate).

And it was for reasons like this and because of how good Linux has become that i decided to move on from Apple.

That said, the error here seems that macOS is spewing out a messed up path that doesn't contain the TINU.app on the disk,, so the terminal can't find the executable file for TINU when TINU asks for it's own path. I encourage you to embrace some of the open source principles and get digging in the source code to find out why, tbh i am no longer interested in maintaining this project as-is

@pkyeck
Copy link

pkyeck commented Dec 7, 2024

Thanks for the quick reply.

But then maybe make the Repo read-only and mention that in the readme so people now that this is "outdated" and does not run on the newest OS 🤷‍♂️

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

No branches or pull requests

4 participants