protonscr

Malformed autostart file

steamclosed reviewedSteam clientNeed Retest
ValveSoftware/steam-for-linux#2161 · opened 2013-03-15 by Majkl578 · updated 2017-05-22 · 7 comments · github
MMajkl578 2013-03-15 github

I've Steam scheduled to start on session startup. Unfortunately, steam desktop file is malformed and steam does not start.

According to ~/.cache/gdm/session.log, I get this message:

gnome-session[21081]: WARNING: Could not parse desktop file ~/.config/autostart/steam.desktop: Invalid key name: t]
gnome-session[21081]: WARNING: could not read ~/.config/autostart/steam.desktop

The autostart file contains:

[Desktop Entry]
Name=Steam
Comment=Application for managing and playing games on Steam
Exec=/usr/bin/steam %U
Icon=steam
Terminal=false
Type=Application
Categories=Network;FileTransfer;Game;
MimeType=x-scheme-handler/steam;
Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;

[Desktop Action Store]
Name=Store
Name[de]=Shop
Name[es]=Tienda
Name[fr]=Magasin
Name[it]=Negozio
Name[pt]=Loja
Name[ru]=Магазин
Name[zh_CN]=商店
Name[zh_TW]=商店
Exec=steam steam://store

[Desktop Action Community]
Name=Community
Name[es]=Comunidad
Name[fr]=Communauté
Name[it]=Comunità
Name[pt]=Comunidade
Name[ru]=Сообщество
Name[zh_CN]=社区
Name[zh_TW]=社群
Exec=steam steam://url/SteamIDControlPage

[Desktop Action Library]
Name=Library
Name[de]=Bibliothek
Name[es]=Biblioteca
Name[fr]=Bibliothèque
Name[it]=Libreria
Name[pt]=Biblioteca
Name[ru]=Библиотека
Name[zh_CN]=库
Name[zh_TW]=遊戲庫
Exec=steam steam://open/games

[Desktop Action Servers]
Name=Servers
Name[de]=Server
Name[es]=Servidores
Name[fr]=Serveurs
Name[it]=Server
Name[pt]=Servidores
Name[ru]=Серверы
Name[zh_CN]=服务器
Name[zh_TW]=伺服器
Exec=steam steam://open/servers

[Desktop Action Screenshots]
Name=Screenshots
Name[es]=Capturas
Name[fr]=Captures d'écran
Name[it]=Screenshot
Name[ru]=Скриншоты
Name[zh_CN]=截图
Name[zh_TW]=螢幕擷圖
Exec=steam steam://open/screenshots

[Desktop Action News]
Name=News
Name[de]=Neuigkeiten
Name[es]=Noticias
Name[fr]=Actualités
Name[it]=Notizie
Name[pt]=Notícias
Name[ru]=Новости
Name[zh_CN]=新闻
Name[zh_TW]=新聞
Exec=steam steam://open/news

[Desktop Action Settings]
Name=Settings
Name[de]=Einstellungen
Name[es]=Parámetros
Name[fr]=Paramètres
Name[it]=Impostazioni
Name[pt]=Configurações
Name[ru]=Настройки
Name[zh_CN]=设置
Name[zh_TW]=設定
Exec=steam steam://open/settings

[Desktop Action BigPicture]
Name=Big Picture
Exec=steam steam://open/bigpicture

[Desktop Action Friends]
Name=Friends
Name[de]=Freunde
Name[es]=Amigos
Name[fr]=Amis
Name[it]=Amici
Name[pt]=Amigos
Name[ru]=Друзья
Name[zh_CN]=好友
Name[zh_TW]=好友
Exec=steam steam://open/friends
t]=Amigos
Name[ru]=Друзья
Name[zh_CN]=好友
Name[zh_TW]=好友
Exec=steam steam://open/friends

I guess it's caused by the t]=Amigos which seems to be malformed (but don't know how that happened, I didn't edit this file manually).

System information; running Gnome Shell 3.6 (partially upgraded to 3.8).

Nnmirthes 2013-03-15 github

I've just enabled and disabled this a couple of times. The file (~/.config/autostart/steam.desktop) is created correctly for me.

Jjohndrinkwater 2013-03-16 github

Could be how Steam is overwriting an earlier .desktop file, if the new content is shorter.

Bbaryluk 2013-03-21 github

What? It is overwritting file directly? Correct way to do it, would be to create new temporary file, and perform rename overwriting old file atomically (and with correct size, no need for truncation).

MMajkl578 2013-03-21 github

That doesn't matter in this case, highly concurrent r/w operations are not expected on steam.desktop file.

Bbaryluk 2013-03-22 github

@Majkl578 It have nothing to do with high concurrency. Simply crashing system (or application itself to be more precise, or network connection for NFS mounted file system, ...) in the middle of this incorrect overwrite operation will make it malformed.

Kkisak-valve maintainer 2017-04-20 github

Hello @Majkl578, are you still experiencing this issue with an up to date client?

Kkisak-valve maintainer 2017-05-22 github

Closing pending feedback.

Nothing extracted yet.