Hi everyone.

 

We have run onto quite an interesting issue.

We write a software application that installs a postscript printer using
the "lpadmin" command.

 

We were recently asked to make the application launch after install. We
added a postflight script that performs an "open" to launch our app in
the installer.

This does work, and the app launches after files are copied.

 

Now here is the strange part.

 

When we launch the application through the finder, or through terminal,
we can run our software and click the button that runs the lpadmin
command and install the printer correctly.

It works correctly every time, never a problem.

 

When we try the button that installs the printer from the instance of
the app that was launched from the installer, a printer is installed,
but the Device URI goes to /dev/null and it says that it is a Raw
printer.

It is as if a generic printer was installed when we tried to install.
The generic printer that gets installed is only visible through
http://localhost:631, it is not listed as a printer in the preferences.

 

This only happens when we run the lpadmin command from the app when it
was launched from the installer. This happens on OSX 10.8 and higher.

We tested on a 10.6 system, and everything worked just fine.

 

 

Does anyone know what is causing this? Is there a work around? Is there
something simple I am not seeing.

We have looked at extended file attributes of installed files, after the
files were copied vs. after the close button was clicked on the
installer. Found nothing.

WE have looked at the environment variables, there was some variables
with paths that had .sandbox in the names. We thought that the new
security stuff could be a point of interest.

 

We have been trying to figure this out for two days, and I figured we
should just break down, and ask.

 

Thanks to anyone that takes the time to reply.

 

We appreciate it.

 

-Mike Short

Fawkes Engineering

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/printing/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to