Hi,
I just installed GtkCDLabel, a nifty little app to create CD covers in a matter of minutes, if not seconds, and which I've been using on a daily basis on Slackware (previous system).
I've encountered some encoding issues. Whenever my CD text contains french special characters like é, è, à and ç, the resulting .ps file displays martian characters instead.
'printenv' shows me that the default LANG variable on my system is fr_FR.UTF-8. So I tried to start the app from the terminal with:
$ LANG=fr_FR && gtkcdlabel
... and everything worked fine.
The problem is now including this workaround in the corresponding .desktop menu entry in /usr/share/applications. When I try to replace
Exec=gtkcdlabel
by
Exec='LANG=fr_FR && gtkcdlabel'
... GNOME complains about an error.
My second attempt included an alias in /etc/bashrc, which resulted in a partial success. Typing 'gtkcdlabel' in gnome-terminal, I get the correct result. But when the app is launched from the desktop menu, it is unimpressed by the alias. Which leaves me clueless. Is there any other place where I could define a more global alias?
Niki Kovacs
Selon Daniel de Kok danieldk@pobox.com:
There probably is a more elegant manner to solve this, but what about:
Exec=sh -c 'LANG=fr_FR ; gtkcdlabel'
Thanks, Daniel!
Niki
On Mon, 15 May 2006, Niki Kovacs wrote:
The problem is now including this workaround in the corresponding .desktop menu entry in /usr/share/applications. When I try to replace
Exec=gtkcdlabel
by
Exec='LANG=fr_FR && gtkcdlabel'
... GNOME complains about an error.
This is what env(1) is intended to address:
Exec='/bin/env LANG=fr_FR gtkcdlabel'
On Mon 15 May 2006 15:18, Paul Heinlein wrote:
On Mon, 15 May 2006, Niki Kovacs wrote:
The problem is now including this workaround in the corresponding .desktop menu entry in /usr/share/applications. When I try to replace
Exec=gtkcdlabel
by
Exec='LANG=fr_FR && gtkcdlabel'
... GNOME complains about an error.
This is what env(1) is intended to address:
Exec='/bin/env LANG=fr_FR gtkcdlabel'
All you should need is
LANG=fr_FR gtkcdlabel
Maybe I'm missing something, but LANG=fr_FR gtkcdlabel won't work in csh while /bin/env LANG=fr_FR gtkcdlabel will so I think that was the point of using env
--Bill
John Allen wrote:
On Mon 15 May 2006 15:18, Paul Heinlein wrote:
On Mon, 15 May 2006, Niki Kovacs wrote:
The problem is now including this workaround in the corresponding .desktop menu entry in /usr/share/applications. When I try to replace
Exec=gtkcdlabel
by
Exec='LANG=fr_FR && gtkcdlabel'
... GNOME complains about an error.
This is what env(1) is intended to address:
Exec='/bin/env LANG=fr_FR gtkcdlabel'
All you should need is
LANG=fr_FR gtkcdlabel
Selon John Allen john.allen@dublinux.net:
All you should need is
LANG=fr_FR gtkcdlabel
I know. But there's no way to put that syntax into a .desktop entry file.
Niki Kovacs
-- John Allen mailto:john.allen@moyville.net Mandriva Club Member(Silver) http://www.moyville.net Site of the day http://www.arsenalsquirrel.com/ Mandriva Linux release 2006.0 (Official) for i586, kernel 2.6.12-15mdk 15:24:44 up 5 days, 2:54, 1 user, load average: 0.32, 0.29, 0.18 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon 15 May 2006 16:20, Niki Kovacs wrote:
Selon John Allen john.allen@dublinux.net:
All you should need is
LANG=fr_FR gtkcdlabel
I know. But there's no way to put that syntax into a .desktop entry file.
Ah yes, create a shellscript to run gtkcdlabel eg. gtkcdlabel.sh #! /bin/sh export LANG=fr_FR gtkcdlabel
The run the shellscript from the .desktop file
Niki Kovacs
-- John Allen mailto:john.allen@moyville.net Mandriva Club Member(Silver) http://www.moyville.net Site of the day http://www.arsenalsquirrel.com/ Mandriva Linux release 2006.0 (Official) for i586, kernel 2.6.12-15mdk 15:24:44 up 5 days, 2:54, 1 user, load average: 0.32, 0.29, 0.18 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos