{"action":"created","issue":{"url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/562","labels_url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/562/comments","events_url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/562/events","html_url":"https://github.com/puppylinux-woof-CE/woof-CE/issues/562","id":90626468,"number":562,"title":"New JWM is out but breaks current jwmrc*","user":{"login":"01micko","id":1019119,"avatar_url":"https://avatars.githubusercontent.com/u/1019119?v=3","gravatar_id":"","url":"https://api.github.com/users/01micko","html_url":"https://github.com/01micko","followers_url":"https://api.github.com/users/01micko/followers","following_url":"https://api.github.com/users/01micko/following{/other_user}","gists_url":"https://api.github.com/users/01micko/gists{/gist_id}","starred_url":"https://api.github.com/users/01micko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01micko/subscriptions","organizations_url":"https://api.github.com/users/01micko/orgs","repos_url":"https://api.github.com/users/01micko/repos","events_url":"https://api.github.com/users/01micko/events{/privacy}","received_events_url":"https://api.github.com/users/01micko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-06-24T09:43:12Z","updated_at":"2015-06-30T07:18:19Z","closed_at":null,"body":"@joewing has released jwm-2.3.0 ( 04fdf3c2ed0cdae7e995114ebd48bbdf4a0a76ba ) and with it (as BK has reported) it breaks themes. \r\n\r\nFortunately, Joe has a fix by using an xslt file. It can easily be done in a `chroot` and applied to all *jwmrc* files and it works. However this doesn't add the new features, such as using the clock as a menu ( @zigbert  ). It also fixes a touchscreen bug with cellwriter and other virtual keyboards, hence my eagerness to upgrade.\r\n\r\n![screenshot](https://cloud.githubusercontent.com/assets/1019119/8327067/f4bc5414-1aa8-11e5-8306-15ae12a77070.png)\r\n"},"comment":{"url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/comments/117032456","html_url":"https://github.com/puppylinux-woof-CE/woof-CE/issues/562#issuecomment-117032456","issue_url":"https://api.github.com/repos/puppylinux-woof-CE/woof-CE/issues/562","id":117032456,"user":{"login":"01micko","id":1019119,"avatar_url":"https://avatars.githubusercontent.com/u/1019119?v=3","gravatar_id":"","url":"https://api.github.com/users/01micko","html_url":"https://github.com/01micko","followers_url":"https://api.github.com/users/01micko/followers","following_url":"https://api.github.com/users/01micko/following{/other_user}","gists_url":"https://api.github.com/users/01micko/gists{/gist_id}","starred_url":"https://api.github.com/users/01micko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01micko/subscriptions","organizations_url":"https://api.github.com/users/01micko/orgs","repos_url":"https://api.github.com/users/01micko/repos","events_url":"https://api.github.com/users/01micko/events{/privacy}","received_events_url":"https://api.github.com/users/01micko/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T07:18:19Z","updated_at":"2015-06-30T07:18:19Z","body":"No, we a building this on a non running system in a `chroot`. switch2 is ok but if _any_ graphical program runs it's drama. Bear in mind, the `chroot` doesn't know any environment variables so $HOME doesn't work. Everything has to be relative paths.\r\n\r\nI will show a function that I inserted in  `/usr/sbin/ptheme`, call with '-w' switch.. but it is rough because of all the children it calls call graphical programs. It must be strictly no X so it can be ran from woof, or else we get a standard puppy desktop at boot with no advantage of ptheme.\r\n\r\n```\r\nset_theme_only (){\r\n\t#icons\r\n\tif [ \"$PTHEME_ICONS\" ] && [ -d /usr/local/lib/X11/themes/\"$PTHEME_ICONS\" ]; then\r\n\t\ticon_switcher -a \"$PTHEME_ICONS\"\r\n\t\tSWITCH_THEME=true\r\n\t\tUPDATE_ROX=true\r\n\tfi\r\n\t#rox pinborad - icon placement\r\n\tif [ \"$PTHEME_ROX_PIN\" ] && [ -f /usr/share/ptheme/rox_pinboard/\"$PTHEME_ROX_PIN\" ]; then\r\n\t\tTMP_BACKDROP=\"`grep -F '<backdrop ' root/Choices/ROX-Filer/PuppyPin`\"\r\n\t\tTMP_DRIVEICONS=\"`grep -F '.pup_event' root/Choices/ROX-Filer/PuppyPin`\"\r\n\t\techo -e '<?xml version=\"1.0\"?>\\n<pinboard>' > $WORKDIR/tmp_puppypin\r\n\t\techo \"$TMP_BACKDROP\" >> $WORKDIR/tmp_puppypin\r\n\t\tcat /usr/share/ptheme/rox_pinboard/\"$PTHEME_ROX_PIN\" >> $WORKDIR/tmp_puppypin\r\n\t\techo \"$TMP_DRIVEICONS\" >> $WORKDIR/tmp_puppypin\r\n\t\techo '</pinboard>' >> $WORKDIR/tmp_puppypin\r\n\t\tmv $WORKDIR/tmp_puppypin root/Choices/ROX-Filer/PuppyPin\r\n\t\tSWITCH_THEME=true\r\n\t\tUPDATE_ROX=true\r\n\tfi\r\n\t#avoid cursor\r\n\t#wallpaper\r\n\tif [ \"$PTHEME_WALL\" ] && [ -f \"/usr/share/backgrounds/$PTHEME_WALL\" ]; then\r\n\t\techo \"/usr/share/backgrounds/$PTHEME_WALL\" > root/.config/wallpaper/bg_img\r\n\t\techo 'Stretch' > root/.config/wallpaper/backgroundmode\r\n\t\t#\"/usr/local/apps/Wallpaper/set_bg\" \"/usr/share/backgrounds/$PTHEME_WALL\"\r\n\t\tSWITCH_THEME=true\r\n\tfi\r\n\t#gtk\r\n\tif [ \"$PTHEME_GTK\" ] && [ -d \"/usr/share/themes/$PTHEME_GTK\" ]; then\r\n\t\texport GTK2_RC_FILES=\"root/.gtkrc-2.0\" #reset gtk-theme\r\n\t\tptheme_gtk -t \"$PTHEME_GTK\" &\r\n\t\tSWITCH_THEME=true\r\n\tfi\r\n\t#jwm\r\n\tif [ \"$PTHEME_JWM_COLOR\" ] && [ -f /usr/share/jwm/themes/\"$PTHEME_JWM_COLOR\"-jwmrc ]; then\r\n\t\t/usr/local/jwm_config/theme_switcher -a \"$PTHEME_JWM_COLOR\"\r\n\t\tUPDATE_JWM=true\r\n\t\tSWITCH_THEME=true\r\n\tfi\r\n\tif [ \"$PTHEME_JWM_BUTTON$HOMES\" ] && [ -d /usr/share/jwm/themes_window_buttons/\"$PTHEME_JWM_BUTTONS\" ]; then\r\n\t\t/usr/local/jwm_config/window_buttons -a \"$PTHEME_JWM_BUTTONS\"\r\n\t\tUPDATE_JWM=true\r\n\t\tSWITCH_THEME=true\r\n\tfi\r\n\tif [ \"$PTHEME_JWM_TRAY\" ] && [ -d /usr/share/jwm/tray_templates/\"$PTHEME_JWM_TRAY\" ]; then\r\n\t\tcp -f /usr/share/jwm/tray_templates/\"$PTHEME_JWM_TRAY\"/jwmrc-tray* $HOME/.jwm/\r\n\t\t[ -s /usr/share/jwm/tray_templates/\"$PTHEME_JWM_TRAY\"/install ] && /usr/share/jwm/tray_templates/\"$PTHEME_JWM_TRAY\"/install\r\n\t\tUPDATE_JWM=true\r\n\t\tSWITCH_THEME=true\r\n\tfi\r\n\t#menuheight\r\n\techo \"MENHEIGHT=24\" > root/.jwm/menuheights\r\n\texit\r\n}\r\n```\r\n\r\nStill have to do something about the wallpaper too. Hard coding can not be helped in this situation.\r\n\r\nMaybe a separate script all together is what's really needed. Don't worry, I'll take care of it."}}