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

path name in demo central window #128

Open
pphaneuf opened this issue Aug 23, 2014 · 2 comments
Open

path name in demo central window #128

pphaneuf opened this issue Aug 23, 2014 · 2 comments

Comments

@pphaneuf
Copy link
Member

No description provided.

@pphaneuf
Copy link
Member Author

Submitted by Egmont Koblinger (egmont):

--- Very low priority bug-collection ---

Path names behave a little bit wierd in the Demo Central
window under Linux.

Usually the only problem is that the root directory is
shown as an empty string instead of "/".

However if current directory of quadra is "/", then this is
shown, and after entering a directory, double slashes
will be there.

If you manually enter a path with a trailing slash, then
clicking to ".." doesn't go to "..", only removes this
slash.

(Maybe realpath(3) could help solving the issues
above.)

Using the glob function has problems with directories
whose real names contain wildcard characters. E.g. if
you have a directory named "a_c" and one named "abc"
and you click to "a_c", you'll see the .rec files and
subdirs found under "abc" too. So rather
opendir/readdir/closedir should be used, not glob.

If would be nice to hide ".." in the root directory.

It's okay that dot-directories are hidden, maybe
dot-something-dot-rec files shouldn't be, but I'd really
like to see at least ".quadra" shown there so that I can
easily browse other users' best games.

Comment by stanb:

I've been totally inactive on this project, heh been busy
last year and a half. Looks like a few bugs from more than
a year old have yet to be fixed, I'll start triaging some
stuff tonight.

On a side note, realpath(3) I'll look into, need to see how
compatible it is accross distributions. There's a lot in
quadra that could be changed that could allow it to be
compiled in more environments than the limited number it can
be now. In other words I think we'll fix a lot of bugs
people have mentioned as general portions of quadra are
improved.

Thanks for the bug report.

@pphaneuf
Copy link
Member Author

This is also true on Mac (since it's a Unix), path are a bit wrong. This might be
fixed only in SDL branch, we'll see.

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

1 participant