Page 1 of 1

CudaText can't see /var/www - Debian 12

Posted: 26.01.2024 04:53
by ajaxStardust
Hi. I use CudaText occasionally on Windows, so I've tried it running on Linux, but I haven't been able to use it correctly. CudaText on Linux-- in my experience-- won't open e.g. '/var/www', so any existing web dev projects/ files I have under e.g. '/var/www/laravel' can't be edited in CudaText.

I experience this CudaText behavior under MX-Linux 23 (Debian 12), notably on separate installations (XFCE) running on different hardware.

I expect I can correct the issue by simply editing a configuration file somewhere, or maybe changing file ownership/permissions somewhere, but I don't know enough about CudaText to know where to begin. It doesn't make sense to me that it's the "only"(1) editor that won't open that path. It's not that it won't save a modified file there, it's more as if that folder simply doesn't exist.
see screenrec

Please suggest/ advise.

Thank you!

(1)
Not true actually. I've experienced the same issue with at least one other editor, same O/S's. Either PHPStorm or CodeLobster (or both) if I recall correctly. So, I should say it's the only editor that I can't use that i care enough about to make it worth the effort of reaching out about it! :lol:
;)

Re: CudaText can't see /var/www - Debian 12

Posted: 26.01.2024 05:05
by main Alexey
Thanks for report. you use Qt5 version (as I see per top menubar and File Open dialog). Qt5 version Open-dlg don't show www, so

1. try CudaText GTK2 version?
2. open Terminal and run

Code: Select all

ls -l /var
what does it show?
For me, it shows this line at end:

Code: Select all

drwxr-xr-x  3 root root     4096 янв 11  2018 www
(all OK for me on my PC)

Re: CudaText can't see /var/www - Debian 12

Posted: 26.01.2024 05:27
by main Alexey

Re: CudaText can't see /var/www - Debian 12

Posted: 27.01.2024 00:08
by ajaxStardust
main Alexey wrote: 26.01.2024 05:05
1. try CudaText GTK2 version?
Sure. What is the best way to try that on Debian 12, MX-Linux 23?

I installed CudaText via Mx-Pkg mgr @ /usr/share/applications/mx-packageinstaller.desktop
which includes a few Flatpak recommendations, incl CudaText-QT
if dependencies aren't quite correct via that route, perhaps it should be advised to be removed from the Mx Package Installer?

~~~~~~~~~

my ls -l view in terminal:

Code: Select all

atheat@mx23ahs:/var
$ ls -laX
total 52
drwxr-xr-x  2 root root  4096 Jan 26 07:35 backups
drwxr-xr-x 27 root root  4096 Jan 25 12:29 cache
drwxr-xr-x  2 root root  4096 Oct 14 13:59 games
drwxr-xr-x 89 root root  4096 Jan 24 13:11 lib
drwxrwsr-x  2 root staff 4096 Sep 29 16:04 local
lrwxrwxrwx  1 root root     9 Oct 14 13:52 lock -> /run/lock
drwxr-xr-x 19 root root  4096 Jan 26 18:02 log
drwxrwsr-x  2 root mail  4096 Jan 12 16:31 mail
drwxr-xr-x  3 root root  4096 Jan 12 18:53 opt
lrwxrwxrwx  1 root root     4 Oct 14 13:52 run -> /run
drwxr-xr-x  8 root root  4096 Oct 14 13:58 spool
drwxrwxrwt 24 root root  4096 Jan 25 12:56 tmp
drwxr-xr-x  5 root root  4096 Jan 22 22:05 www
drwxr-xr-x 13 root root  4096 Jan 15 09:28 .
drwxr-xr-x 20 root root  4096 Jan 18 04:11 ..
atheat@mx23ahs:/var
thank you!

If you would recommend I build from source, what pkgs should i ensure are installed before proceeding?
thank you!

Re: CudaText can't see /var/www - Debian 12

Posted: 27.01.2024 09:19
by main Alexey
>What is the best way to try that on Debian 12, MX-Linux 23?

Download DEB installer from CudaText homepage.
Install it.

Your /var/www - I cannot see suspicious info in terminal output. all OK.

Re: CudaText can't see /var/www - Debian 12

Posted: 15.09.2024 07:07
by ajaxStardust
For anyone who experiences a similar issue, is curious, whatever: i don't mess with it super often, and i'm not doing the research but -- it has something to dow w/ the way a flatpak (which is how it installed) acesses, or the permissions of that gvfs setup, where it's like an alias directory...

anyway. you know what i mean.
sometimes there's a GUI to configure it. don't really need that. i can't rem. i should, and it shuld be important to me.

but i'd just as soon select a different option.
it's not at all difficult if you know the steps to the process of setting permissions for it, then it's piece of cake and it works awesome.
:)

Re: CudaText can't see /var/www - Debian 12

Posted: 15.09.2024 07:15
by main Alexey
So it is the issue of Flatpak version. not the program's issue. I mark this as solved.
try to install the normal versions (gtk2/qt5/qt6) from the official site.