jovanlanik / gtklock-powerbar-module

gtklock module adding power controls to the lockscreen
GNU General Public License v3.0
3 stars 1 forks source link

Configure from config file #3

Closed eddsalkield closed 1 year ago

eddsalkield commented 1 year ago

I might be missing something, but the command line arguments don't appear to work in config.ini.

For example:

$ gtklock -m powerbar-module --poweroff-command="touch testfile"
$ file testfile
testfile: empty

But if I set the same thing in config.ini:

[main]
poweroff-command=touch testfile

Then I get:

$ gtklock -m powerbar-module --poweroff-command="touch testfile"
$ file testfile
testfile: cannot open `testfile' (No such file or directory)

How do I set this module's arguments from config.ini?

jovanlanik commented 1 year ago

Try this:

[powerbar]
poweroff-command=touch testfile