OrangeDrangon / android-messages-desktop

Android Messages as a Cross-platform Desktop App
Other
343 stars 29 forks source link

App fails to start if space in directory name #446

Closed rasa closed 6 months ago

rasa commented 6 months ago

Describe the bug

A space in the directory name is now crashing on startup:

ross@starlin:/opt/Android Messages$ ./AndroidMessages 
LaunchProcess: failed to execvp:
/opt/Android
Trace/breakpoint trap (core dumped)
ross@starlin:/opt/Android Messages$ pwd
/opt/Android Messages
ross@starlin:/opt/Android Messages$ cd ..
ross@starlin:/opt$ sudo mv Android\ Messages AndroidMessages
ross@starlin:/opt$ cd AndroidMessages
ross@starlin:/opt/AndroidMessages$ ./AndroidMessages 
# runs fine

To Reproduce

Upgrade to Ubuntu 24.04 (Noble) which uses kernel 6.8

Expected behavior

App runs.

Screenshots

See above

Desktop (please complete the following information):

Additional context

Works with 24.04/Noble if kernel 6.5 is selected when booting up

rasa commented 6 months ago

The issue was AppArmor. I fixed via sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 per https://stackoverflow.com/a/77686998