docsmooth / vmware-bumblebee

Bash Script to start VMware Workstation under Bumblebee Primus/Optimus hybrid drivers
GNU General Public License v2.0
29 stars 10 forks source link

Error in detection of AC in Arch Linux #17

Closed invidian closed 7 years ago

invidian commented 8 years ago

I'm getting cat: /sys/class/power_supply/AC/online: No such file or directory because I have in my system /sys/class/power_supply/AC0/online.

Maybe there is some better way to find proper path for AC adapter. Maybe even cat /sys/class/power_supply/AC*/online would be enough.

I don't think that including log is required for that one.

docsmooth commented 8 years ago

you can edit that variable in line 20 at the top of the script, too. git should be able to handle merging that difference during a "git pull". I'll take a look at how it would work if we glob it like that, because I might need to add some logic to loop through multiple returns.

If editing the variable works, you can close the issue, otherwise I'll add globs to my todo.

docsmooth commented 7 years ago

should be fixed in 26557ce

invidian commented 7 years ago

Long time, but nice! :+1: