arch linux gnome-flashback install

Asked by adam seymour

previously i was able to make a fully working gnome-flashback with compiz using the following script after installing gnome-flashback and compiz by running the below scrips.

however now it allow me to login but i have to click the shutdown/reboot buttons twice (and doesn't prompt with the count down for conformation) to action the shutdown request.

additionally pamac doesn't seem to authenticate me when performing actions that require sudo actions (might be related to the shutdown issue above)

i'd be very grateful for any suggestions to how to rectify the above issues

the script that seem to work previously is as follows

sudo bash -c "cat > /usr/lib/gnome-flashback/gnome-flashback-compiz<<EOL
"'#!/bin/sh'"

if [ -z "'\$XDG_CURRENT_DESKTOP'" ]; then
  export XDG_CURRENT_DESKTOP="'"GNOME-Flashback:GNOME"'"
fi

exec gnome-session --systemd --session=gnome-flashback-compiz "'"\$@"'"
EOL"

sudo chmod +x /usr/lib/gnome-flashback/gnome-flashback-compiz

sudo bash -c "cat > /usr/share/xsessions/gnome-flashback-compiz.desktop<<EOL
[Desktop Entry]
Name=GNOME Flashback (compiz)
Exec=/usr/lib/gnome-flashback/gnome-flashback-compiz
TryExec=compiz
Type=Application
DesktopNames=GNOME-Flashback;GNOME;
EOL"

sudo bash -c "cat > /usr/share/gnome-session/sessions/gnome-flashback-compiz.session<<EOL
[GNOME Session]
Name=GNOME Flashback (Compiz)
RequiredComponents=compiz;gnome-flashback;gnome-panel;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.UsbProtection;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;
EOL"

thanks in advanced

Question information

Language:
English Edit question
Status:
Solved
For:
Compiz Edit question
Assignee:
No assignee Edit question
Solved by:
adam seymour
Solved:
Last query:
Last reply:
Revision history for this message
adam seymour (adamjonn) said :
#1

i figured it out

sudo bash -c "cat > /usr/lib/gnome-flashback/gnome-flashback-compiz<<EOL
"'#!/bin/sh'"

if [ -z "'\$XDG_CURRENT_DESKTOP'" ]; then
  export XDG_CURRENT_DESKTOP="'"GNOME-Flashback:GNOME"'"
fi

exec gnome-session --systemd --session=gnome-flashback-compiz "'"\$@"'"
EOL"
sudo chmod +x /usr/lib/gnome-flashback/gnome-flashback-compiz
sudo bash -c "cat > /usr/share/xsessions/gnome-flashback-compiz.desktop<<EOL
[Desktop Entry]
Name=GNOME Flashback (compiz)
Exec=/usr/lib/gnome-flashback/gnome-flashback-compiz
TryExec=compiz
Type=Application
DesktopNames=GNOME-Flashback;GNOME;
EOL"
sudo bash -c "cat > /usr/share/gnome-session/sessions/gnome-flashback-compiz.session<<EOL
[GNOME Session]
Name=GNOME Flashback (Compiz)
RequiredComponents=compiz;gnome-flashback;gnome-panel;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.UsbProtection;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;
EOL"

sudo mkdir /<email address hidden>

sudo bash -c "cat > /<email address hidden>/session.conf<<EOL
[Unit]
Wants=org.gnome.SettingsDaemon.A11ySettings.target
Wants=org.gnome.SettingsDaemon.Color.target
Wants=org.gnome.SettingsDaemon.Datetime.target
Wants=org.gnome.SettingsDaemon.Housekeeping.target
Wants=org.gnome.SettingsDaemon.Keyboard.target
Wants=org.gnome.SettingsDaemon.MediaKeys.target
Wants=org.gnome.SettingsDaemon.Power.target
Wants=org.gnome.SettingsDaemon.PrintNotifications.target
Wants=org.gnome.SettingsDaemon.Rfkill.target
Wants=org.gnome.SettingsDaemon.ScreensaverProxy.target
Wants=org.gnome.SettingsDaemon.Sharing.target
Wants=org.gnome.SettingsDaemon.Smartcard.target
Wants=org.gnome.SettingsDaemon.Sound.target
Wants=org.gnome.SettingsDaemon.UsbProtection.target
Wants=org.gnome.SettingsDaemon.Wacom.target
Wants=org.gnome.SettingsDaemon.XSettings.target

Requires=gnome-flashback.target
EOL"