-
Notifications
You must be signed in to change notification settings - Fork 47
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
[Bug] ^term() not closed when parsing Terminal=true in .desktop files #187
Comments
I add my jgmenurc too if it could affect the generation: stay_alive = 1
verbosity = 0
tint2_look = 0
position_mode = fixed
menu_margin_x = 2
menu_margin_y = 27
menu_valign = top
edge_snap_x = 0
terminal_exec = urxvtc
terminal_args = -e sh -c
menu_width = 200
menu_padding_top = 36
menu_padding_right = 2
menu_padding_bottom = 5
menu_padding_left = 2
menu_radius = 4
menu_border = 0
sub_hover_action = 1
item_margin_y = 2
item_height = 24
item_padding_x = 8
item_radius = 4
item_border = 0
sep_height = 12
font = IBMNerdMono Regular 9
icon_size = 16
color_menu_bg = #2b303b 85
color_norm_bg = #2b303b 0
color_norm_fg = #eaeaea 90
color_sel_bg = #f45100 60
color_sel_fg = #eaeaea 100
color_sep_fg = #8fa1b3 40
csv_single_window = 0
csv_name_format = %n (%g) |
I don’t think it matters, but will fix.
Are you able to explain in more detail what goes wrong. |
I'll debug this in more detail, but basically when the ^term() stays open I think it does nothing and the execution falls back to system default terminal. But I'm not sure yet. In any case the program I had a problem with is a Steam binary adapted from Windows.
But with an open ^term(), the program gives me an error that it has not found the .ini file in the user's root, apparently the PWD was not exported and it looks in the wrong place. So something is different. |
For .desktop entries with Terminal=true, jgmenu does not close the bracket.
Then it fail to use the variable for jgmenurc and can fail some runs.
jgmenu-apps parsed .desktop
They all match Terminal=true applications and miss a closing bracket.
CSV export:
Luckily they are still somehow launched and nobody noticed.
Notable issue
But yesterday I had a game that needed to run from a working dir. I wrote a launching script. But because of the missing bracket it would not launch.
I had to use Terminal=false and add ^term() in the .desktop file.
CSV export:
A Game,^term(/home/user/folder/start.sh),/home/user/folder/icon.png,,#Game
Version - Apt
The text was updated successfully, but these errors were encountered: