Naereen / uLogMe

:bar_chart: :chart_with_upwards_trend: Automatically collect and visualize usage statistics on Ubuntu, with :musical_keyboard: key frequencies and :computer: window titles →
https://Naereen.GitHub.io/uLogMe/
MIT License
67 stars 14 forks source link

Window titles are not logged in cinnamon #28

Closed adamkw closed 6 years ago

adamkw commented 6 years ago

When using cinnamon, all windows are logged as "__LOCKEDSCREEN".

Naereen commented 6 years ago

Hi, Hum OK.

Naereen commented 6 years ago

Does your fix 06c2c4d works for you? I don't have cinnamon so of course I cannot test. Thanks for reporting (and fixing!) this!

adamkw commented 6 years ago

My fix works for me. I'm using Linux Mint 19 Cinnamon with the default configuration.

By the way: The 2>&1 /dev/null construct didn't work for me (and also didn't make sense to me after quickly googling it), which is why i replaced it with 2> /dev/null. Did you test the script under gnome?

Also great job maintaining the original scripts and adding new features (and pokemons)!

Naereen commented 6 years ago

OK thanks.

Regarding 2>&1, it's a perfectly valid bash trick, to redirect stderr (error messages) to stdout. See https://stackoverflow.com/questions/818255/in-the-shell-what-does-21-mean#818284. It is totally independent of the desktop environment, and only requires a recent Bash version (any version >= 4.0 I think).

Thanks.