You are not logged in.
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 -writerto 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
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
I suggest you add the variable to your environment
I tried to do
export SAL_USE_VCLPLUGIN=gtkbefore 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
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
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
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 lowriterIf 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
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=gtkOffline