steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Cannot add new storage

Open QRouland opened this issue 2 years ago • 53 comments

Your system information

  • Steam client version (build number or date): 1686880776
  • Distribution (e.g. Ubuntu): ArchLinux (6.3.8-arch1-1)
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: AMD

Please describe your issue in as much detail as possible:

Expected : In steam settings > storage , clicking on '+' should open a window to add a new storage.

Happen: In steam settings > storage , clicking on '+' do nothing

image

Steps for reproducing this issue:

  1. Open settings
  2. Select Storage page
  3. Click on the "+"
  4. Nothing happen

QRouland avatar Jun 16 '23 20:06 QRouland

Hello @QRouland, please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report.

kisak-valve avatar Jun 16 '23 20:06 kisak-valve

Hello @QRouland, please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report.

https://gist.github.com/QRouland/35457fe5fa3ea564756467217dbc6654

QRouland avatar Jun 16 '23 21:06 QRouland

Thanks, https://gist.github.com/QRouland/35457fe5fa3ea564756467217dbc6654#file-steamruntimediagnostics-txt-L2861-L2864 is the details to focus on. The Steam client now uses xdg-desktop-portal for this and it looks like xdg-desktop-portal does not have a working configuration for some reason. Some other Arch users mentioned that reinstalling xdg-desktop-portal-gtk had a positive effect, but it's not clear why that is the case.

#9584 is also relevant to this scenario.

kisak-valve avatar Jun 16 '23 21:06 kisak-valve

Thanks, https://gist.github.com/QRouland/35457fe5fa3ea564756467217dbc6654#file-steamruntimediagnostics-txt-L2861-L2864 is the details to focus on. The Steam client now uses xdg-desktop-portal for this and it looks like xdg-desktop-portal does not have a working configuration for some reason. Some other Arch users mentioned that reinstalling xdg-desktop-portal-gtk had a positive effect, but it's not clear why that is the case.

Reinstalling xdg-desktop-portal-gtk had no effect on my side.

QRouland avatar Jun 17 '23 13:06 QRouland

I am having the same issue on gentoo. I ran steam via the console, and got an error when clicking that button. it was "Couldn't write /boot/.steam_exec_test.sh: Permission denied". I'm slightly concerned as to why steam is trying to write to my boot directory, but i'm gonna hope it's a bug.

CaffeinatedOpe avatar Jun 17 '23 17:06 CaffeinatedOpe

I encountered identical behaviour. I'm running EndeavourOS with Xfce if it helps.

My runtime-diagnostics: https://gist.github.com/ArktinenSieni/688203874e6bcfafcfa23db50b4f3be4

Is there a way to add the path to a storage by hand while the issue persists?

ArktinenSieni avatar Jun 18 '23 10:06 ArktinenSieni

I am having the same issue on gentoo. I ran steam via the console, and got an error when clicking that button. it was "Couldn't write /boot/.steam_exec_test.sh: Permission denied". I'm slightly concerned as to why steam is trying to write to my boot directory, but i'm gonna hope it's a bug.

Noticed the same thing.

ArktinenSieni avatar Jun 18 '23 10:06 ArktinenSieni

Hello @ArktinenSieni, "Failed to connect to 'org.freedesktop.portal.Desktop'" at https://gist.github.com/ArktinenSieni/688203874e6bcfafcfa23db50b4f3be4#file-runtime-diagnostics-endeavouros-L2837 is the detail to focus on for your system. Steam isn't able to talk to xdg-desktop-portal for some reason.

kisak-valve avatar Jun 18 '23 13:06 kisak-valve

Installing the package xdg-desktop-portal seemed to have resolved my issue. Thankyou :star_struck:

ArktinenSieni avatar Jun 18 '23 17:06 ArktinenSieni

Same here with Ubuntu 20.04.6 LTS, xdg-desktop-portal installed

  "xdg-portals" : {
    "issues" : [
      "unknown"
    ],
    "messages" : [
      "Unable to get the session bus: Failed to execute child process ?dbus-launch? (No such file or directory)"
    ]                                                                                                                                                                                                                                           

I'm running steam as a different user 'sudo -i -u steam'

z0rti avatar Jun 19 '23 19:06 z0rti

image only lets adding folders inside current SteamLibrary and change directory to /tank/steam/user is not possible

ruinning arch linux + bspwm

EDIT: installing xdg-desktop-portal leads to described behaviour where nothing happens EDIT2: removign 540 🕸 sudo pacman -R xdg-desktop-portal-gnome and 540 🕸 sudo pacman -R xdg-desktop-portal and leaving gtk solved issue

hitchhooker avatar Jul 21 '23 04:07 hitchhooker

Can confirm, happens in a fresh install on Fedora 38 KDE both Wayland and X11. The dialog box to select a folder comes up, but selecting a new directory or drive doesn't work. Getting the following error when running from the terminal.

ExecuteSteamURL: "steam://open/steam://settings/"
Couldn't write /.steam_exec_test.sh: Permission denied
Couldn't write /boot/.steam_exec_test.sh: Permission denied
Couldn't write /boot/efi/.steam_exec_test.sh: Permission denied
sh: line 1: /home/ayan/mounts/storage/.steam_exec_test.sh: Permission denied
Failed system("/home/ayan/mounts/storage/.steam_exec_test.sh") in execute test: 32256
sh: line 1: /home/ayan/mounts/data/.steam_exec_test.sh: Permission denied
Failed system("/home/ayan/mounts/data/.steam_exec_test.sh") in execute test: 32256
ExecuteSteamURL: "steam://open/steam://exit/"

ayan-iiitd avatar Jul 24 '23 17:07 ayan-iiitd

Encountered similar issue that wasn't present just a day ago: a directory from a separate volume that used to be working as Steam Library folder suddenly disappeared from Steam Library UI, and adding it back doesn't work because the folder selection UI is broken.

The most worrying thing is that in the Steam output there are lines that seem to indicate Steam is expecting / and root of another volume (/media in this case) to be writable for it, which is complete nonsense:

Couldn't write /.steam_exec_test.sh: Permission denied
Couldn't write /media/.steam_exec_test.sh: Permission denied

ex5 avatar Aug 03 '23 13:08 ex5

Having the same issue on Nobara Linux, despite the destination directory being set up with chmod 777. This issue exists on both public and beta release.

tiritto avatar Aug 20 '23 19:08 tiritto

Having the same issue on Nobara Linux, despite the destination directory being set up with chmod 777. This issue exists on both public and beta release.

One temporary solution I found for this issue which works for me on Arch Linux is auto-mounting the drive in the home folder of the user so that it is mounted on boot. Then when I need to play the games, I need to unmount and remount and the drive. This makes steam detect the drive and run games. This is just a temporary solution for now.

This does not solve the base problem but gives a temporary solution.

MeetMaratha avatar Aug 21 '23 03:08 MeetMaratha

I have the same problem on Archlinux. Installing any of "xdg-desktop-portal" doesn't solve anything. What should I do? screenshot_2023 08 22_08 29 06_001

Brensom avatar Aug 22 '23 05:08 Brensom

Replying to https://github.com/ValveSoftware/steam-for-linux/issues/9640#issuecomment-1687462729

Replying to https://github.com/ValveSoftware/steam-for-linux/issues/9640#issuecomment-1685599812

This is a temporary solution that you can use to play your games on another drive.

Also I saw a youtuber facing the same issue in a video recently and his problem was solved by using the flatpak version of Steam and a program called flatseal. Here is the time stamp of the video I am talking about : https://www.youtube.com/watch?v=QYlf30rf6_0&t=1948s

You can try it too.

MeetMaratha avatar Aug 22 '23 06:08 MeetMaratha

Hi, have the same problem. I think I did a reasonable workaround so that I wont have to mess with mounting and unmounting or installing the xdg-desktop stuff (which for some reason broke my grub? I think or something else, had to reinstall).

So what I did was on my 2nd hard drive I created a link to my old linux games folder (after right clicking and checking show hidden and allow links) and renamed it to "steamapps" and replaced the one that steam storage opens. Then I used steam to link to a new Games folder that I created in Home/yourusername. That seems to work just fine after restarting. Please correct me if that is dangerous to the system or something else you think I should know. Thanks

Running Ubuntu 22.04 on a Dell G7 7588

LurkerBeDammed avatar Sep 04 '23 01:09 LurkerBeDammed

Just jumping in to say I'm also having this issue. Changing mount options on the drive does nothing, and actually I can't even select a folder under the drive that my games are already installed on. The dialog box is blank, as seen in Brensom's comment. I'm also seeing the behavior where steam is trying to write to volumes that it has no business writing to: Couldn't write /.steam_exec_test.sh: Permission denied Couldn't write /boot/.steam_exec_test.sh: Permission denied

Edit: Reporting back with a fix. After some searching around, I've found that after installing the packages "xdg-desktop-portal" and "xdg-desktop-portal-kde", the directory selection dialog is working properly for me now. I'm using KDE on Arch linux, so instead of "kde" at the end of the second package, install the version appropriate for your desktop environment. Also, names of these packages may vary depending on distribution.

I don't think this was needed in the past, though. So I'm not sure what the deal is.

aburke161 avatar Sep 07 '23 22:09 aburke161

It is not possible!!!! which in 2023 doesn't even create a FileChooser properly. The launcher already sucks, it's very buggy every 2 by 2. But do you want to work well???

AgostinoA avatar Sep 13 '23 21:09 AgostinoA

I am also afflicted by this issue. I am using Arch Linux and the default steam package (from multilib) and xmonad as the window manager. I do not have a desktop environment (like kde, gtk, etc...) nor do I want to have one (and I do not understand why steam requires one just for this specific detail). I never had a problem with the steam file picker before but now it simply does not appear. How do I solve the problem?

henriquebecker91 avatar Sep 16 '23 14:09 henriquebecker91

@henriquebecker91 did you try only installing "xdg-desktop-portal" without any of the desktop env specific companion packages? Or will that pull in a bunch of crap you don't want?

aburke161 avatar Sep 16 '23 14:09 aburke161

I did install the xdg-desktop-portal-kde even if I preferred to not do so, just to see if it would at least solve the problem and it had not effect.

Em sáb., 16 de set. de 2023 às 11:44, Drew @.***> escreveu:

@henriquebecker91 https://github.com/henriquebecker91 did you try only installing "xdg-desktop-portal" without any of the companion packages? Or will that pull in a bunch of crap you don't want?

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/steam-for-linux/issues/9640#issuecomment-1722244959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLVVG4G2TPHODVVLF7WRDDX2W3LRANCNFSM6AAAAAAZJXDVKM . You are receiving this because you were mentioned.Message ID: @.***>

henriquebecker91 avatar Sep 16 '23 14:09 henriquebecker91

@henriquebecker91 yes, I'm saying specifically not the "xdg-desktop-portal-kde" package, because you don't use kde and that won't do anything for you. Try "xdg-desktop-portal" as well as the "xdg-desktop-portal-gtk" backend. https://wiki.archlinux.org/title/XDG_Desktop_Portal

aburke161 avatar Sep 16 '23 14:09 aburke161

It seems like xdg-desktop-portal was a red herring in my case. The problem was related to the (kinda absurd) test that generates the:

Couldn't write /.steam_exec_test.sh: Permission denied
Couldn't write /boot/.steam_exec_test.sh: Permission denied
Couldn't write /media/games_partition/.steam_exec_test.sh: Permission denied

The problem here is that my second nvme (which I wanted to use for steam games) was being mounted in /media/games_partition/ but with root permissions (and like /boot and / it failed the script test because of that). The reason for this setup was that I wanted to have a /media/games_partition/henrique folder that was mine and possibly allow other users to have each their folder. But as steam looks if the user has permissions at the root of the partition and not inside any of its folders, then it failed to recognize my /media/games_partition/ (/dev/nvme1n1p1) as a drive that could be selected for steam use and found none. Now that I changed /media/games_partition to have my user permissions, steam detected it correctly and allowed to use it for steam games without even needing to select a specific folder inside it.

henriquebecker91 avatar Sep 16 '23 15:09 henriquebecker91

Replying to https://github.com/ValveSoftware/steam-for-linux/issues/9640#issuecomment-1722255456

Same problem, Steam we want to make things more generic and done right. Create yourself an OS independent filechooser and other!!!

AgostinoA avatar Sep 20 '23 09:09 AgostinoA

This is an issue for me too; I'm running vanilla Ubuntu, 22.04.

I tried the xdg-desktop-portal install, but it is already installed on ubuntu.

xdg-desktop-portal is already the newest version (1.14.4-1ubuntu2~22.04.1).

I tried running from the CLI, but it didn't output any meaningful error messages.

jmahmood avatar Sep 26 '23 19:09 jmahmood

@jmahmood you need the xdg backend appropriate for your desktop environment installed, as well. Which desktop env? Edit: assuming you're using GNOME, you'd need "xdg-desktop-portal-gnome" installed too.

aburke161 avatar Sep 26 '23 19:09 aburke161

image Thanks for the hint @aburke161; I tried it but sadly the issue isn't resolved.

(When I click on the plus button here, it just disappears without any menu popping up)

I cleared some space by removing games I am not playing lately, but I would like to setup one of my other HDs to store this data.

The rename library / repair library / browse items in the hamburger menu don't seem to work either.

jmahmood avatar Sep 26 '23 22:09 jmahmood

The other drive is mounted with user permissions?

Did you see lines like Couldn't write /.steam_exec_test.sh: Permission denied in the steam output?

henriquebecker91 avatar Sep 26 '23 23:09 henriquebecker91