Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174826 > unrolled thread

KDE5-autostart bug

Started bychatrapati <chatrapati2011@bk.ru>
First post2016-11-17 18:50 +0100
Last post2016-11-23 14:20 +0100
Articles 4 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  KDE5-autostart bug chatrapati <chatrapati2011@bk.ru> - 2016-11-17 18:50 +0100
    Re: KDE5-autostart bug Jonathan Marquardt <parckwart@parckwart.de> - 2016-11-23 13:40 +0100
      Re: KDE5-autostart bug Cindy-Sue Causey <butterflybytes@gmail.com> - 2016-11-23 14:00 +0100
        Re: KDE5-autostart bug Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-23 14:20 +0100

#174826 — KDE5-autostart bug

Fromchatrapati <chatrapati2011@bk.ru>
Date2016-11-17 18:50 +0100
SubjectKDE5-autostart bug
Message-ID<sEyYW-3Mb-33@gated-at.bofh.it>
Hello!

Debian testing.

I think I find a bug, but I cannot understand in which package. Problem 
with KDE5-autostart

I put firefox-esr.desktop in ~/.config/autostart/ and when I reboot 
system firefox-esr trying to go in IP-adress "%u". There is a string 
"Exec=firefox-esr %u"

Do similarly with inkscape I have similarly problem: inkscape starting 
trying to open file "%F" .There is a string "Exec=inkscape %F" in file 
inkscape.desktop".

And so on with many other packages.

Thank you. Best regards.

[toc] | [next] | [standalone]


#175023

FromJonathan Marquardt <parckwart@parckwart.de>
Date2016-11-23 13:40 +0100
Message-ID<sGF0d-4Vd-13@gated-at.bofh.it>
In reply to#174826
It is normal that these percent sign and letter combinations are in your 
.desktop files. They're called field codes. See: 
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

Although I don't know why they're just being passed directly to the 
application. It's meant so that that their values (if present) are passed. 
Since none of these values should be declared if the application is started 
from Autostart, I'm not sure what's going on there.

On Thu, Nov 17, 2016 at 08:06:34PM +0300, chatrapati wrote:
> Hello!
> 
> Debian testing.
> 
> I think I find a bug, but I cannot understand in which package. Problem with
> KDE5-autostart
> 
> I put firefox-esr.desktop in ~/.config/autostart/ and when I reboot system
> firefox-esr trying to go in IP-adress "%u". There is a string
> "Exec=firefox-esr %u"
> 
> Do similarly with inkscape I have similarly problem: inkscape starting
> trying to open file "%F" .There is a string "Exec=inkscape %F" in file
> inkscape.desktop".
> 
> And so on with many other packages.
> 
> Thank you. Best regards.
> 

[toc] | [prev] | [next] | [standalone]


#175024

FromCindy-Sue Causey <butterflybytes@gmail.com>
Date2016-11-23 14:00 +0100
Message-ID<sGFjA-51L-3@gated-at.bofh.it>
In reply to#175023
On 11/23/16, Jonathan Marquardt <parckwart@parckwart.de> wrote:
> It is normal that these percent sign and letter combinations are in your
> .desktop files. They're called field codes. See:
> https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
>
> Although I don't know why they're just being passed directly to the
> application. It's meant so that that their values (if present) are passed.
> Since none of these values should be declared if the application is started
>
> from Autostart, I'm not sure what's going on there.
>
> On Thu, Nov 17, 2016 at 08:06:34PM +0300, chatrapati wrote:
>> Hello!
>>
>> Debian testing.
>>
>> I think I find a bug, but I cannot understand in which package. Problem
>> with
>> KDE5-autostart
>>
>> I put firefox-esr.desktop in ~/.config/autostart/ and when I reboot
>> system
>> firefox-esr trying to go in IP-adress "%u". There is a string
>> "Exec=firefox-esr %u"
>>
>> Do similarly with inkscape I have similarly problem: inkscape starting
>> trying to open file "%F" .There is a string "Exec=inkscape %F" in file
>> inkscape.desktop".
>>
>> And so on with many other packages.


Is it potentially anything related to language? I've wondered about
that on occasion. Have admired the translation efforts going on. Are
those percentage sign "field codes" universal for all languages?

The other thing I thought about was maybe attempt placing them in a
super basic text editor and then reentering them to make sure there's
no invisible anythings being accidentally grabbed and processed. No,
not likely, but never hurts to rule it out. That's a hold-over tip
from helping W3C (World Wide Web Consortium) lists circa early 2000s.
:)

Just thinking out loud... :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with plastic sporks *

[toc] | [prev] | [next] | [standalone]


#175026

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2016-11-23 14:20 +0100
Message-ID<sGFCV-5n7-19@gated-at.bofh.it>
In reply to#175024
On Wed, Nov 23, 2016 at 07:54:33AM -0500, Cindy-Sue Causey wrote:
> Is it potentially anything related to language? I've wondered about
> that on occasion. Have admired the translation efforts going on. Are
> those percentage sign "field codes" universal for all languages?

Do you mean natural languages, or programming languages?  The use of
"field codes" or "format specifications" that look like a percent sign
followed by a letter goes back at least to the printf() function in C.
The convention was widely adopted by other programming languages and
utility programs as well.  In the shell alone, there's printf(1) and
date(1), and GNU's find(1) has a -printf extension that uses them.

If you're talking about natural language translations, then someone
translating a string that contains obvious programming-language syntax
like %s will have to take extra care to make sure the ordering of the
"field codes" is preserved.  It's an important and difficult issue,
especially in natural languages that use a different syntax than English.
E.g. most romance languages place an adjective behind the noun that
it modifies ("el gato negro"), versus English which puts the adjective
in front ("the black cat").  If a program written in English specifies
a noun and an adjective using two "field codes" in the same string,
the translations have to preserve that ordering, because the code that
uses the string is going to pass the adjective first, and then the noun
second.

There are lots more issues of that nature -- many natural languages have
gendered nouns, and most idioms don't translate well, etc.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web