Re: systemd help was: Re: Rawhide rc.local fails to start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/17/2012 08:39 PM, Frank Murphy wrote:
> On 17/09/12 13:21, "Jóhann B. Guðmundsson" wrote:
>> On 09/17/2012 09:48 AM, Frank Murphy wrote:
>> <snip> ...</snip>
>>
>> Note that the proper way to do this today is to create and use type
>> oneshot unit in /etc/systemd/system directory which you then order as
>> you see fit with after or before into the boot process
>>
>> JBG
>
> Have the following as a one shot but getting "cannot open default display"
> set-gb-keymap.service
>
> # fix gb keymap on display start
> # Author going a bit cracked.
>
> [Unit]
> Description=Fix keymap on disaply start
> DefaultDependencies=no
> After=local-fs.target sysinit.target display-manager.service
>
> [Service]
> Type=oneshot
> ExecStart=/usr/bin/setxkbmap -model pc104 -layout gb
>
> [Install]
> WantedBy=graphical.target
>

Actually, that seems about right since I don't believe the systemd scripts are running in a graphical environment. 

Did you have have this working before?  To me, it sounds as if what you want to accomplish could easily be done by placing the setxkbmap stuff in ~/.bash_profile.

-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux