Ignore:
Timestamp:
03/17/19 22:29:23 (5 years ago)
Author:
davidb
Message:

After change to have resources-public and resources-private, some changes needed to support running Expeditee for a single user; other main change is to allow FrameDirs to specify relative directory paths, to help with when Expeditee is run on the cloud -- similar work still needs to occurr for ImageDir and AudioDir; some other minor changes also made.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Browser.java

    r1242 r1244  
    2222import java.io.IOException;
    2323import java.net.Authenticator;
     24import java.nio.file.Path;
    2425import java.security.KeyStoreException;
    2526import java.security.NoSuchAlgorithmException;
     
    148149        public static boolean _hasExited = false;
    149150
     151        public static String USER_NOBODY = "nobody";
     152       
    150153        /** A flag which is set once the application is exiting. */
    151154        protected boolean _isExiting = false;
     
    154157       
    155158        private static String _startFrame = null;
     159
    156160
    157161        /**
     
    162166        public static void main(String[] args)
    163167        {
     168                if (Boolean.getBoolean("auth")) {
     169                        String starting_user_name = System.getProperty("user.name");
     170                        System.setProperty("startinguser.name", starting_user_name);
     171                        System.setProperty("user.name", USER_NOBODY);
     172                }
     173               
    164174                // Parse the starting frame command-line argument
    165175                if(args.length > 0) {
     
    261271                Frame userProfile = loadProfiles();
    262272
     273                if (!Boolean.getBoolean("auth")) {
     274                        String userName = UserSettings.ProfileName.get();
     275                        FrameIO.setupPersonalResources(userName);
     276                }
    263277                // Listen for save status to display during and after runtime
    264278                EntitySaveManager.getInstance().addSaveStateChangedEventListener(this);
Note: See TracChangeset for help on using the changeset viewer.