{"action":"closed","issue":{"url":"https://api.github.com/repos/BunsenLabs/bunsen-pipemenus/issues/33","labels_url":"https://api.github.com/repos/BunsenLabs/bunsen-pipemenus/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/BunsenLabs/bunsen-pipemenus/issues/33/comments","events_url":"https://api.github.com/repos/BunsenLabs/bunsen-pipemenus/issues/33/events","html_url":"https://github.com/BunsenLabs/bunsen-pipemenus/issues/33","id":92982935,"number":33,"title":"bl-tint2-pipemenu when running default tint2 does not find config file to edit","user":{"login":"johnraff","id":1924845,"avatar_url":"https://avatars.githubusercontent.com/u/1924845?v=3","gravatar_id":"","url":"https://api.github.com/users/johnraff","html_url":"https://github.com/johnraff","followers_url":"https://api.github.com/users/johnraff/followers","following_url":"https://api.github.com/users/johnraff/following{/other_user}","gists_url":"https://api.github.com/users/johnraff/gists{/gist_id}","starred_url":"https://api.github.com/users/johnraff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnraff/subscriptions","organizations_url":"https://api.github.com/users/johnraff/orgs","repos_url":"https://api.github.com/users/johnraff/repos","events_url":"https://api.github.com/users/johnraff/events{/privacy}","received_events_url":"https://api.github.com/users/johnraff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-04T07:18:20Z","updated_at":"2015-07-09T07:52:18Z","closed_at":"2015-07-09T07:52:18Z","body":"When running a new install, the command in ~/.config/openbox/autostart to launch tint2 is `(sleep 2s && bl-tint2-session) &`\r\nIf there is no session file, then bl-tint2-session runs the command `tint2` with no config file defined. tint2 will then load the default ~/.config/tint2/tint2rc.\r\n\r\nNow, on the menu Settings > Tint2>Edit Tint2s > Running Tint2s offers to edit the file tint2/tint2\r\nClicking this opens the non-existent file ~/tint2\r\n\r\nThe problem comes from loadTEditmenu() in bl-tint2-pipemenu:\r\n```\r\nloadTEditmenu(){\r\n    menuSeparator \r\n    menuItem \"Default tint2rc\" \"bl-text-editor $TINT2RC\"\r\n    if [ \"$(pidof tint2)\" ];then\r\n        menuSubmenu \"RunningTint2\" \"Running Tint2s\"\r\n        pgrep -a tint2 | while read pid cmd; do \r\n            if [[ ${cmd%% *} = tint2 ]]; then\r\n                TINT2=$(echo $cmd | awk -F\"/\" '{print $(NF-1)\"/\"$NF}')\r\n                TINT=$(echo $cmd | awk '{print $NF}')\r\n                menuItem \"$TINT2\" \"bl-text-editor $TINT\"\r\n            fi\r\n        done\r\n        menuSubmenuEnd\r\n    fi\r\n}\r\n```\r\n`pgrep -a tint2` returns:\r\n```\r\n7135 /bin/bash /usr/bin/bl-tint2-session\r\n7228 tint2\r\n```\r\nThe awk lines above are returning `tint2/tint2` and `tint2` respectively, while what is desired in this case is something like `default tint2rc' and `~/.config/tint2/tint2rc`.\r\n\r\nSUGGEST: either amend loadTEditmenu() to set the default tint2rc when no config file is in the command line, or perhaps ship a default tint2 session file (although the problem with loadTEditmenu() would remain in that case).\r\n"}}