xscreensaver-04-solaris-paths.diff revision 18778
10139N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 12147N/A * Permission is hereby granted, free of charge, to any person obtaining a 10139N/A * copy of this software and associated documentation files (the 10139N/A * "Software"), to deal in the Software without restriction, including 10139N/A * without limitation the rights to use, copy, modify, merge, publish, 17185N/A * distribute, and/or sell copies of the Software, and to permit persons 10139N/A * to whom the Software is furnished to do so, provided that the above 17177N/A * copyright notice(s) and this permission notice appear in all copies of 17177N/A * the Software and that both the above copyright notice(s) and this 17177N/A * permission notice appear in supporting documentation. 10139N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 10139N/A * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17496N/A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 10139N/A * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 10139N/A * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 10139N/A * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 10139N/A * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 17379N/A * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 10139N/A * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16428N/A * Except as contained in this notice, the name of a copyright holder 16428N/A * shall not be used in advertising or otherwise to promote the sale, use 16428N/A * or other dealings in this Software without prior written authorization 10139N/A@@ -955,7 +955,7 @@ restart_menu_cb (GtkWidget *widget, gpoi 10139N/A flush_dialog_changes_and_save (s); 10139N/A xscreensaver_command (GDK_DISPLAY(), XA_EXIT, 0, False, NULL); 10139N/A@@ -4894,7 +4894,7 @@ main (int argc, char **argv) 10139N/A@@ -791,6 +792,8 @@ print_path_error (const char *program) 10139N/A+/* mali - security issue do not want to display user's path */ 10139N/A@@ -821,6 +824,7 @@ print_path_error (const char *program) 10139N/A@@ -877,12 +881,42 @@ fork_and_exec (saver_screen_info *ssi, c 10139N/A+check_if_hacks_dir_exists(Bool verbose_p) 10139N/A+ const char hackdir[] = HACK_PATH; 17379N/A+ if (status == 0 && S_ISDIR(st.st_mode)) 10139N/A spawn_screenhack (saver_screen_info *ssi) 10139N/A saver_preferences *p = &si->prefs; 10139N/A if (!monitor_powered_on_p (si)) 10139N/A@@ -962,6 +996,12 @@ spawn_screenhack (saver_screen_info *ssi 17320N/A+ (check_if_hacks_dir_exists(p->verbose_p) == False)) 17091N/A if (new_hack < 0) /* don't run a hack */ 16821N/A@@ -1009,7 +1049,17 @@ spawn_screenhack (saver_screen_info *ssi 16768N/A- forked = fork_and_exec (ssi, hack->command); 16667N/A+ /* We need complete path to hack command else any executable 16667N/A+ * with the same name in the path gets executed. 16667N/A+ complete_hack_command = malloc (10 + strlen(hack->command) + 16653N/A+ sprintf(complete_hack_command, HACK_PATH"/%s
", hack->command); 16309N/A+ forked = fork_and_exec (ssi, complete_hack_command); 15959N/A@@ -1184,7 +1234,7 @@ get_best_gl_visual (saver_info *si, Scre 15521N/A@@ -872,8 +872,10 @@ Installed</property> 15521N/A <property name="label" translatable="yes">Very few (or no) screen savers appear to be available. 15448N/A-This probably means that the "xscreensaver-extras" and 15448N/A-"xscreensaver-gl-extras" packages are not installed.</property> 13910N/A@@ -695,12 +695,15 @@ sub reformat_rss($) { 13791N/A my ($title, $body1, $body2, $body3); 13620N/A $title = $3 if (m@<((TITLE) [^<>\s]*)[^<>]*>\s*(.*?)\s*</\1>@xsi); 13519N/A $body1 = $3 if (m@<((DESCRIPTION) [^<>\s]*)[^<>]*>\s*(.*?)\s*</\1>@xsi); 13519N/A $body2 = $3 if (m@<((CONTENT) [^<>\s]*)[^<>]*>\s*(.*?)\s*</\1>@xsi); 13497N/A $body3 = $3 if (m@<((SUMMARY) [^<>\s]*)[^<>]*>\s*(.*?)\s*</\1>@xsi); 13400N/A+ $author = $3 if (m@<((DC:CREATOR) [^<>\s]*)[^<>]*>\s*(.*?)\s*</\1>@xsi); 13278N/A # If there are both <description> and <content> or <content:encoded>, 13278N/A # use whichever one contains more text. 13109N/A@@ -724,10 +727,11 @@ sub reformat_rss($) { 13088N/A $title = rss_field_to_html ($title || ''); 13088N/A $body1 = rss_field_to_html ($body1 || ''); 13088N/A+ $author = rss_field_to_html ($author || ''); 13055N/A $title = '' if ($body1 eq $title); # Identical in Twitter's atom feed. 12765N/A@@ -97,9 +97,8 @@ xscreensaver-command -restart 12746N/A If you want to set the system-wide defaults, then make your edits to 12746N/A the xscreensaver app-defaults file, which should have been installed 12619N/A when xscreensaver itself was installed. The app-defaults file will 12619N/A-systems might keep it in a different place (for example, 12468N/A+systems might keep it in a different place. 12368N/A When settings are changed in the Preferences dialog box (see above) 12368N/A the current settings will be written to the \fI.xscreensaver\fP file. 12287N/A@@ -270,7 +270,7 @@ install-program:: $(EXES) 12246N/A # the xscreensaver-gl-helper program, in $bindir 12152N/A@@ -339,7 +339,7 @@ uninstall-program:: 12140N/A # the xscreensaver-gl-helper program, in $bindir 12093N/A echo rm -f $$idir/$$program ; \