Login  •  Register


The time is now: Mon Jul 22, 2019 11:56 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 6 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: Make prefs file visible?
PostPosted: Sun Feb 03, 2019 1:38 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1053
In the file macemu-master/SheepShaver/src/Unix/prefs_unix, if you change line 62 to this (replacing .sheepshaver_prefs with SheepShaverPrefs.txt):

const char PREFS_FILE_NAME[] = "SheepShaverPrefs.txt";

then the Prefs file will be visible in the user's home folder, and will open with TextEdit. I hope this forum might consider making this change, because it would make SheepShaver a lot more usable.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 03, 2019 1:56 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5461
Location: Amsterdam, Netherlands
A new build in an existing setup would loose access to the existing settings.

And wouldn't this change the name also on other platforms (Linux)?

In current macOS versions it is easy to make the file visible. With the Home folder open in a window, press cmd-shift-. (command -shift-period). That key combo toggles visibility of many hidden files. Double clicking .sheepshaver_prefs will open it in TextEdit.


Last edited by Ronald P. Regensburg on Sun Feb 03, 2019 1:57 pm, edited 1 time in total.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 03, 2019 7:04 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1053
Ronald P. Regensburg wrote:
A new build in an existing setup would loose access to the existing settings.

And wouldn't this change the name also on other platforms (Linux)?

In current macOS versions it is easy to make the file visible. With the Home folder open in a window, press cmd-shift-. (command -shift-period). That key combo toggles visibility of many hidden files. Double clicking .sheepshaver_prefs will open it in TextEdit.


Yes, the change would affect Linux also. I understand the very good reasons not to change the setting that has been in place forever. I've made the change in my private builds, and it makes things much more convenient - though it may make things less convenient for everyone else.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 03, 2019 8:04 pm 
Offline
Apple Corer
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 271
What about renaming it "SheepShaverPrefs.txt" and creating a symlink ".sheepshaver_prefs" for backward compatibility?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 03, 2019 8:51 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5461
Location: Amsterdam, Netherlands
mabam wrote:
What about renaming it "SheepShaverPrefs.txt" and create a symlink ".sheepshaver_prefs" for backward compatibility?

Or keep the original name and create a symlink with whatever name without the leading dot that makes the file invisible in the macOS Finder.

The whole idea of making the hidden prefs file visible is that viewing (and possibly editing) the file would be more convenient for the not so experienced user. Do you mean that the SheepShaver application should automatically create that symlink?

(I myself created a visible alias of the hidden prefs file in my SheepShaver folder: Made the hidden files visible, created an alias of the prefs file, removed the leading dot from the alias name and made the hidden files invisible again. Double clicking the alias opens the prefs file in TextEdit. Also without a .txt extension the prefs file is recognized as a text file.)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 03, 2019 11:02 pm 
Offline
Apple Corer
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 271
Ronald P. Regensburg wrote:
The whole idea of making the hidden prefs file visible is that viewing (and possibly editing) the file would be more convenient for the not so experienced user.
[…]
I myself created a visible alias of the hidden prefs file in my SheepShaver folder
And I thought you were an experienced user. ;-)

Ronald P. Regensburg wrote:
Do you mean that the SheepShaver application should automatically create that symlink?
Yes. But then the name should probably be something like "Link to SheepShaver preferences" or at least contain "alias" or similar. That way, e. g. if for some reason someone wants to delete the prefs file, it is clear that by this file only the alias is deleted.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 6 posts ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group