
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
A command line to save and restore sessions for X11 desktops like Gnome, with many other features
Save and restore windows for X11 desktop environment like Gnome, and many other features.
This project was written in Bash
originally. But now I'm completely rewriting it in Python
which obviously makes it way more flexible, extensible.
If you are a Gnome 3 user and also want to use these similar features on Wayland, please give Another Window Session Manager a try, it's a Gnome extension, much more faster than xsm
, and much more native experience on Gnome.
dnf install python3-devel python3-tkinter wmctrl
pip3 install xsession-manager
This method install xsession-manager in ~/.local/lib/python3.9/site-packages
if you are a normal user, in /usr/local/lib/python3.9/site-packages
if you are root.
cd the_root_of_source_code
pip install .
This method install xsession-manager in /usr/local/lib/python3.9/site-packages
.
cd the_root_of_source_code
sudo python3 setup.py install
Save all running GUI windows to xsession-default
xsm -s
Specify a session name like, my-session-name
, restore it later on by running xsm -s my-session-name
. This feature should be very helpful when you have multiple tasks to do and each task needs different GUI apps.
xsm -s my-session-name
Note:
xsm -r
or xsm -ma
.xsm -c
xsm -c -im
Restore all GUI apps using the saved session named xsession-default
xsm -r
Restore gnome-system-monitor
using the saved session named my-session-name
xsm -r my-session-name -i gnome-system-monitor
xsm -ma
xsm -l
xsm -t xsession-default
usage: xsm [-h] [-s [SAVE]] [-c [CLOSE_ALL ...]] [-im] [-r [RESTORE]] [-ri RESTORING_INTERVAL] [-pr [PR]] [-l] [-t [DETAIL]]
[-x EXCLUDE [EXCLUDE ...]] [-i INCLUDE [INCLUDE ...]] [-ma [MOVE_AUTOMATICALLY]] [--version] [-v] [-vv]
options:
-h, --help show this help message and exit
-s [SAVE], --save [SAVE]
Save the current session. Save to the default session if not specified a session name.
-c [CLOSE_ALL ...], --close-all [CLOSE_ALL ...]
Close the windows gracefully. Close all windows if only -c/--close-all present. Or close one or more
apps if arguments provided, which supports <window_id>, <pid>, <app_name> or <title_name> exactly the
same as -x. For example: `xsm -c gedit 23475 0x03e00004`
-im, --including-apps-with-multiple-windows
Close the windows gracefully including apps with multiple windows
-r [RESTORE], --restore [RESTORE]
Restore a session gracefully. Restore the default session if not specified a session name.
-ri RESTORING_INTERVAL, --restoring-interval RESTORING_INTERVAL
Specify the interval between restoring applications, in seconds. The default is 2 seconds.
-pr [PR] Pop up a dialog to ask user whether to restore a X session.
-l, --list List the sessions.
-t [DETAIL], --detail [DETAIL]
Check out the details of a session.
-x EXCLUDE [EXCLUDE ...], --exclude EXCLUDE [EXCLUDE ...]
Exclude apps from the operation according to <window_id>, <pid>, <app_name> or <title_name>. Require
at least one value
-i INCLUDE [INCLUDE ...], --include INCLUDE [INCLUDE ...]
Include apps from the operation according to <window_id>, <pid>, <app_name> or <title_name>. Require
at least one value
-ma [MOVE_AUTOMATICALLY], --move-automatically [MOVE_AUTOMATICALLY]
Auto move windows to specified workspaces according to a saved session. The default session is
`xsession-default`
--version show program's version number and exit
-v, --verbose Print debugging information
-vv Print more debugging information, could contain sensitive info
Here is a solution. If you are using Fedora, create a file named auto-restore-working-state.desktop
and the Exec
should be:
xsm -pr
Then put this file into ~/.config/autostart
.
For example:
[Desktop Entry]
Name=Auto Restore saved X Windows
Comment=
Icon=
Exec=xsm -pr
Terminal=false
Type=Application
X-GNOME-Autostart-Delay=20
NOTE: You can also use xsession-manager
instead of xsm
.
FAQs
A command line to save and restore sessions for X11 desktops like Gnome, with many other features
We found that xsession-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.