Results 1 to 8 of 8

Thread: Desktop VLC launchers in various languages ...

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Desktop VLC launchers in various languages ...

    Trying to set up Desktop VLC launchers in various languages ...

    VLC does not allow users to change default language from GUI [which is an odd decision since users of a given machine might need to do that]; it automatically picks the locale language


    Thanx to this thread

    i saw there is an easy terminal way


    so i run

    Code:
    LANGUAGE=pt_BR  vlc
    and

    Code:
    LANGUAGE=ru vlc
    and all is fine


    Now my question is how do i write this in a launcher ?

    It works from terminal but not from the launcher in this form


    what do i need to write there?


    [Desktop Entry]Encoding=UTF-8
    Type=Application
    Name=vlc
    Name[pt_BR]=vlc
    Exec=LANGUAGE=pt_BR vlc ??
    [not accepted] i tried speech marks around command and still no good it probably needs something else also tried LANGUAGE=pt_BR /usr/bin/vlc
    Last edited by shantiq; January 9th, 2014 at 09:28 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Desktop VLC launchers in various languages ...

    Whether it works or not you'll need to try (never used anything but my locale
    Code:
    Exec=env LANGUAGE=pt_BR  vlc %U
    Other options would be to create a small script that launches vlc as desired, then use in launcher - (assumes script is in a bin in PATH
    Code:
    Exec=scriptname
    (if you can run the script from alt+f2 then it will always work in ^

    ..........not really relevant, but will leave..........

    Or an bash alias using an export, ex. below of structure from one I use
    Code:
    alias mplayer1='export VDPAU_DRIVER=va_gl && mplayer'
    (can go in ~/.bash_aliases
    Last edited by mc4man; January 9th, 2014 at 09:36 AM. Reason: minor

  3. #3
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Desktop VLC launchers in various languages ...

    Thank you Mc

    Code:
    Exec=env LANGUAGE=pt_BR  vlc %U

    works a dream!






    Now i can have 3 VLCs or more in different languages on my desktop depending on mood ::]]
    Last edited by shantiq; January 9th, 2014 at 10:20 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  4. #4
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Desktop VLC launchers in various languages ...

    env usually works well in a .desktop

    Opps - see you don't need below, ...

    Here I like to keep the menu in vlc. 14.04 has a gsetting for that now but it doesn't work for qt4 apps so use
    Code:
    Exec=env QT_X11_NO_NATIVE_MENUBAR=1  vlc %U
    If you wanted that you could try
    Code:
    Exec=env QT_X11_NO_NATIVE_MENUBAR=1 LANGUAGE=pt_BR  vlc %U

  5. #5
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: Desktop VLC launchers in various languages ...

    yes it works too... earlier one is faster it seems
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  6. #6
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Desktop VLC launchers in various languages ...

    Does anything change if reveresed
    Code:
    Exec=env LANGUAGE=pt_BR QT_X11_NO_NATIVE_MENUBAR=1 vlc %U

  7. #7
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: Desktop VLC launchers in various languages ...

    then it is fast again::]]
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  8. #8
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Desktop VLC launchers in various languages ...

    Quote Originally Posted by shantiq View Post
    then it is fast again::]]
    Cool, it's good to know that if stringing multi env's the order can matter.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •