On 05/02/18 12:03, Ivan Mitev wrote:
> 
> 
> On 05/02/2018 11:25 AM, NaBaCo wrote:
>> On 05/02/18 09:52, 'awokd' via qubes-users wrote:
>>> On Tue, May 1, 2018 7:52 am, NaBaCo wrote:
>>>> Hello,
>>>> I have a simple command in /rw/config/rc.local the sets the keyboard
>>>> layout and shortcuts. I have made the script executable, and after
>>>> searching the internet found there's a timing problem (the system runs the
>>>> script too early), so I've added "sleep 5" to the beginning of the script.
>>>>  The script worked well in Q3.2, and runs well even now in Q4.0 when run
>>>> manually from command line, yet when I start the VMs, there's no effect.
>>>> This affects both debian-9 and fedora-26 AppVMs.
>>>> Increasing the "sleep" time didn't help.
>>>
>>> Tested this in a 4.0 debian-9 AppVM by adding to rc.local "date >
>>> /home/user/1", chmod 755 it, and it worked first try. Might want to add
>>> something similar to yours to make sure it's firing, then troubleshoot
>>> accordingly. Also check out
>>> https://www.mail-archive.com/[email protected]/msg20360.html.
>>>
>>
>> Hey,
>> I rebooted the VM after adding your line to rc.local, and indeed it
>> fires up. I'm assuming that rc.local runs before X server starts up.
>> The command I want to run is 'setxkbmap'.
> 
> As awokd pointed, rc.local starts before the X server is active.
> 
> A workaround is to use .desktop files, which would autostart after X.
> 
> See this doc (which by the way should help you with what you're trying
> to achieve with keyb layouts).
> 
> https://github.com/Qubes-Community/Contents/blob/master/docs/localization/keyboard-multiple-layouts.md
> 

Thanks Ivan, this is going to be the doc I'll change :)
The .desktop work-around is somewhat inelegant in my opinion - why not
use an already integrated feature rather then working around?

Either way, thank you very much!
--
NaBaCo.



-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/pcbvc7%24iu4%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to