:: Re: [DNG] netman-autostart_0.1.1
Kezdőlap
Delete this message
Reply to this message
Szerző: aitor_czr
Dátum:  
Címzett: Rainer Weikusat, Edward Bartolo
CC: dng
Tárgy: Re: [DNG] netman-autostart_0.1.1
On 01/08/2016 01:58 PM, Rainer Weikusat wrote:
>> >Hi,
>> >
>> >I tried to use the above command instead of:
>> >
>> >sed -i "/Exec=netman/c\ ${line}" "${launcher}"
>> >
>> >but found that it corrupts the destination .desktop file.
> Maybe your copy did that (in this case, posting the copy and the result
> could be very helpful) but mine surely doesn't. Written out, the script
> is
>
> g/^Comment=/d
>
> Delete all lines starting with Comment=
>
> a
>
> Enter append mode.
>
> <$comment is interpolated here>
>
> If $comment is a single ., append mode will immediately be exited
> again. No other editor commands will be interpreted.
>
> .
>
> End append mode.
>
> wq
>
> Write changes to file and terminate ('wq' is not really a UNIX(*) ed
> command but GNU ed supports it).


Thanks, Rainer, it works :)

    Aitor.