SDL FileManager

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

Post Reply
medmed
Atari Super Hero
Atari Super Hero
Posts: 717
Joined: Sat Apr 02, 2011 5:06 am
Location: France, Paris

SDL FileManager

Post by medmed »

Hi,

Please find attached bin (020/CF) and source code for a simple file manager write in SDL.
It's old school style and some non essential functions are not yet implemented.
I launched some programs with it and it do the job.
I guess it could be improved.
Mouse and keyboard are usable. Keep shift key pressed to switch to other functions.

P.S. I had to comment usage for

Code: Select all

		pwd = getpwuid(files_list[files_order[cursor_file]].st_uid);
		grp = getgrgid(files_list[files_order[cursor_file]].st_gid);
It seems that pwd->pw_name and grp->gr_name aren't relaible, may be pointing to NULL?

Original source found here
You do not have the required permissions to view the files attached to this post.
Last edited by medmed on Sun May 26, 2024 10:40 am, edited 2 times in total.
M.Medour - 1040STF, Mega STE + Spektrum card, Milan 040 + S3Video + ES1371.
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3087
Joined: Sun Aug 03, 2014 5:54 pm

Re: SDL FileManager

Post by ThorstenOtto »

Hm, good as a proof of concept, but otherwise rather useless? As a SDL app, it requires GEM, and then even the simplest desktop for Atari should be better suited ;)
medmed
Atari Super Hero
Atari Super Hero
Posts: 717
Joined: Sat Apr 02, 2011 5:06 am
Location: France, Paris

Re: SDL FileManager

Post by medmed »

ThorstenOtto wrote: Sun May 26, 2024 10:18 am Hm, good as a proof of concept, but otherwise rather useless? As a SDL app, it requires GEM, and then even the simplest desktop for Atari should be better suited ;)
Yes, partially agreed: As it provides a file manager it could be an easy starting point to implement ftps or nfsv3 client: I've libnfs implementation in mind :)
M.Medour - 1040STF, Mega STE + Spektrum card, Milan 040 + S3Video + ES1371.
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3087
Joined: Sun Aug 03, 2014 5:54 pm

Re: SDL FileManager

Post by ThorstenOtto »

For nfs, it would make more sense to update the mint driver & server. Then you don't need a separate file manager ;)
medmed
Atari Super Hero
Atari Super Hero
Posts: 717
Joined: Sat Apr 02, 2011 5:06 am
Location: France, Paris

Re: SDL FileManager

Post by medmed »

ThorstenOtto wrote: Sun May 26, 2024 1:19 pm For nfs, it would make more sense to update the mint driver & server. Then you don't need a separate file manager ;)
I agree but I don't have the skills for that. Best to start with the easiest and work your way up unless someone else looks into integrating nfsv3/v4 into the kernel.
M.Medour - 1040STF, Mega STE + Spektrum card, Milan 040 + S3Video + ES1371.
Post Reply

Return to “Applications”