idesk-extras-1.37-stdout.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. From b8e096f75c9a2fb3a5f02146f0e52ccae796aa87 Mon Sep 17 00:00:00 2001
  2. From: hasufell <hasufell@gentoo.org>
  3. Date: Sun, 6 Oct 2013 14:39:02 +0200
  4. Subject: [PATCH] use stdout to avoid broken tmp files
  5. e.g. fontconfig errors will break parsing
  6. ---
  7. idesktool | 28 ++++++++++++++--------------
  8. 1 file changed, 14 insertions(+), 14 deletions(-)
  9. diff --git a/idesktool b/idesktool
  10. index 931ad6f..90e5ceb 100755
  11. --- a/idesktool
  12. +++ b/idesktool
  13. @@ -88,10 +88,10 @@ end" > ~/.ideskrc
  14. newcaption()
  15. {
  16. -$DIALOG --wizard --title "idesktool 1.36" \
  17. +$DIALOG --stdout --wizard --title "idesktool 1.36" \
  18. --inputbox "Icon Caption:\n
  19. (Leave blank for no caption)"\
  20. - 8 40 "$cap" 2> ~/.idesktop/inputbox.tmp.$$
  21. + 8 40 "$cap" 1> ~/.idesktop/inputbox.tmp.$$
  22. retval=$?
  23. case $retval in
  24. 0) cap=$(cat ~/.idesktop/inputbox.tmp.$$)
  25. @@ -132,10 +132,10 @@ modcaption=NoCaption$$
  26. fi
  27. -$DIALOG --wizard --title "idesktool 1.36" \
  28. +$DIALOG --stdout --wizard --title "idesktool 1.36" \
  29. --separate-output --2inputsbox "NOTE: The default right-click command \n
  30. runs this configuration tool (recommended)."\
  31. - 18 40 "Left-Click Command:" "$command" "Right-Click Command:" "idesktool $modcaption.lnk" 2> ~/.idesktop/inputbox.tmp.$$
  32. + 18 40 "Left-Click Command:" "$command" "Right-Click Command:" "idesktool $modcaption.lnk" 1> ~/.idesktop/inputbox.tmp.$$
  33. retval=$?
  34. case $retval in
  35. @@ -187,10 +187,10 @@ modifycaption()
  36. {
  37. -$DIALOG --wizard --title "idesktool 1.36" \
  38. +$DIALOG --stdout --wizard --title "idesktool 1.36" \
  39. --inputbox "Icon Caption:\n
  40. (Leave blank for no caption)"\
  41. - 8 40 "$currentcaption" 2> ~/.idesktop/inputbox.tmp.$$
  42. + 8 40 "$currentcaption" 1> ~/.idesktop/inputbox.tmp.$$
  43. retval=$?
  44. case $retval in
  45. 0) cap=$(cat ~/.idesktop/inputbox.tmp.$$)
  46. @@ -235,10 +235,10 @@ modcaption=NoCaption$$
  47. fi
  48. -$DIALOG --wizard --title "idesktool 1.36" \
  49. +$DIALOG --stdout --wizard --title "idesktool 1.36" \
  50. --separate-output --2inputsbox "NOTE: The default right-click command \n
  51. runs this configuration tool (recommended)."\
  52. - 18 40 "Left-Click Command:" "$command" "Right-Click Command:" "idesktool $modcaption.lnk" 2> ~/.idesktop/inputbox.tmp.$$
  53. + 18 40 "Left-Click Command:" "$command" "Right-Click Command:" "idesktool $modcaption.lnk" 1> ~/.idesktop/inputbox.tmp.$$
  54. retval=$?
  55. case $retval in
  56. 1) rm -f ~/.idesktop/inputbox.tmp.$$
  57. @@ -423,13 +423,13 @@ argyyep()
  58. firstwindow=argyyep
  59. -$DIALOG --title "idesktool 1.36" \
  60. +$DIALOG --stdout --title "idesktool 1.36" \
  61. --radiolist "Desktop Icon Manager" 18 40 0 \
  62. "Properties" "View or Edit This Icon" off \
  63. "Delete" " Remove This Icon" off \
  64. "New" " Add a New Icon" off \
  65. "Refresh" " Reload the Desktop" off \
  66. - "Configure" " Edit iDesk's conf. file" off 2> ~/.idesktop/checklist.tmp.$$
  67. + "Configure" " Edit iDesk's conf. file" off 1> ~/.idesktop/checklist.tmp.$$
  68. retval=$?
  69. @@ -469,13 +469,13 @@ argynope()
  70. firstwindow=argynope
  71. -$DIALOG --title "idesktool 1.36" \
  72. +$DIALOG --stdout --title "idesktool 1.36" \
  73. --radiolist "Desktop Icon Manager" 18 40 0 \
  74. "Properties" "View or Edit an Icon" off \
  75. "Delete" " Remove an Icon" off \
  76. "New" " Add a new Icon" off \
  77. "Refresh" " Reload the Desktop" off \
  78. - "Configure" " Edit iDesk's conf. file" off 2> ~/.idesktop/checklist.tmp.$$
  79. + "Configure" " Edit iDesk's conf. file" off 1> ~/.idesktop/checklist.tmp.$$
  80. retval=$?
  81. case $retval in
  82. @@ -511,8 +511,8 @@ esac
  83. ##########################################################
  84. editconfig()
  85. {
  86. -Xdialog --title "iDesk Configuration" --fixed-font "" \
  87. - --editbox ~/.ideskrc 0 0 2> ~/.idesktop/editbox.txt.$$
  88. +Xdialog --stdout --title "iDesk Configuration" --fixed-font "" \
  89. + --editbox ~/.ideskrc 0 0 1> ~/.idesktop/editbox.txt.$$
  90. case $? in
  91. 0) cat ~/.idesktop/editbox.txt.$$ > ~/.ideskrc
  92. --
  93. 1.8.3.2