Eu enfrentei os mesmos problemas que você descreveu, mas consegui stackapplet
rodando no Ubuntu 14.04.
O truque era criar manualmente o arquivo de configuração de stackapplet
, ~/.stackapplet/config
:
-
Parar
stackapplet
:killall stackapplet.py
-
Fazer backup de
~/.stackapplet/config
:cp -a ~/.stackapplet/config ~/.stackapplet/config.bak
-
Substitua o conteúdo de
~/.stackapplet/config
por:{"theme": "light", "accounts": [{"unread_reputation": 0, "last_comment_ts": 1433419194, "site_name": "Unix and Linux", "unread_comments": 0, "site": "unix.stackexchange", "reputation_on_last_poll": 313, "notifications": 0, "user_id": "26238", "last_answer_ts": 1433419196, "unread_answers": 0}], "language": "", "refresh_rate": 600000}
Sim, esta é uma longa linha de dados JSON . Não prettifique isso, caso contrário,
applestack
irá ignorar silenciosamenteconfig
e sobrescrevê-lo ao sair com um arquivo de configuração padrão. Observe queconfig
não possui nenhum caractere de fim de linha, ou seja, não há\n
no final da string de dados JSON.Agora localize e corrija o valor da chave
user_id
. Seu ID de usuário está localizado no canto superior direito da sua página de perfil: Salveoarquivoeinicie
stackapplet
:nohup/usr/share/stackapplet/stackapplet.py&>/dev/null&
Sevocêquiseradicionarmaiscontas,bastaadicionarmaiselementosàmatrizaccounts
.Otruqueaquiédescobrirquaissite
esite_name
sãoparacadaSitedoStackExchange:
site
éoURLdositecom.com
removidosite_name
éo"nome bonito" do site
Estes são os sites que configuramos no meu arquivo config
:
"site_name": "Ask Ubuntu"
"site": "ubuntu.stackexchange"
"site_name": "Unix and Linux"
"site": "unix.stackexchange"
"site_name": "Stack Overflow"
"site": "stackoverflow"
"site_name": "Server Fault"
"site": "serverfault"
"site_name": "Super User"
"site": "superuser"
"site_name": "Ask Different"
"site": "apple.stackexchange"
"site_name": "Ask Different Meta"
"site": "meta.apple.stackexchange"
Como referência, meu arquivo config
é:
{"theme": "light", "accounts": [{"unread_reputation": 0, "last_comment_ts": 1433419181, "site_name": "Ask Ubuntu", "unread_comments": 0, "site": "ubuntu.stackexchange", "reputation_on_last_poll": 134, "notifications": 0, "user_id": "100272", "last_answer_ts": 1433419183, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419194, "site_name": "Unix and Linux", "unread_comments": 0, "site": "unix.stackexchange", "reputation_on_last_poll": 313, "notifications": 0, "user_id": "26238", "last_answer_ts": 1433419196, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419207, "site_name": "Stack Overflow", "unread_comments": 0, "site": "stackoverflow", "reputation_on_last_poll": 167, "notifications": 0, "user_id": "881191", "last_answer_ts": 1433419208, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419186, "site_name": "Server Fault", "unread_comments": 0, "site": "serverfault", "reputation_on_last_poll": 411, "notifications": 0, "user_id": "134501", "last_answer_ts": 1433419187, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419190, "site_name": "Super User", "unread_comments": 0, "site": "superuser", "reputation_on_last_poll": 3061, "notifications": 0, "user_id": "156041", "last_answer_ts": 1433419191, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419199, "site_name": "Ask Different", "unread_comments": 0, "site": "apple.stackexchange", "reputation_on_last_poll": 6681, "notifications": 0, "user_id": "32815", "last_answer_ts": 1433419202, "unread_answers": 0}, {"unread_reputation": 0, "last_comment_ts": 1433419200, "site_name": "Ask Different Meta", "unread_comments": 0, "site": "meta.apple.stackexchange", "reputation_on_last_poll": 6681, "notifications": 0, "user_id": "32815", "last_answer_ts": 1433419203, "unread_answers": 0}], "language": "", "refresh_rate": 600000}