LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-28-2019, 03:00 PM   #1
METROIDHunter_
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Artix, Gentoo, Ubuntu 18.04, Slackware 14.2 -current
Posts: 8

Rep: Reputation: 0
[OpenSUSE] MonoDevelop sees files that bash / file manager cannot


Linux noob here, first time with OpenSUSE. I'm trying to set up a MonoDevelop project on my new OpenSUSE system, and to do that I need to add a reference to an external assembly (MonoGame) which I've already installed. Here's the problem:

The file explorer window in MonoDevelop sees a completely different filesystem tree than what I get while exploring in bash or in my file manager. I've attached a screenshot.

My MonoGame assembly is installed at /usr/lib/mono/xbuild/MonoGame/... and so on. MonoDevelop thinks that /usr/lib/mono does not exist (among many other paths, as exhibited by above screenshot).

Additionally, MonoDevelop can see and open a file called /app/manifest.json, even though bash clearly thinks the directory /app doesn't exist at all; but although MonoDevelop can view that file, I get an error when trying to save: "Access to the path '/app/.#manifest.json' is denied."

Why is MonoDevelop seeing a completely different filesystem than what i see in bash, or my file manager? Might it at all be related to using a BTRFS filesystem format? Should I direct this question to the folks at the OpenSUSE forum, or the MonoDevelop forum?
Attached Thumbnails
Click image for larger version

Name:	susemono.jpg
Views:	29
Size:	219.9 KB
ID:	30666  
 
Old 05-30-2019, 12:44 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
everything is working as intended.

a leading slash: '/app...' means that the file would be located in the filesystem root '/', and not the current directory.

as a user, you work from that user's home, not from '/'. you don't have permission to add files to '/', and nor should you.
try 'echo stuff > app' instead of 'echo stuff > /app'.

try
Code:
pwd
whoami
echo "$HOME"
to understand what's going on.
 
Old 05-30-2019, 12:10 PM   #3
METROIDHunter_
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Artix, Gentoo, Ubuntu 18.04, Slackware 14.2 -current
Posts: 8

Original Poster
Rep: Reputation: 0
Hi ondoho, thanks for your reply.

I understand what you said, but that's not the problem. In the screenshot I attached in the original post, you can see the dialog window in MonoDevelop opened to "File System" (which I navigated to upwards through /home/myuser, so I believe I'm right to say this is the root directory - "/").

In the terminal window next to the dialog, I listed the contents of the root directory "/", and they are a bit different; for example, "ls" shows /boot and not /app (no idea what /app is or what might have made it), and MonoDevelop shows /app and not /boot. There are other "ghost" directories - the reason this is such a problem is because I need to access a file within /usr/lib/mono, but MonoDevelop cannot find that directory.

It may also be noteworthy that the "Date Modified" timestamps do not always match between the two windows' output. MonoDevelop shows Date Modifed on /var as 15:14 but ls shows 12:33.

Additionally, I tried a few more things:
I just created a new directory at root called /test, and sure enough, MonoDevelop didn't pick up on it.
I created a directory /home/test, and MonoDevelop did not see it.
I created a new directory at my home directory called /home/myuser/test and MonoDevelop saw it.
I then created a symlink to /usr/lib/mono, which MonoDevelop cannot see, and put it in my home directory as /home/myuser/monotest. MonoDevelop did not see it.

It seems that /home/myuser is the only directory in which MonoDevelop can see the "correct filesystem." This is quite baffling. Remember MonoDevelop was able to read (but not write to) /app/manifest.json, which doesn't exist according to "ls" or my file manager.
 
Old 05-30-2019, 12:15 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I know nothing about monodevelop but is it possible it keeps an internal database of files and data and this is what it is showing you, not the actual file system?
 
Old 05-31-2019, 04:04 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
METROIDHunter_, please take a deep breath, stop posting here, and get familiar with your new operating system.
MonoDevelop is one Software; but you need to understand your Operating System, esp. the filesystem and the shell, first.
Don't worry if you don't understand half the terms i used now, just do a quick search on "how to learn linux" or "linux command line tutorial" or some such and, i'll say it again, slow down and take it step by step.
Maybe forget about that mono app for now.
 
Old 06-03-2019, 06:31 PM   #6
METROIDHunter_
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Artix, Gentoo, Ubuntu 18.04, Slackware 14.2 -current
Posts: 8

Original Poster
Rep: Reputation: 0
Really? I expected something more helpful than a belittling remark and a dismissive reply that I should "get familiar with my new OS". I've been using Linux as a primary OS for 8 months.

I'm replying to say I did find the cause of the problem, and to write my solution for future reference.

I installed MonoDevelop on OpenSUSE with flatpak, and I have since learned that the flatpak version of MonoDevelop runs in a sandbox. To boil it down to simple terms, the directories MonoDevelop was seeing were virtual directories, part of its "sandbox" - and the Assembly I wanted to load was part of my real filesystem, NOT the sandbox. I learned I'm not the only one who was irritated by this.

On OpenSUSE, the only other option for MonoDevelop was to build it from source; so I went and built MonoDevelop 7.8.1 from source and lo and behold, it works! I can see my real filesystem now.
 
Old 06-04-2019, 01:28 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ sorry you should feel that way; it's not always easy to gauge where a person stands in their understanding of linux, and many make the mistake of jumping in at the deep end and then post a succession of "flailing" help threads.

I also don't do well with screenshots, i prefer copy-pasted plain text.

anyhow, glad you solved it! that's the most important thing: don't stop searching for explanations/solutions.

Quote:
Originally Posted by METROIDHunter_ View Post
I installed MonoDevelop on OpenSUSE with flatpak, and I have since learned that the flatpak version of MonoDevelop runs in a sandbox. To boil it down to simple terms, the directories MonoDevelop was seeing were virtual directories, part of its "sandbox" - and the Assembly I wanted to load was part of my real filesystem, NOT the sandbox. I learned I'm not the only one who was irritated by this.
just another reason why distros should not use snaps/flatpaks/etc. by default, or without telling their users about it when they install them.
yes, flatpak is a container system.
yes, there will always be fundamental differences between a containerised install and a regular install.
The former should only be used when you are 100% sure that that is exactly what you want/need.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anaconda sees RAID devices (aic-94xx); installed CentOS sees individual drives JMCraig Linux - Hardware 0 01-31-2011 02:56 PM
linux sees hw raid disks in wrong order whilst grub sees correctly wilibird Linux - Hardware 12 01-12-2010 05:42 PM
Fedora 7 sees/access' XP pro - XP pro sees/does not access F7 Lunarizing Linux - Wireless Networking 1 11-10-2007 12:37 PM
Linux sees 2003 Domain, windows sees Linux ..but.... Stealthy_C Linux - Networking 4 06-14-2005 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration