You are not logged in.

#1 2015-08-10 06:30:51

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

[Solved] IceWM menu with LibreOffice GTK+ option

Hello Arch community!

In my ~/.icewm/menu file I have a string:

prog    "Libreoffice Writer" /usr/share/icons/gnome/32x32/apps/libreoffice-writer.png     libreoffice -writer

to run LibreOffice Writer. But after LO switched to QT after recent update, I would like to set a var as suggested in wiki to make it start as GTK app. So I modify the string to

prog    "Libreoffice Writer" /usr/share/icons/gnome/32x32/apps/libreoffice-writer.png     "SAL_USE_VCLPLUGIN=gtk lowriter"

and it disappears from IceWM menu. Why? To my knowledge it should read something in quotation marks as one word. How to make it correct way so that the menu entry will stay in menu?

Last edited by Mr. Alex (2015-08-11 15:23:40)

Offline

#2 2015-08-10 06:53:24

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] IceWM menu with LibreOffice GTK+ option

I suggest you add the variable to your environment
https://wiki.archlinux.org/index.php/En … s#Per_user
If you prefer to change the menu entry, you'll have to use "env" I think

/usr/bin/env FOO=bar app

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2015-08-10 07:00:02

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] IceWM menu with LibreOffice GTK+ option

I suggest you add the variable to your environment

I tried to do

export SAL_USE_VCLPLUGIN=gtk

before running lowriter. After declaring this var and running lowriter it runs in Qt still. So it doesn't work for some reason...

As for env, do you suggest to make string like

prog    "Libreoffice Writer" /usr/share/icons/gnome/32x32/apps/libreoffice-writer.png     "/usr/bin/env SAL_USE_VCLPLUGIN=gtk lowriter"

? Because if I do it this way, lowriter still disappears from menu.

Offline

#4 2015-08-10 07:29:37

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] IceWM menu with LibreOffice GTK+ option

I don't know the IceWM configuration format, bu why are you enclosing the commandline in quotation marks?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2015-08-10 07:34:37

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] IceWM menu with LibreOffice GTK+ option

It's because of syntax of this config file. First word should be "prog". Second one should be name. And third — icon. If I make it “prog Libreoffice Writer” instead of “prog "Libreoffice Writer"” then "Writer" word will be parsed as path to icon file (and the whole thing won't work). That's why you need to enclose words as I did.

Offline

#6 2015-08-10 08:23:35

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] IceWM menu with LibreOffice GTK+ option

I think you should use the quotes only for the title, not for the program and its options.

http://www.icewm.org/manual/icewm-12.html#ss12.3
Programs can be added using the following syntax:

prog "title" icon_name program_executable options

prog    "Libreoffice Writer" /usr/share/icons/gnome/32x32/apps/libreoffice-writer.png     /usr/bin/env SAL_USE_VCLPLUGIN=gtk lowriter

If you "export" the variable, then you'll have to run lowriter in the same terminal or a child terminal that inherits the environment.

Last edited by progandy (2015-08-10 08:25:34)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2015-08-11 15:23:27

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] IceWM menu with LibreOffice GTK+ option

Thanks for hint. What worked for me was this:

prog    "Libreoffice Writer" /usr/share/icons/gnome/32x32/apps/libreoffice-writer.png     lowriter -env:SAL_USE_VCLPLUGIN=gtk

Offline

Board footer

Powered by FluxBB