You are not logged in.

#1 2016-11-06 13:58:39

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

[solved] firefox tries to open address "%u" at startup

Seems to come from the %u in the .desktop file:

/usr/share/applications
% grep '%u' *
elinks.desktop:Exec=/usr/bin/elinks %u
firefox.desktop:Exec=firefox %u
firefox.desktop:Exec=firefox --new-window %u
firefox.desktop:Exec=firefox --private-window %u

Deleting the %u solves the issue. Why is it there?

Last edited by teateawhy (2016-12-17 23:22:28)

Offline

#2 2016-11-06 14:17:40

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [solved] firefox tries to open address "%u" at startup

%u stands for single url in .desktop files, and it should be required if you wan't to open e.g. external links with firefox: https://specifications.freedesktop.org/ … 01s06.html

It should get omitted if there's no URL though. I'm thinking this could be a bug in your application launcher.
For me starting firefox in gnome-shell opens the start page, and not "%u".

Offline

#3 2016-11-06 14:29:25

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] firefox tries to open address "%u" at startup

How to you launch firefox? Which Desktop are you using? It works fine for me under Xfce

Offline

#4 2016-11-06 15:27:09

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] firefox tries to open address "%u" at startup

plasma-desktop 5.8.3-1

To start firefox, i'm using the autostart option in the KDE system settings. I clicked on add programm, and chose firefox. KDE chose "firefox %u" as the command to execute, on its own.

Last edited by teateawhy (2016-11-06 15:28:05)

Offline

#5 2016-11-06 15:55:51

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [solved] firefox tries to open address "%u" at startup

teateawhy wrote:

plasma-desktop 5.8.3-1

To start firefox, i'm using the autostart option in the KDE system settings. I clicked on add programm, and chose firefox. KDE chose "firefox %u" as the command to execute, on its own.

Then it's doing exactly what you told it to do. Edit the autostart entry and remove the %u and revert your changes to the desktop file.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2016-11-06 16:02:36

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] firefox tries to open address "%u" at startup

R00KIE wrote:
teateawhy wrote:

plasma-desktop 5.8.3-1

To start firefox, i'm using the autostart option in the KDE system settings. I clicked on add programm, and chose firefox. KDE chose "firefox %u" as the command to execute, on its own.

Then it's doing exactly what you told it to do. Edit the autostart entry and remove the %u and revert your changes to the desktop file.

I didn't tell it to do so. I didn't type in "firefox %u". I only clicked on the firefox icon, in a list of applications. Thus, the string "firefox %u" must be saved somewhere in a file. I already found out that this exact string is in the .desktop file above. I think we can assume that the string was indeed extracted from the .desktop file.

Offline

#7 2016-11-06 17:28:20

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [solved] firefox tries to open address "%u" at startup

That string is supposed to be in the desktop file, otherwise some functionality will break.

Just because you can use a desktop file as a template to automatically get the icon and executable name when creating an autostart entry, it doesn't exempt you from checking if everything is correct, hence the autostart entry is doing exactly what you told it to do.

Maybe kde should have been smarter and removed that %u it got from the desktop file, submit a bug report in the kde bug tracker, explain the problem and things might improve in a future version of kde.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2016-12-17 23:22:14

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] firefox tries to open address "%u" at startup

Made a bugreport which was solved in KDE 5.8.4 .

Offline

Board footer

Powered by FluxBB