-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ship the man page * ship the cups backend * add postinstall script to fix cups backend permission and add shortcuts in /usr/bin * copy PKG to the desktop when finished git-svn-id: https://xpra.org/svn/Xpra/trunk@12376 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
2 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# this script will: | ||
# * fix cups backend permissions which are not preserved: | ||
# * add scripts in /usr/bin to launch the xpra commands | ||
|
||
chown root:wheel /usr/libexec/cups/backend/xpraforwarder | ||
chmod 700 /usr/libexec/cups/backend/xpraforwarder | ||
|
||
#FIXME: figure out where we were installed if using a custom location.. | ||
APP_ROOT="/Applications/Xpra.app" | ||
if [ -d "$APP_ROOT" ]; then | ||
for x in Xpra Xpra_Launcher; do | ||
echo '#!/bin/sh' > /usr/bin/$x | ||
echo exec $APP_ROOT/Contents/MacOS/$x \"\$@\" >> /usr/bin/$x | ||
chown root:wheel /usr/bin/$x | ||
chmod 755 /usr/bin/$x | ||
done | ||
for x in Bug_Report Config_info Encoding_info GStreamer_info GTK_info Keyboard_Tool Keymap_info Network_info OpenGL_check Path_info PowerMonitor Print Python Version_info Webcam_Test;do | ||
echo '#!/bin/sh' > /usr/bin/Xpra_$x | ||
echo exec $APP_ROOT/Contents/Helpers/$x \"\$@\" >> /usr/bin/Xpra_$x | ||
chown root:wheel /usr/bin/Xpra_$x | ||
chmod 755 /usr/bin/Xpra_$x | ||
done | ||
fi |