You are not logged in.

#1 2017-11-17 08:30:17

saalty
Member
Registered: 2012-04-06
Posts: 60

[Solved] Tint2 launcher application issue

Hello all,

In last time I noticed that some application doesn't want to start if I click on the icon in tint2 launcer.
The problem is with Terminator and Midnight commander. Also I can't start Deluge but I don't use it anymore.
So if I click on Terminator or Midnight Commander (I use Terminator to run it) nothing happens. But, if I start it from the Openbox menu (any of them) then I can run both from launcher. Maybe it is not to clear so let me explain how it is working with an example. I want to open Terminator or Midnigh Commander from the launcher. Nothing happens. I open Terminator from Openbox menu. Then Terminator window appears and then I can run both Terminator and MC from launcher. Any idea why is this?

Here is my tint2rc:

#---- Generated by tint2conf 0107 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for 
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Default task, Iconified task, Normal task, Panel, Tooltip
rounded = 7
border_width = 2
border_sides = TBLR
background_color = #000000 60
border_color = #ffffff 4
background_color_hover = #000000 60
border_color_hover = #ffffff 4
background_color_pressed = #000000 60
border_color_pressed = #ffffff 4

# Background 2: Active task, Urgent task
rounded = 5
border_width = 0
border_sides = TBLR
background_color = #ffffff 40
border_color = #ffffff 40
background_color_hover = #ffffff 40
border_color_hover = #ffffff 40
background_color_pressed = #ffffff 40
border_color_pressed = #ffffff 40

# Background 3: Inactive taskbar
rounded = 5
border_width = 0
border_sides = TBLR
background_color = #ffffff 4
border_color = #ffffff 60
background_color_hover = #ffffff 4
border_color_hover = #ffffff 60
background_color_pressed = #ffffff 4
border_color_pressed = #ffffff 60

#-------------------------------------
# Panel
panel_items = LTBSC
panel_size = 94% 30
panel_margin = 0 0
panel_padding = 7 0 7
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0

#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 2 3 0
taskbar_background_id = 3
taskbar_active_background_id = 0
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 0 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left

#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 8
task_maximum_size = 126 35
task_padding = 6 2 6
task_font = Sans 7
task_tooltip = 0
task_font_color = #ffffff 60
task_active_font_color = #ffffff 80
task_urgent_font_color = #ffffff 80
task_iconified_font_color = #ffffff 60
task_icon_asb = 49 0 0
task_normal_icon_asb = 50 0 0
task_active_icon_asb = 50 0 0
task_urgent_icon_asb = 50 0 0
task_iconified_icon_asb = 70 0 0
task_background_id = 1
task_normal_background_id = 1
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 1
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 0 4 5
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 16
systray_icon_asb = 70 0 0
systray_monitor = primary
systray_name_filter = 

#-------------------------------------
# Launcher
launcher_padding = 0 0 7
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 20
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0
launcher_item_app = /usr/share/applications/chromium.desktop
launcher_item_app = /usr/share/applications/filezilla.desktop
launcher_item_app = /usr/share/applications/skype.desktop
launcher_item_app = /usr/share/applications/clementine.desktop
launcher_item_app = /usr/share/applications/kodi.desktop
launcher_item_app = /usr/share/applications/vlc.desktop
launcher_item_app = /usr/share/applications/acroread.desktop
launcher_item_app = /usr/share/applications/gvim.desktop
launcher_item_app = /usr/share/applications/org.gnome.gedit.desktop
launcher_item_app = /usr/share/applications/MidnightCommander.desktop
launcher_item_app = /usr/share/applications/sunflower.desktop
launcher_item_app = /usr/share/applications/tilda.desktop
launcher_item_app = /usr/share/applications/terminator.desktop
launcher_item_app = /usr/share/applications/galculator.desktop
launcher_item_app = /usr/share/applications/eog.desktop

#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_font = sans 8
time1_timezone = 
time2_timezone = 
time2_font = sans 6
clock_font_color = #ffffff 60
clock_padding = 1 0
clock_background_id = 0
clock_tooltip = 
clock_tooltip_timezone = 
clock_lclick_command = 
clock_rclick_command = orage
clock_mclick_command = 
clock_uwheel_command = 
clock_dwheel_command = 

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_full_cmd = 
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #ffffff 60
bat1_format = 
bat2_format = 
battery_padding = 1 0
battery_background_id = 0
battery_hide = 98
battery_lclick_command = 
battery_rclick_command = 
battery_mclick_command = 
battery_uwheel_command = 
battery_dwheel_command = 
ac_connected_cmd = 
ac_disconnected_cmd = 

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_padding = 2 2
tooltip_background_id = 1
tooltip_font_color = #000000 80
tooltip_font = sans 10
 

Here is my terminator.desktop:

[Desktop Entry]
Name=Terminator
Name[af]=Terminator
Name[ar]=المتطرف
Name[ast]=Terminator
Name[az]=Terminator
Name[be]=Тэрмінатар
Name[bg]=Терминатор
Name[bn]=টার্মিনেটর
Name[bs]=Terminator
Name[ca]=Terminator
Name[ca@valencia]=Terminator
Name[cs]=Terminator
Name[da]=Terminator
Name[de]=Terminator
Name[el]=Terminator
Name[en_AU]=Terminator
Name[en_CA]=Terminator
Name[en_GB]=Terminator
Name[eo]=Terminatoro
Name[es]=Terminator
Name[et]=Terminator
Name[eu]=Terminator
Name[fa]=ترمیناتور
Name[fi]=Terminator
Name[fo]=Terminator
Name[fr]=Terminator
Name[gl]=Terminador
Name[he]=Terminator
Name[hi]=टर्मिनेटर
Name[hr]=Terminator
Name[hu]=Terminator
Name[hy]=Terminator
Name[ia]=Terminator
Name[id]=Terminator
Name[is]=Terminator
Name[it]=Terminator
Name[ja]=Terminator
Name[jv]=Terminator
Name[ka]=Terminator
Name[kk]=Терминатор
Name[ko]=터미네이터
Name[lt]=Terminator
Name[lv]=Terminator
Name[mk]=Терминатор
Name[ml]=ടെര്മിനേറ്റര്
Name[ms]=Terminator
Name[nb]=Terminator
Name[nl]=Terminator
Name[oc]=Terminator
Name[pl]=Terminator
Name[pt]=Terminator
Name[pt_BR]=Terminator
Name[ro]=Terminator
Name[ru]=Terminator
Name[ru_RU]=Терминатор
Name[si]=ටර්මිනේටර්
Name[sk]=Terminátor
Name[sl]=Terminator
Name[sq]=Terminator
Name[sr]=Терминатор
Name[su]=Terminator
Name[sv]=Terminator
Name[ta]=முனையம்
Name[te]=టెర్మినేటర్
Name[th]=Terminator
Name[tr]=Uçbirim
Name[uk]=Terminator
Name[ur]=Terminator
Name[vi]=Terminator
Name[zh_CN]=Terminator 终端终结者
Name[zh_TW]=終端機
Comment=Multiple terminals in one window
Comment[af]=Veelvuldige terminale in een venster
Comment[ar]=العديد من الطرفيات في نافذة واحدة
Comment[ast]=Delles terminales nuna ventana
Comment[az]=Çoxsaylı terminallar bir pəncərədə
Comment[be]=Некалькі тэрміналаў у акне
Comment[bg]=Множество терминали в един прозорец
Comment[bn]=এক উইন্ডোতে একাধিক টার্মিনাল
Comment[bs]=Više terminala u jednom prozoru
Comment[ca]=Diversos terminals en una finestra
Comment[ca@valencia]=Diversos terminals en una finestra
Comment[cs]=Několik terminálů v jednom okně
Comment[da]=Flere terminaler i et vindue
Comment[de]=Mehrere Terminals in einem Fenster
Comment[el]=Πολλαπλά τερματικά σε ένα παράθυρο
Comment[en_AU]=Multiple terminals in one window
Comment[en_CA]=Multiple terminals in one window
Comment[en_GB]=Multiple terminals in one window
Comment[eo]=Pluraj terminaloj en unu fenestro
Comment[es]=Múltiples terminales en una ventana
Comment[et]=Mitu terminaali ühes aknas
Comment[eu]=Hainbat terminal leiho bakarrean
Comment[fi]=Useita päätteitä yhdessä ikkunassa
Comment[fr]=Permet d'avoir plusieurs terminaux en une seule fenêtre
Comment[gl]=Múltiples terminales nunha ventá
Comment[he]=מסופים מרובים בחלון אחד
Comment[hi]=एक विंडो में अनेक  टर्मिनल
Comment[hr]=Više terminala u jednom prozoru
Comment[hu]=Több terminál egy ablakban
Comment[hy]=Մի քանի տերմինալ մեկ պատուհանում
Comment[ia]=Plure terminales in un fenestra
Comment[id]=Banyak terminal dalam satu window
Comment[is]=Margar útstöðvar í einum glugga
Comment[it]=Molteplici terminali un una sola finestra
Comment[ja]=複数の端末を一つのウインドウに
Comment[jv]=Akeh terminal ning sak jendelo
Comment[ka]=მრავალი ტერმინალები ერთ ფანჯარაში
Comment[kk]=Бір терезе ішінде көптік терминалдар
Comment[ko]=창 하나에 터미널 여러 개 쓰기
Comment[lt]=Keli terminalai viename lange
Comment[lv]=Daudzi termināļi vienā logā
Comment[mk]=Повеќе терминали во еден прозорец
Comment[ml]=ഒരു ജാലകത്തില് ഒന്നിലധികം ടെര്മിനലുകള്
Comment[ms]=Kesemua terminal dalam satu tetingkap
Comment[nb]=Flere terminaler i ett vindu
Comment[nl]=Meerdere terminals in één venster
Comment[oc]=Permet d'aver mantun terminal dins una sola fenèstra
Comment[pl]=Wiele terminali w jednym oknie
Comment[pt]=Terminais múltiplos numa janela
Comment[pt_BR]=Múltiplos terminais em uma janela
Comment[ro]=Terminale multiple într-o singură fereastră
Comment[ru]=Несколько терминалов в одном окне
Comment[si]=එක් වින්ඩෝවක ටර්මිනල් රාශියක්
Comment[sk]=Viaceré terminály v jednom okne
Comment[sl]=Več terminalov v enem oknu
Comment[sq]=Shumë terminale në një dritare
Comment[sr]=Више терминала у једном прозору
Comment[su]=Loba terminal dina hiji jandela
Comment[sv]=Flera terminaler i ett fönster
Comment[ta]=ஒரு  சாளரத்தில் பல முனையங்கள்
Comment[te]=ఒకే విండోలో బహుళ టెర్మినల్స్
Comment[th]=หลายเทอร์มินัลในหน้าต่างเดียว
Comment[tr]=Tek pencerede birden çok uçbirim
Comment[uk]=Кілька терміналів в одному вікні
Comment[ur]=ایک دریچے میں ایک سے زیادہ ٹرمنل
Comment[vi]=Mở nhiều terminal trong cùng cửa sổ
Comment[zh_CN]=一个窗口中的多个终端
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;System;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator
X-Ayatana-Desktop-Shortcuts=NewWindow;
Keywords=terminal;shell;prompt;command;commandline;
[NewWindow Shortcut Group]
Name=Open a New Window
Exec=terminator
TargetEnvironment=Unity

And here is my MidnighCommander.desktop:

[Desktop Entry]
Name=Midnight Commander
Type=Application
Terminal=true
Comment=A visual file manager
Exec=terminator -T Midnight\ Commander -p mc -m --icon=/usr/share/icons/hicolor/64x64/apps/MidnightCommander.png -e  mc
TryExec=mc
Icon=MidnightCommander
Categories=System;FileTools;FileManager;

Thanks in advance for any help.

greetz

saalty

Last edited by saalty (2017-11-21 17:01:23)

Offline

#2 2017-11-17 18:38:21

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

It doesn't make sense to have at the same time Terminal=true and to execute an X11 application (terminator). Does it work with Terminal=false?

Edit: when Terminal=true, tint2 executes the command as x-terminal-emulator -e $command.

Last edited by o9000 (2017-11-17 18:43:22)

Offline

#3 2017-11-17 18:54:14

saalty
Member
Registered: 2012-04-06
Posts: 60

Re: [Solved] Tint2 launcher application issue

Hello,

Thank  you for your help.
I tried with false but the situation is same.
I forgot  to wrote in my post that it worked for the long time with these files. I noticed this issue few weeks ago but I can't say exactly after which update (I update the system automatically every time when I power on the laptop).

Last edited by saalty (2017-11-17 18:55:16)

Offline

#4 2017-11-17 19:40:24

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

Tint2 has recently implemented support for the Terminal key in desktop files, it's the most likely cause.

Are you sure you restarted tint2 after editing the files?

Offline

#5 2017-11-17 19:58:40

saalty
Member
Registered: 2012-04-06
Posts: 60

Re: [Solved] Tint2 launcher application issue

Yes I did the restart.
This is weird for me that it was working for a long time.
And I don't have an idea how to find the source of the problem.

Offline

#6 2017-11-17 20:07:56

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

If you run tint2 from a terminal, you should see in its output a message when you click the launcher. Try running it like this:

tint2 2>&1 | grep exec

What does it say?

Offline

#7 2017-11-18 13:45:02

saalty
Member
Registered: 2012-04-06
Posts: 60

Re: [Solved] Tint2 launcher application issue

Hello,

For Midnigh Commander I have:

tint2: executing in x-terminal-emulator: terminator -T Midnight\ Commander -p mc -m --icon=/usr/share/icons/hicolor/64x64/apps/MidnightCommander.png -e  mc
tint2: could not execute command in x-terminal-emulator: terminator -T Midnight\ Commander -p mc -m --icon=/usr/share/icons/hicolor/64x64/apps/MidnightCommander.png -e  mc, executting in shell

For Terminator:

 File "/usr/lib/python2.7/site-packages/terminatorlib/ipc.py", line 192, in _exec

Offline

#8 2017-11-18 15:14:50

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

I'm pretty sure you still have Terminal=true in your desktop file for mc. So tint2 tries to execute x-terminal-emulator which fails.

Then it falls back to starting terminator directly, and it does, but terminator crashes. This might be a bug i fixed in tint2 15.3, but it is not in the arch repositories yet.

Offline

#9 2017-11-20 11:46:13

saalty
Member
Registered: 2012-04-06
Posts: 60

Re: [Solved] Tint2 launcher application issue

o9000 wrote:

I'm pretty sure you still have Terminal=true in your desktop file for mc. So tint2 tries to execute x-terminal-emulator which fails.

Then it falls back to starting terminator directly, and it does, but terminator crashes. This might be a bug i fixed in tint2 15.3, but it is not in the arch repositories yet.

Thank you for your answers.
But why I cannot run Terminator from launcher?

Offline

#10 2017-11-20 17:23:44

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

It's hard to explain precisely. Basically, tint2 doesn't clean up after itself properly, and terminator crashes because of this. It's something I fixed in version 15.3, but it's not in the arch repository. I flagged the package as out of date, but it hasn't been updated yet.

Offline

#11 2017-11-20 21:06:31

peterklarc
Member
Registered: 2017-03-28
Posts: 28

Re: [Solved] Tint2 launcher application issue

Using openbox just test your configs - first comment - and it's working.
Terminator: ok from launcher;
mc: create a one line script with your command:

#!/bin/bash
terminator -T Midnight\ Commander -p mc -m --icon=/usr/share/icons/hicolor/64x64/apps/MidnightCommander.png -e  mc

create a new usr/share/application to execute that scrip with the name: MidnighCommander.desktop
E voilá launcher is working.

Offline

#12 2017-11-21 16:57:33

saalty
Member
Registered: 2012-04-06
Posts: 60

Re: [Solved] Tint2 launcher application issue

Thank you for all for the helps. Today tint2 is upgraded to "tint2 version 15.3" and it is solved the problem

Offline

#13 2017-11-22 16:44:05

o9000
Member
From: tint2 developer
Registered: 2015-05-29
Posts: 14

Re: [Solved] Tint2 launcher application issue

Great, thanks for letting me know.

Offline

Board footer

Powered by FluxBB