You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HackerTray is a simple [Hacker News](https://news.ycombinator.com/)Linux application
8
-
that lets you view top HN stories in your System Tray. It uses appindicator where available,
9
-
but provides a Gtk StatusIcon fallback in case AppIndicator is not available.
7
+
HackerTray is a simple [Hacker News](https://news.ycombinator.com/) application
8
+
that lets you view top HN stories in your System Tray. On Linux it uses appindicator where available
9
+
(with a Gtk StatusIcon fallback). On macOS it uses a native status bar menu via pyobjc.
10
10
11
11
The inspiration for this came from [Hacker Bar](https://web.archive.org/web/20131126173924/http://hackerbarapp.com/) (now dead), which was Mac-only.
12
12
@@ -47,34 +47,19 @@ HackerTray will automatically check the latest version on startup, and inform yo
47
47
HackerTray accepts its various options via the command line. Run `hackertray -h` to see all options. Currently the following switches are supported:
48
48
49
49
1.`-c`: Enables comments support. Clicking on links will also open the comments page on HN. Can be switched off via the UI, but the setting is not remembered.
50
-
2.`--chrome PROFILE-PATH`: Specifying a profile path to a chrome directory will make HackerTray read the Chrome History file to mark links as read. Links are checked once every 5 minutes, which is when the History file is copied (to override the lock in case Chrome is open), searched using sqlite and deleted. This feature is still experimental.
51
-
3.`--firefox PROFILE-PATH`: Specify path to a firefox profile directory. HackerTray will read your firefox history from this profile, and use it to mark links as read. Pass `auto` as PROFILE-PATH to automatically read the default profile and use that.
52
-
4.`--reverse` (or `-r`). Switches the order for the elements in the menu, so Quit is at top. Use this if your system bar is at the bottom of the screen.
50
+
2.`--reverse` (or `-r`): Switches the order for the elements in the menu, so Quit is at top. Use this if your system bar is at the bottom of the screen.
51
+
3.`--verbose`: Enable debug logging.
53
52
54
-
Note that the `--chrome` and `--firefox` options are independent, and can be used together. However, they cannot be specified multiple times (so reading from 2 chrome profiles is not possible).
53
+
Browser history is automatically discovered from all installed browsers (Chrome, Firefox, Safari, Brave, Edge, Arc, and many more). All profiles are searched.
55
54
56
-
### Google Chrome Profile Path
57
-
58
-
Where your Profile is stored depends on [which version of chrome you are using](https://chromium.googlesource.com/chromium/src.git/+/62.0.3202.58/docs/user_data_dir.md#linux):
Replace `Default` with `Profile 1`, `Profile 2` or so on if you use multiple profiles on Chrome. Note that the `--chrome` option accepts a `PROFILE-PATH`, not the History file itself. Also note that sometimes `~` might not be set, so you might need to use the complete path (such as `/home/nemo/.config/google-chrome/Default/`).
66
-
67
-
### Firefox Profile Path
68
-
69
-
The default firefox profile path is `~/.mozilla/firefox/*.default`, where `*` denotes a random 8 digit string. You can also read `~/.mozilla/firefox/profiles.ini` to get a list of profiles. Alternatively, just pass `auto` and HackerTray will pick the default profile automatically.
55
+
Options can also be set in `~/.config/hackertray/hackertray.ini` (or `~/.config/hackertray.ini`):
70
56
71
57
## Features
72
58
73
59
1. Minimalist Approach to HN
74
60
2. Opens links in your default browser
75
-
3. Remembers which links you opened, even if you opened them outside of HackerTray
76
-
4. Shows Points/Comment count in a simple format
77
-
5. Reads your Google Chrome/Firefox History file to determine which links you've already read (even if you may not have opened them via HackerTray)
61
+
3. Shows Points/Comment count in a simple format
62
+
4. Reads your browser history to mark which links you've already visited
78
63
79
64
### Troubleshooting
80
65
@@ -101,7 +86,8 @@ On every launch, a request is made to `https://pypi.python.org/pypi/hackertray/j
101
86
102
87
## Credits
103
88
104
-
- Mark Rickert for [Hacker Bar](http://hackerbarapp.com/) (No longer active)
89
+
- Mark Rickert for [Hacker Bar](https://github.com/MohawkApps/Hacker-Bar) (No longer active, MIT License). The macOS port references Hacker Bar's original design.
90
+
-[browser-history](https://github.com/browser-history/browser-history) (Apache 2.0) — browser history discovery patterns were informed by this project.
105
91
-[Giridaran Manivannan](https://github.com/ace03uec) for troubleshooting instructions.
106
92
-[@cheeaun](https://github.com/cheeaun) for the [Unofficial Hacker News API](https://github.com/cheeaun/node-hnapi/)
0 commit comments