{"id":15394362,"url":"https://github.com/xyproto/tiddlywiki-launcher","last_synced_at":"2025-05-07T11:25:45.473Z","repository":{"id":136551905,"uuid":"128193777","full_name":"xyproto/tiddlywiki-launcher","owner":"xyproto","description":"Small script for launching a TiddlyWiki per user","archived":false,"fork":false,"pushed_at":"2022-03-07T14:13:57.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T00:56:49.970Z","etag":null,"topics":["script","small","tiddlywiki"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-05T10:56:51.000Z","updated_at":"2023-09-08T17:38:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"04c5b8d9-8411-4d9c-bab7-987626528017","html_url":"https://github.com/xyproto/tiddlywiki-launcher","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"13c6243232b1af2bb0f76160c3bc00324c736ec9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftiddlywiki-launcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftiddlywiki-launcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftiddlywiki-launcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftiddlywiki-launcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/tiddlywiki-launcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252867272,"owners_count":21816645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["script","small","tiddlywiki"],"created_at":"2024-10-01T15:23:23.570Z","updated_at":"2025-05-07T11:25:45.450Z","avatar_url":"https://github.com/xyproto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiddlywiki Launcher\n\nA small Python wrapper script for installing [TiddlyWiki](https://tiddlywiki.com/) in a system-wide way so that each user on the system can launch their own TiddlyWiki.\n\n## Features and limitations\n\n* Respects the `$BROWSER` environment variable.\n* Uses `/usr/bin/xdg-open` for opening TiddlyWiki in a browser, if `$BROWSER` is not set.\n* Requires [`empty.html`](http://www.tiddlywiki.com/empty.html) to be present in `/usr/share/tiddlywiki/empty.html`.\n* Copies `empty.html` into `$HOME/.tiddlywiki` upon launch, if Tiddlywiki does not already exist there.\n\n## tiddlywiki.py\n\nThis is the entire script, without comments:\n\n```python\nfrom sys import argv\nfrom os.path import join, exists\nfrom os import mkdir, system, environ\n\n\ndef main():\n    arguments = argv[1:]\n    if arguments:\n        where = arguments[0]\n    else:\n        where = join(environ['HOME'], '.tiddlywiki')\n    goal = join(where, 'index.html')\n    if not exists(where):\n        mkdir(where)\n        system('cp /usr/share/tiddlywiki/empty.html %s' % (goal))\n    if ('BROWSER' in environ) and environ['BROWSER']:\n        system(environ['BROWSER'] + \" \" + goal)\n    else:\n        system(\"/usr/bin/xdg-open \" + goal)\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## General information\n\n* License: BSD-3\n* Version: 0.3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ftiddlywiki-launcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Ftiddlywiki-launcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ftiddlywiki-launcher/lists"}