{"action":"created","issue":{"url":"https://api.github.com/repos/craigbarnes/dte/issues/30","repository_url":"https://api.github.com/repos/craigbarnes/dte","labels_url":"https://api.github.com/repos/craigbarnes/dte/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/craigbarnes/dte/issues/30/comments","events_url":"https://api.github.com/repos/craigbarnes/dte/issues/30/events","html_url":"https://github.com/craigbarnes/dte/issues/30","id":248976932,"number":30,"title":"Make dte editor can traveling(portable).","user":{"login":"zw963","id":549126,"avatar_url":"https://avatars3.githubusercontent.com/u/549126?v=4","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-09T09:52:42Z","updated_at":"2017-08-09T10:56:51Z","closed_at":null,"body":"What i want to is make `dte` as a drop in replace worked editor.\r\n\r\nSo, what i means is, following is dte folder. `/home/zw963/utils/dte`\r\n\r\n```sh\r\ndte\r\n├── bin\r\n│   └── dte\r\n└── share\r\n    ├── dte\r\n    └── man\r\n```\r\n\r\nIf I copy this dte directory into docker container or VPS, I hope dte can worked\r\nwell as in my local laptop.\r\n\r\nBut current it not worked well.\r\n\r\n```sh\r\nError reading /home/zw963/utils/dte/share/dte/rc: No such file or directory\r\nPress any key to continue\r\n```\r\n\r\nThe reason caused this is:  when `make install prefix=\"$HOME/utils/dte\"`,\r\nhardcode the position of `rc config`.\r\n\r\nSo, I think maybe we should support a ENV, e.g.  `DTEHOME`, which can be\r\nchanged by a bash wrapper. e.g.\r\n\r\n```sh\r\nDTEHOME=$HOME/dte\r\n\r\n$HOME/dte/bin/dte \"$@\"\r\n```\r\n\r\nWhich make whatever copy this folder to everywhere, we still make dte can found\r\nthe correct path of `rc config` file.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/craigbarnes/dte/issues/comments/321222453","html_url":"https://github.com/craigbarnes/dte/issues/30#issuecomment-321222453","issue_url":"https://api.github.com/repos/craigbarnes/dte/issues/30","id":321222453,"user":{"login":"zw963","id":549126,"avatar_url":"https://avatars3.githubusercontent.com/u/549126?v=4","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T10:56:51Z","updated_at":"2017-08-09T10:56:51Z","body":"Hi, it seem like not error message when I do like following:\r\n\r\ndte bash wrapper.\r\n```sh\r\n#!/bin/bash\r\n\r\nROOT=$(dirname `readlink -e $0`)/..\r\nexport DTEHOME=$ROOT/share/dte\r\n\r\n$ROOT/bin.real/dte -r $ROOT/share/dte/rc \"$@\"\r\n```\r\n\r\nchange config rc\r\n\r\n```\r\ninclude $DTEHOME/binding/default\r\ninclude $DTEHOME/color/light\r\ninclude $DTEHOME/compiler/gcc\r\ninclude $DTEHOME/compiler/go\r\ninclude $DTEHOME/filetype\r\n# ...\r\n```\r\n\r\nno error message anymore, but, font highlight seem like not work.\r\nI think there exist some hardcode syntax search logic?\r\n"}}
{"actor":{"display_login":"zw963"}}