Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Side panel is opened by default and system does not remember not to show it #3782

Open
ptoche opened this issue Aug 31, 2024 · 12 comments
Open

Comments

@ptoche
Copy link

ptoche commented Aug 31, 2024

The side panel is opened upon restart even after it has been de-selected via the View->Show menu. This did not happen with versions earlier than 4.8.0. A very similar issue was observed with 4.8.1.

screenshot

Environment

  • TeXstudio:

TeXstudio 4.8.2 (git 4.8.2)
Using Qt Version 6.7.2, compiled with Qt 6.7.2 R

  • OS:
    MacBook Pro
    Chip: Apple M1 Pro
    Memory: 16 GB
    MacOS: Sonoma 14.16.1

  • TeX distribution:
    pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024)
    kpathsea version 6.4.0
    Copyright 2024 Han The Thanh (pdfTeX) et al.

Expected behavior

The side bar is not opened.
The side bar elements such as TOC, Bookmarks, etc. should not show after they have been de-selected from the
View -> Show menu

Actual behavior

The side bar shows up every time upon restart

How to reproduce

Close the side bark. Restart Texstudio.

Related issues:

These were closed, but unfortunately the problem reported there had not been resolved.

#3696
#3667

@octaeder
Copy link
Contributor

octaeder commented Sep 1, 2024

can't reproduce with Win10 and latest own build (TeXstudio 4.8.3 (git 4.8.2-44-gad95c07be)).

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Sep 1, 2024

Does the menu view/show/reset sidepanel (mentioned in wiki - Known Issues - osx) helps?

@sunderme
Copy link
Member

sunderme commented Sep 1, 2024

not reproducible in VM with OSX

@ptoche
Copy link
Author

ptoche commented Sep 4, 2024

I see... thanks for the feedback!

Do you know if there is a setting in the texstudio.ini file that would control this behavior? I could try to fix it there.

Okay, so I deleted the texstudio.ini file and let the system recreate a new one. I then proceeded to remove the

View->Show sidebar

Closed and re-opened. And this is what I get:

screenshot

The sidebar is opened upon restart. So is the log-file view.

Is there anything else I can look for that would control the default view settings other than the texstudio.ini file?

Thanks!

@ptoche
Copy link
Author

ptoche commented Sep 14, 2024

I went the painful way of removing the texstudio app, deleting the .config directory, installing again, selecting

  • Restore previous session at startup
  • removing the sidebar and all its elements via the View -> show menu.

and it came back all the same. So it appears my .ini file doesn't get updated at all anymore. I'm on the same laptop. Could permissions have changed or something?

If I copy-paste a modified .ini file, texstudio reads it.

If I had a setting line to control the appearance of the sidebar, I could add that to my .ini file.

I'm looking for a line like maybe:
Editor\SidebarVisible=false

texstudio-screenshot-1

If it's relevant, I have the following settings in my .ini file:

GUI\ConfigShorcutColumnWidth=200 GUI\Icon%20Theme=1 GUI\PDFToobarIconSize=16 GUI\SecondaryToobarIconSize=16 GUI\Style=0 GUI\SymbolSize=32 GUI\Texmaker%20Palette=false GUI\ToobarIconSize=22 GUI\Use%20System%20Theme=true GUI\outputView\visible=false GUI\sidePanel\currentPage=0 GUI\sidePanel\visible=false GUI\sidePanelSplitter\state=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x18\0\0\x1\\\0\0\0\0\x1\x1\0\0\0\x1\0)

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Sep 14, 2024

What's the ownership of your ~/.config directory? Run ls -lah ~ | grep '\.config' and check whether the third column shows your username.

See also https://apple.stackexchange.com/questions/320682/ownership-of-the-config-folder-in-home-directory.

Another guessing: is the ~/.config managed by some cloud storage softwares, like OneDrive?

@ptoche
Copy link
Author

ptoche commented Sep 14, 2024

Thanks @muzimuzhi for getting back to me!

I don't use any cloud storage services. I don't use OneDrive.

The ownership shows me:

drwxr-xr-x 15 ptoche staff 480B Sep 14 09:38 .config

@octaeder
Copy link
Contributor

the line is GUI\sidePanel\visible=true

@ptoche
Copy link
Author

ptoche commented Sep 15, 2024

Thanks @octaeder !

So I tried with both true and false and it makes no difference.

The other related settings are:


GUI\ConfigShorcutColumnWidth=340
GUI\Icon%20Theme=0
GUI\PDFToobarIconSize=16
GUI\SecondaryToobarIconSize=16
GUI\Style=0
GUI\SymbolSize=32
GUI\Texmaker%20Palette=false
GUI\ToobarIconSize=22
GUI\Use%20System%20Theme=true
GUI\outputView\visible=false
GUI\sidePanel\currentPage=0
GUI\sidePanel\visible=false
GUI\sidePanelSplitter\state=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x18\0\0\x1\\\0\0\0\0\x1\x1\0\0\0\x1\0)

@ptoche
Copy link
Author

ptoche commented Sep 22, 2024

With release 4.8.3 the bottom log panel remains closed (texstudio remembers the last state), while the structure side panel remains open upon a restart, whether I set GUI\sidePanel\visible=true or GUI\sidePanel\visible=false in the texstudio.init file.

@mgerfin
Copy link

mgerfin commented Sep 24, 2024

Fixed on my Mac now, with release 4.8.3, MacOS Sequioa and the M1 version. The process of opening TexStudio for the first time is another matter with the new OS (needed to give permission in system preferences).

@ptoche
Copy link
Author

ptoche commented Sep 24, 2024

No such luck here.

In my `texstudio.ini' I deleted all the GUI related commands, which were:

GUI\ConfigShorcutColumnWidth=340
GUI\Icon%20Theme=0
GUI\PDFToobarIconSize=16
GUI\SecondaryToobarIconSize=16
GUI\Style=0
GUI\SymbolSize=32
GUI\Texmaker%20Palette=false
GUI\ToobarIconSize=22
GUI\Use%20System%20Theme=true
GUI\outputView\visible=false
GUI\sidePanel\currentPage=0
GUI\sidePanel\visible=false
GUI\sidePanelSplitter\state=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x18\0\0\x1\\\0\0\0\0\x1\x1\0\0\0\x1\0)

I then restarted and proceeded to remove all the sidebar items via the menu View -> Show, closed the app and checked the texstudio.ini file: some of the GUI settings had reappeared, as follows:

GUI\ConfigShorcutColumnWidth=200
GUI\Icon%20Theme=0
GUI\PDFToobarIconSize=16
GUI\SecondaryToobarIconSize=16
GUI\Style=0
GUI\SymbolSize=32
GUI\Texmaker%20Palette=false
GUI\ToobarIconSize=24
GUI\Use%20System%20Theme=true

Upon re-opening the sidebar was back to the open state with all its elements selected: Even the log file was open.

I pasted the single line GUI\sidePanel\visible=false. Nothing doing.

Each time I edit the texstudio.ini file, I have the texstudio app closed.

Bottom line: the GUI\sidePanel\visible=false setting is ineffective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants