Commit ec2f63aa authored by RUSSELL MYERS's avatar RUSSELL MYERS

Updating Idle Logout.app to v1.1 - Adding preference key to change window...

Updating Idle Logout.app to v1.1 - Adding preference key to change window title (key: WindowTitle, type: string); Forcing logout of user instead of reboot, may cause issue with loginwindow and directory service where user logins fail.
parent 17b96008
#tag BuildAutomation Begin BuildStepList Linux Begin BuildProjectStep Build End End Begin BuildStepList Mac OS X Begin BuildProjectStep Build End End Begin BuildStepList Windows Begin BuildProjectStep Build End End #tag EndBuildAutomation
\ No newline at end of file
#tag BuildAutomation Begin BuildStepList Linux Begin BuildProjectStep Build End End Begin BuildStepList Mac OS X Begin IDEScriptBuildStep SaveProject , AppliesTo = 0 DoCommand "SaveFile" End Begin BuildProjectStep Build End Begin IDEScriptBuildStep UnDock , AppliesTo = 0 Dim AppLocation as String = CurrentBuildAppName + ".app" AppLocation = AppLocation.ReplaceAll( " ", "\ " ) AppLocation = CurrentBuildLocation + "/" + AppLocation //@ More cocoa info.plist keys here: // https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html Call DoShellCommand("/usr/bin/defaults write " + AppLocation + "/Contents/Info ""LSBackgroundOnly"" ""true""") End End Begin BuildStepList Windows Begin BuildProjectStep Build End End #tag EndBuildAutomation
\ No newline at end of file
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>13B42</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>XojoFramework</string>
<key>CFBundleIdentifier</key>
<string>com.xojo.XojoFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>XojoFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>5A3005</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>13A595</string>
<key>DTSDKName</key>
<string>macosx10.9</string>
<key>DTXcode</key>
<string>0502</string>
<key>DTXcodeBuild</key>
<string>5A3005</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Xojo, Inc. All rights reserved.</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleExecutable</key>
<string>Idle Logout</string>
<key>CFBundleName</key>
<string>Idle Logout</string>
<key>CFBundleIdentifier</key>
<string>IdleLogout</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleVersion</key>
<string>1.0.1.2.0</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string></string>
<key>CFBundleGetInfoString</key>
<string>1.0b1, Penn State University/ITS/CLC</string>
<key>CFBundleShortVersionString</key>
<string>1.0b1</string>
<key>CFBundleIconFile</key>
<string>Idle Logout.icns</string>
<key>LSMinimumSystemVersion</key>
<string>10.6.0</string>
<key>CFBundleDocumentTypes</key>
<array>
</array>
</dict>
</plist>
\ No newline at end of file
#!/bin/bash
#--------------------------------------------------------------------------------------------------
#-- psuForceLogout
#--------------------------------------------------------------------------------------------------
# Program : psuForceLogout
# To Complie : n/a
#
# Purpose : Force user logout
#
# Called By : IdleLogout.app, TEM (As needed)
# Calls :
#
# Author : Rusty Myers <rzm102@psu.edu>
# Based Upon :
#
# Note :
#
# Revisions :
# 2014-03-18 <rzm102> Initial Version
#
# Version : 1.0
#--------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
#-- Log - Echo messages with date and timestamp
#--------------------------------------------------------------------------------------------------
Log ()
{
logText=$1
# indent lines except for program entry and exit
if [[ "${logText}" == "-->"* ]];then
logText="${logText}`basename $0`: launched..."
else
if [[ "${logText}" == "<--"* ]];then
logText="${logText}`basename $0`: ...terminated"
else
logText=" ${logText}"
fi
fi
date=$(/bin/date)
echo "${date/E[DS]T /} ${logText}"
}
Log "-->"
Log "Found User $USER"
Log "Killing Apps"
kill -9 `ps axxx | grep "/Applications" | awk '{print $1}'`
Log "Log out user wihtout prompt"
osascript -e 'tell application "System Events"' -e 'keystroke "q" using {command down, shift down, option down}' -e 'end tell'
# Original https://jamfnation.jamfsoftware.com/discussion.html?id=9902
## Get the logged in user's name
# loggedInUser=$( ls -l /dev/console | awk '{print $3}' )
## Get the PID of the logged in user
# loggedInPID=$( ps -axj | awk "/^$loggedInUser/ && /Dock.app/ {print \$2;exit}" )
## Use the above to run Applescript command to logout using keystroke commands
# /bin/launchctl bsexec "${loggedInPID}" sudo -iu "${loggedInUser}" "/usr/bin/osascript -e 'tell application \"System Events\" to keystroke \"q\" using {command down, option down, shift down}'"
Log "<--"
This diff is collapsed.
This diff is collapsed.
#tag IDEScriptBuildStep Begin IDEScriptBuildStep Script1 , AppliesTo = 0 'Build script for psuIdleLogout.app End #tag IDEScriptBuildStep
\ No newline at end of file
Type=Desktop RBProjectVersion=2013.01 MinIDEVersion=20070100 Class=IdleLogout;IdleLogout.rbbas;&h3007783E;&h0;false Window=LogoutWarning;LogoutWarning.rbfrm;&h3A6788BA;&h0;false MenuBar=MenuBar1;MenuBar1.rbmnu;&h6341CAF0;&h0;false BuildSteps=Build Automation;Build Automation.rbbas;&h2A7E2380;&h0;false Module=LogToFile;LogToFile.rbbas;&h236DD59E;&h0;false Module=Globals;Globals.rbbas;&h7FE3CBE3;&h0;false Module=MiscMethods;MiscMethods.rbbas;&h445F2753;&h0;false Module=myXMLTools;myXMLTools.rbbas;&h6DD0A4A2;&h0;false Module=PlistHelper;PlistHelper.rbbas;&h4AA6652A;&h0;false IDEScriptBuildStep=Script1;Script1.xojo_code;&h6C77DF83;&h0;false AppMenuBar=MenuBar1 MajorVersion=1 MinorVersion=0 SubVersion=1 NonRelease=0 Release=2 InfoVersion= LongVersion=1.0b1, Penn State University/ITS/CLC ShortVersion=1.0b1 WinCompanyName= WinInternalName= WinProductName= AutoIncrementVersionInformation=False BuildFlags=&h4000 BuildLanguage=&h0 DebugLanguage=&h0 Region= WindowsName=My Application.exe MacCarbonMachName=Idle Logout LinuxX86Name=MyApplication MacCreator= MDI=0 MDICaption= DefaultEncoding=&h0 AppIcon=psuIdleLogout.rbres;&h0 OSXBundleID=IdleLogout DebuggerCommandLine= UseGDIPlus=True UseBuildsFolder=True IsWebProject=False
\ No newline at end of file
Type=Desktop RBProjectVersion=2014.01 MinIDEVersion=20070100 Class=IdleLogout;IdleLogout.rbbas;&h3007783E;&h0;false Window=LogoutWarning;LogoutWarning.rbfrm;&h3A6788BA;&h0;false MenuBar=MenuBar1;MenuBar1.rbmnu;&h6341CAF0;&h0;false BuildSteps=Build Automation;Build Automation.rbbas;&h2A7E2380;&h0;false Module=LogToFile;LogToFile.rbbas;&h236DD59E;&h0;false Module=Globals;Globals.rbbas;&h7FE3CBE3;&h0;false Module=MiscMethods;MiscMethods.rbbas;&h445F2753;&h0;false Module=myXMLTools;myXMLTools.rbbas;&h6DD0A4A2;&h0;false Module=PlistHelper;PlistHelper.rbbas;&h4AA6652A;&h0;false MajorVersion=1 MinorVersion=1 SubVersion=0 NonRelease=0 Release=2 InfoVersion= LongVersion=1.1, Penn State University/ITS/CLC ShortVersion=1.1 WinCompanyName= WinInternalName= WinProductName= WinFileDescription= AutoIncrementVersionInformation=False BuildFlags=&h1800 BuildLanguage=&h0 DebugLanguage=&h0 Region= WindowsName=My Application.exe MacCarbonMachName=Idle Logout LinuxX86Name=MyApplication MacCreator= MDI=0 MDICaption= DefaultEncoding=&h0 AppIcon=psuIdleLogout.rbres;&h0 OSXBundleID=edu.psu.idlelogout DebuggerCommandLine= UseGDIPlus=True UseBuildsFolder=True IsWebProject=False
\ No newline at end of file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment