papercut login hook

dustydorey
Contributor III

Hey there folks,

One of our High Schools uses Papercut (sp*) for managing printing in his
building. In any case he's got a login hook that starts papercut and
sets it so that if it's closed it re-opens again.

This is all well and good, but as soon as the enforce management
framework runs either after imaging, adding the quickadd package, or
daily it quits working. We've tried putting a unix command in an
ongoing policy to launch what the login hook did but for some reason I
think we missed something as it just doesn't work. In any case is
anyone using this in their organization alongside Casper? If so some
direction would be great.

Thanks a lot folks!

-Dusty-

Dustin Dorey

Technology Support Cluster Specialist

ISD 196 Apple Valley, Eagan, Rosemount

dustin.dorey at district196.org

952|423|7971

9 REPLIES 9

Not applicable

Hello,

We just went through this with JAMF.

We just setup a login script that runs the following:

#!/bin/sh

echo "Launching PaperCut..."
/Applications/PCClient.app/Contents/Resources/login-hook-start "$3"

exit 0

----------
Brad Rellinger
Technology Specialist
Anthony Wayne Schools K-12
aw_aca_bre at nwoca.org

quedayone
Contributor

I love JAMF Nation. Thanks for the info. Just saved me a boatload of time.

bse_college
New Contributor III

If you install the PaperCut Client and require it to run for all users at login, this can be used.

dscl . -mcxset /Computers/localhost loginwindow AutoLaunchedApplicationDictionary-managed always '( { Hide = 0; Path = “/Applications/PCClient.app"; }, "Path = "/Applications/PCClient.app"" )'

Tested and working on a OSX 10.10.5 client.

analog_kid
Contributor

I created a LaunchAgent make sure PaperCut is opened for users of our labs upon login. There's definitely more than one way to skin this cat.

Chris_Hafner
Valued Contributor II

I went the LaunchAgent path as well (recommended by PaperCut).

http://www.papercut.com/kb/Main/MacClientStartupWithLaunchd

P.S> This works beautifully!

BCPeteo
Contributor II

"I went the LaunchAgent path as well (recommended by PaperCut).
http://www.papercut.com/kb/Main/MacClientStartupWithLaunchd"

I've tried this with jamf pushing out the application and the plist and rebooting. The issue i am having is the printers do not get added unless I login as an admin first. I verified the files owner and permissions match the papercut documentation.
Any know a solution to this?

msw
Contributor

@ostrowsp The kbase you linked to is about launching the papercut client. I'm not sure what you're referring to about printers not getting added...

Chris_Hafner
Valued Contributor II

Yea... @ostrowsp I'm not making your conenction either. PCClient is on thing, adding printers is another. How are you intending to add printers?

PaulHazelden
Valued Contributor

If you want the Client to launch and stay launched then the LaunchAgent route is the way.

<?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>Label</key>
    <string>com.app.pcclient</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Applications/PCClient.app/Contents/MacOS/JavaAppLauncher</string>
    </array>
    <key>KeepAlive</key>
    <true/>
</dict>
</plist>

The KeepAlive Key is the bit to do that for you.