torios-dev team mailing list archive
-
torios-dev team
-
Mailing list archive
-
Message #00337
Re: mkusb look and feel
Den 2015-08-03 21:19, Israel skrev:
> On 08/03/2015 11:39 AM, Nio Wiklund wrote:
>> Den 2015-08-03 18:33, Israel skrev:
>>> On 08/03/2015 10:20 AM, Nio Wiklund wrote:
>>>> Den 2015-08-02 23:48, Nio Wiklund skrev:
>>>>> Den 2015-08-02 23:00, Israel skrev:
>>>>>> Hi Nio,
>>>>>> I trust your judgement!
>>>>>> I just wanted to give my 2 (small unit of money).
>>>>>> :D
>>>>>>
>>>>>> On 08/01/2015 06:25 PM, Nio Wiklund wrote:
>>>>>>> Hi Israel,
>>>>>>>
>>>>>>> I have made a built-in tool to configure the background colours of the
>>>>>>> final checkpoints (separate for standard installations and iso-testing).
>>>>>>> The background for iso-testing should be nicer for the eyes, because it
>>>>>>> is intended to be used often and by experienced users. It is described
>>>>>>> with screenshots at the following link
>>>>>>>
>>>>>>> http://ubuntuforums.org/showthread.php?t=1958073&page=6&p=13331409#post13331409
>>>>>>>
>>>>>>> You can download the bleeding edge version from Phill's server directly
>>>>>>> or with help of *mkusb-installer* and wget. See this link
>>>>>>>
>>>>>>> https://help.ubuntu.com/community/mkusb/v9#from_phillw.net
>>>>>>>
>>>>>>> Best regards
>>>>>>> Nio
>>>>>>>
>>>>>> ...
>>>>>>
>>>>> Hi Israel,
>>>>>
>>>>> Those 'two cents', or should we say 'två öre' helped me get started and
>>>>> make a built-in tool to configure the background colours.
>>>>>
>>>>> So I hope everybody can be happy now :-)
>>>>>
>>>>> Best regards
>>>>> Nio
>>>> Hi again,
>>>>
>>>> I think I understand now - you were telling me so gently, that I did not
>>>> understand at once. Now I understand that the background colours that
>>>> you edit via the help menu should be saved in a separate file instead of
>>>> in-line in the shellscript file. It makes the custom colours survive
>>>> updates of mkusb.
>>>>
>>>> See the following link
>>>>
>>>> http://ubuntuforums.org/showthread.php?t=1958073&page=6&p=13332255#post13332255
>>>>
>>>> Thanks again :-)
>>>>
>>>> Best regards
>>>> Nio
>>> awesome!!
>>>
>>> Yes exactly!!
>>> A more standard configuration way to save the file would be
>>> ~/.config/.mkusb
>>> using $XDG_CONFIG_DIRS
>>>
>>> look forward to testing it when I have a chance!!
>>>
>> I'm discussing that topic in the link. I'm not quite happy to save the
>> configuration file to the home directory, because it is owned by root,
>> because you run mkusb as root
>>
>> sudo -H mkusb [image-file]
>>
>> Best regards
>> Nio
> Hi again,
> Yes, I fully understand this rationale... but couldn't that file be
> chmod +rwa
> There are plenty of good reasons to do this in my opinion. Using the
> XDG variables makes it very portable also
>
> [[ -d "${XDG_CONFIG_HOME}" ]] && mkusbfile="${XDG_CONFIG_HOME}/.mkusb}"
> [[ -z "${mkusbfile}" ]] && mkusbfile=/root/.mkusb
> [[ ! -f "$mkusbfile" ]] && sudo touch "$mkusbfile" && sudo chmod +rwa
> "$mkusbfile"
>
> This would mean the user could edit the file easily, as long as mkusb
> automatically creates and
> echo "$file_content" | sudo tee "$mkusbfile"
>
> Multiuser setup would allow everyone to customize mkusb with the
> per-user variables...
> But it is not that big of an issue. I probably wont change the color
> much, except to just do it once and a while. are you configuring the
> xterm colors as well? :D
>
>
> P.S.
> Sorry, that should have been:
>
> $XDG_CONFIG_HOME
>
> in the first e-mail.
>
> Just for anyone following this :)
>
Hi Israel,
Thanks for the detailed tips about the config file! I'm sure it would
work well :-)
But I really don't think it is such a big issue. I think that there will
be a low percentage of users, when more than one person will use mkusb
in the same computer, and a low percentage of those that will bother to
change the background colour.
And no, I have not considered configuring the xterm colours (if you mean
those used by mkusb). I think they are good enough, at least until
someone complains loudly ;-)
It would be nice if you have the time to test the current version from
the unstable PPA, mkusb 9.2.3
Best regards
Nio
Follow ups
References