-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bl-tint2-pipemenu when running default tint2 does not find config file to edit #33
Comments
Immediate fix is
A sessionfile only has the paths to the chosen tint2's, so a default tint2-sessionfile would just contain the line |
btw it's possible to get rid of the awk calls: |
...but I find it difficult getting my head around those bash substitutions! |
Much nicer looking though - and faster too, if that matters. |
Edited bl-tint2-pipemenu and pushed changes. |
When running a new install, the command in ~/.config/openbox/autostart to launch tint2 is
(sleep 2s && bl-tint2-session) &
If there is no session file, then bl-tint2-session runs the command
tint2
with no config file defined. tint2 will then load the default ~/.config/tint2/tint2rc.Now, on the menu Settings > Tint2>Edit Tint2s > Running Tint2s offers to edit the file tint2/tint2
Clicking this opens the non-existent file ~/tint2
The problem comes from loadTEditmenu() in bl-tint2-pipemenu:
pgrep -a tint2
returns:The awk lines above are returning
tint2/tint2
andtint2
respectively, while what is desired in this case is something likedefault tint2rc' and
~/.config/tint2/tint2rc`.SUGGEST: either amend loadTEditmenu() to set the default tint2rc when no config file is in the command line, or perhaps ship a default tint2 session file (although the problem with loadTEditmenu() would remain in that case).
The text was updated successfully, but these errors were encountered: