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

SaveDialog not showing $HOME directory #447

Open
pcardona34 opened this issue Dec 23, 2024 · 4 comments
Open

SaveDialog not showing $HOME directory #447

pcardona34 opened this issue Dec 23, 2024 · 4 comments

Comments

@pcardona34
Copy link

Hi Sergiii,

Context :

Debian 12.8
Linux NEXTPI 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

  • Behaviour:
    When trying to save a new document (UNTITLED.rtf) whithin TextEdit
    menu: "Document / Save..."

In the Dialog Box :

  1. The User Home Icon (House) does not change Directory to $HOME;
  2. In the root list, only are there three paths available :
  • /Applications
  • /Developper
  • /Library

So the $HOME directory is not available and You cannot save the unsaved file.

  • Console maybe usefull messages:

2024-12-23 23:41:30.604 TextEdit[1796:1796] Creating a default printer since no default printer has been set in CUPS.
2024-12-23 23:41:30.627 TextEdit[1796:1796] Warning: (NSLayoutManager) -[NSLayoutManager setHyphenationFactor:] not implemented
2024-12-23 23:45:03.147 TextEdit[1796:1796] Error while establishing connection <<NSNibOutletConnector: 0x556b6d7f78> src= h=&-- v=--& <NSButton: 0x556ba6c6d8> f={x = 228; y = 6; width = 71; height = 27} b={x = 0; y = 0; width = 71; height = 27} dst=<NSFormCell: 0x556b924d18> label=nextKeyView>: [NSView -setNextKeyView:] passed non-view object <NSFormCell: 0x556b924d18>
2024-12-23 23:45:03.148 TextEdit[1796:1796] awakeFromNib
2024-12-23 23:45:03.161 TextEdit[1796:1796] NXTSavePanel: _selectTextInColumn:-1

@pcardona34
Copy link
Author

P.S.: It is the same for the Open File Dialog.

@trunkmaster
Copy link
Owner

@pcardona34 works for on Fedora 41 and Debian 12. By default Open/Save dialog displays home directory on its first appear.

What is your user home directory? What is inital location displayed in Save dialog? What do expect to see?

@pcardona34
Copy link
Author

Hi Sergii,

Thank You for your answer.

In Packaging/install_environment.sh
At line 106, in the add_user() function, the adduser command is called with options (-b, etc) not available within debian context of this command.
So my mistake was to comment these options and run the installation, so my home base directory has been: /home.

Wondering again about the -b /Users option, and after reading the OpenStep specs about /Users basename of the home directory, I realised this environment was mandatory.

Finally, I understood that the convenient command should be useradd instead of adduser at line 106 for a debian installation.
See: https://manpages.debian.org/bullseye/passwd/useradd.8.fr.html

The two commands: adduser and useradd exist on Debian, but those do not accept the same options.

So I shall try a clean installation again from a clean fork, with that modified, so I should have the good basename '/Users' VS '/home'...

Maybe the other issues I reported could also be concerned by this bad home base path. I shall tell You as soon as possible.

@pcardona34
Copy link
Author

Hi Sergii,

I tried again with a fresh install from source (see issue #448 for the detailed process).

Even I modified the line 106 in Packaging/install_environment.sh to obtain a /Users base home directory, it seems that this function was never called while You install NextSpace from Packaging/Sources scripts.

So I reproduced my first attempt : my $HOME var was again /home/patrick (not /Users/patrick) and it still never shows in Open or Save Dialogs.
The initial location of these File Windows is always the System root /, And only these three folders are there:

  • /Applications
  • /Developper
  • /Library

Maybe I am missing one step in the install process ? Can You confirm I sould have /Users and not /home as the user home base directory ?

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

2 participants